/* =================================================================
   FINETIPS NOSSAS FERRAMENTAS — Estilos da página interna
   Arquivo: ferramentas.css
   Descrição: Seções de ferramentas.html. Reutiliza header,
              hero, CTA e footer da home + breadcrumbs.css.
              Inclui composição orbital do hero, filtros por
              categoria, grid de cards de ferramentas com overlay
              de hover (título + descrição + botão).
              Suporta light e dark mode.
   ================================================================= */

/* =================================================================
   HERO — BREADCRUMB + TÍTULO (usa imagem de fundo de .home-hero)
   ================================================================= */

.ferramentas-page .tools-hero.home-hero {
  background: url("../images/finetips-eddmartins-bg-tech-light.png") center bottom / cover no-repeat;
  padding: 140px 0 80px;
}

body.dark-mode .ferramentas-page .tools-hero.home-hero {
  background-image: url("../images/finetips-eddmartins-bg-tech-dark.png");
}

.tools-hero .breadcrumb {
  margin-bottom: var(--spacing-2xl);
}

/* Light mode: textos escuros na hero */
body:not(.dark-mode) .tools-hero .home-hero-title {
  color: #0F172A;
}

.tools-hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.tools-hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1.5px solid rgba(255, 93, 0, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.orbit-ring--1 {
  width: 94%;
  height: 58%;
}

.orbit-ring--2 {
  width: 78%;
  height: 92%;
  transform: translate(-50%, -50%) rotate(24deg);
  border-color: rgba(255, 93, 0, 0.28);
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 12px 2px rgba(255, 93, 0, 0.7);
}

.orbit-dot--1 { top: 16%; left: 30%; }
.orbit-dot--2 { top: 62%; right: 10%; width: 6px; height: 6px; }
.orbit-dot--3 { bottom: 12%; left: 44%; width: 6px; height: 6px; }

.orbit-tile {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  animation: orbit-float 5s ease-in-out infinite;
}

.orbit-tile svg {
  width: 60%;
  height: 60%;
}

.orbit-tile--gpt { top: 10%; left: 12%; background: #10A37F; animation-delay: 0s; }
.orbit-tile--claude { top: 6%; right: 14%; background: #D97757; animation-delay: 0.8s; }
.orbit-tile--perplexity { top: 46%; right: 2%; background: #20808D; animation-delay: 1.6s; }
.orbit-tile--gemini { bottom: 12%; right: 24%; background: #4285F4; animation-delay: 2.4s; }
.orbit-tile--zapier { bottom: 18%; left: 6%; background: #FF4F00; animation-delay: 3.2s; }

.orbit-tile--ia {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 112px;
  height: 112px;
  border-radius: 24px;
  background: linear-gradient(140deg, #0A1628 0%, #1B1145 60%, #31175D 100%);
  animation: none;
}

.orbit-tile--ia span {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #A78BFA, #EC4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@keyframes orbit-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-tile {
    animation: none;
  }
}

/* =================================================================
   HOME-SECTION — PÁGINA FERRAMENTAS
   ================================================================= */

.ferramentas-page .home-section {
  padding-top: var(--spacing-2xl);
}

/* =================================================================
   FILTROS POR CATEGORIA
   ================================================================= */

.tools-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
  max-width: 920px;
  margin: 0 auto var(--spacing-2xl);
}

.tool-filter {
  background-color: transparent;
  color: var(--primary-color);
  border-color: rgba(255, 93, 0, 0.55);
}

.tool-filter:hover {
  background-color: rgba(255, 93, 0, 0.12);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.tool-filter.is-active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #FFFFFF;
}

/* =================================================================
   GRID DE FERRAMENTAS
   ================================================================= */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--spacing-lg);
}

.tool-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: #0A0A0A;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition-normal);
}

.tool-card.is-hidden {
  display: none;
}

.tool-card:hover,
.tool-card:focus-within,
.tool-card.is-open {
  box-shadow: 0 0 0 2px var(--primary-color), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.tool-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card-face svg,
.tool-card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.tool-card:hover .tool-card-face svg,
.tool-card:hover .tool-card-face img,
.tool-card:focus-within .tool-card-face svg,
.tool-card:focus-within .tool-card-face img,
.tool-card.is-open .tool-card-face svg,
.tool-card.is-open .tool-card-face img {
  transform: scale(1.2);
}

.tool-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  background: rgba(5, 14, 48, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.tool-card:hover .tool-card-overlay,
.tool-card:focus-within .tool-card-overlay,
.tool-card.is-open .tool-card-overlay {
  opacity: 1;
  visibility: visible;
}

.tool-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.25;
}

.tool-card-heading {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.tool-card-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tool-card-thumb svg,
.tool-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}


.tool-card-desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 0;
}

.tools-empty {
  text-align: center;
  margin-top: var(--spacing-xl);
  color: var(--text-secondary);
}

/* =================================================================
   CTA — TÍTULO EM DESTAQUE
   ================================================================= */

.ferramentas-cta .cta-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.3;
}

.ferramentas-cta .cta-description {
  margin-left: 0;
  margin-right: 0;
}

/* =================================================================
   RESPONSIVO
   ================================================================= */

@media (max-width: 1100px) {
  .tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tools-hero-visual {
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-md);
  }

  .tools-filters {
    margin-bottom: var(--spacing-xl);
  }

  .tool-card-overlay {
    padding: var(--spacing-md);
  }

  .tool-card-thumb {
    width: 40px;
    height: 40px;
  }

  .tool-card-thumb svg,
  .tool-card-thumb img {
    width: 100%;
    height: 100%;
  }

  .tool-card-title {
    font-size: 1.0625rem;
  }
}

