/* ============================================================
   ADRIANO SILVA — Estilos das páginas de Temas
   ============================================================ */

/* ---- Active nav link ---- */
.site-nav a.active {
  color: var(--white);
}
.site-nav a.active::after {
  transform: scaleX(1) !important;
  opacity: 1 !important;
}

/* ---- Hero ---- */
.themes-hero {
  padding: calc(var(--section-pad-y) + 90px) var(--gutter) var(--section-pad-y);
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.themes-hero .eyebrow { margin-bottom: 20px; }
.themes-hero h1 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.0;
  margin-bottom: 20px;
}
.themes-hero p {
  color: var(--white-dim);
  max-width: 600px;
  margin: 0 auto;
  font-size: 18px;
  font-weight: 300;
}

/* ---- Grid ---- */
.themes-section {
  padding: var(--section-pad-y-tight) var(--gutter) var(--section-pad-y);
}
.themes-container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .themes-grid { grid-template-columns: 1fr; }
}

/* ---- Theme Card ---- */
.theme-card {
  position: relative;
  border: 1px solid var(--white-line);
  border-radius: 4px;
  padding: 36px 28px 28px;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
}
.theme-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(246,99,1,0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.theme-card:hover {
  border-color: var(--white-line-strong);
  background: rgba(255,255,255,0.04);
  transform: translateY(-4px);
}
.theme-card:hover::before { opacity: 1; }

.theme-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--orange);
}
.theme-card h3 {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
.theme-card p {
  color: var(--white-dim);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
  font-weight: 300;
}
.theme-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 4px;
  transition: gap 0.2s;
}
.theme-card:hover .theme-card-link { gap: 14px; }

/* ---- Página individual do tema ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.2s, gap 0.2s;
  margin-bottom: 40px;
}
.back-link:hover { color: var(--orange); gap: 14px; }

.theme-detail-hero {
  padding: calc(var(--section-pad-y) + 90px) var(--gutter) var(--section-pad-y-tight);
  max-width: 860px;
  margin: 0 auto;
}
.theme-detail-hero .eyebrow { margin-bottom: 16px; }
.theme-detail-hero h1 {
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.0;
  margin-bottom: 24px;
}
.theme-detail-hero .hero-lead {
  color: var(--white-dim);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 300;
}

.theme-detail-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-pad-y);
}
.theme-detail-body p {
  color: var(--white-dim);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 20px;
  font-weight: 300;
}
.theme-detail-body h3 {
  color: var(--white);
  margin: 48px 0 16px;
  font-size: clamp(18px, 1.5vw, 22px);
}
.theme-detail-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.theme-detail-body ul li {
  color: var(--white-dim);
  font-weight: 300;
  font-size: 17px;
  padding-left: 22px;
  position: relative;
}
.theme-detail-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 13px;
}

.theme-detail-cta {
  margin-top: 64px;
  padding: 40px 36px;
  border: 1px solid var(--white-line);
  border-radius: 4px;
  background: rgba(246,99,1,0.04);
  text-align: center;
}
.theme-detail-cta h3 { margin: 0 0 10px; }
.theme-detail-cta p {
  color: var(--white-dim);
  margin-bottom: 28px;
  font-weight: 300;
}
