/**
 * SEO Landing Page — Index Page & Editorial Tiers
 * SEO index hero, section headers, card grid, editorial 3-tier layout,
 * FAQ section, CTA section.
 */

/* ========================================
   SEO Index Page — Hero Featured Article
   ======================================== */
.seo-index-hero {
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.seo-index-hero-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.seo-index-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--seo-bg-deep) 0%, transparent 20%, transparent 85%, var(--seo-bg-deep) 100%);
  z-index: 1;
}

.seo-index-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, hsla(165 100% 45% / 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, hsla(220 80% 50% / 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.seo-index-hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.seo-index-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--seo-accent-glow);
  color: var(--seo-accent);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: var(--seo-radius-pill);
  margin-bottom: 1.25rem;
}

.seo-index-hero-label i {
  font-size: 0.875rem;
}

.seo-index-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--seo-text-primary);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.seo-index-hero-desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--seo-text-secondary);
  margin: 0 0 1.5rem;
  max-width: 560px;
}

.seo-index-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.seo-index-hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--seo-text-muted);
}

.seo-index-hero-stat i {
  color: var(--seo-accent);
  font-size: 1rem;
}

.seo-index-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--seo-accent);
  color: var(--seo-bg-deep);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--seo-radius-sm);
  text-decoration: none;
  transition: background 0.2s;
}

.seo-index-hero-cta:hover {
  background: var(--seo-accent-dim);
  color: var(--seo-bg-deep);
}

.seo-index-hero-cta i {
  transition: transform 0.2s;
}

.seo-index-hero-cta:hover i {
  transform: translateX(4px);
}

/* Hero Visual (mini podium preview) */
.seo-index-hero-visual {
  display: none;
}

.seo-index-hero-badge {
  text-align: center;
}

.seo-index-hero-badge-theme {
  display: inline-block;
  background: hsla(0 0% 100% / 0.05);
  border: 1px solid var(--seo-border);
  color: var(--seo-text-secondary);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--seo-radius-sm);
}

.seo-index-hero-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.75rem;
}

.seo-mini-podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--seo-bg-card);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1rem 0.75rem 0.75rem;
  min-width: 80px;
}

.seo-mini-podium-1 {
  border-color: hsla(51 100% 50% / 0.3);
  border-width: 2px;
  padding-bottom: 1.25rem;
}

.seo-mini-podium-2 {
  border-color: hsla(0 0% 75% / 0.2);
}

.seo-mini-podium-3 {
  border-color: hsla(30 60% 50% / 0.2);
}

.seo-mini-podium-medal {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.seo-mini-podium-name {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--seo-text-muted);
  text-align: center;
  white-space: nowrap;
}

/* ========================================
   SEO Index Page — Section Header
   ======================================== */
.seo-index-section {
  padding: 3rem 0;
}

.seo-index-section-header {
  margin-bottom: 2rem;
}

.seo-index-section-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--seo-text-primary);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.seo-index-section-title i {
  color: var(--seo-accent);
}

.seo-index-section-subtitle {
  font-size: 1rem;
  color: var(--seo-text-muted);
  margin: 0;
  max-width: 600px;
}

/* ========================================
   SEO Index Page — Fluid Grid
   ======================================== */
.seo-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* FIX(Issue9): Index cards — transition on border-color only */
.seo-index-card {
  background: var(--seo-bg-card);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease-premium);
}

.seo-index-card:hover {
  border-color: var(--seo-border-accent);
}

.seo-index-card-link {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.seo-index-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.seo-index-card-theme {
  background: var(--seo-accent-glow);
  color: var(--seo-accent);
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.375rem 0.75rem;
  border-radius: var(--seo-radius-pill);
}

.seo-index-card-year {
  background: hsla(0 0% 100% / 0.05);
  border: 1px solid var(--seo-border);
  color: var(--seo-text-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.375rem 0.625rem;
  border-radius: var(--seo-radius-pill);
}

.seo-index-card-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--seo-text-primary);
  margin: 0 0 0.625rem;
  line-height: 1.35;
  transition: color 0.2s;
}

.seo-index-card:hover .seo-index-card-title {
  color: var(--seo-accent);
}

.seo-index-card-desc {
  font-size: 0.875rem;
  color: var(--seo-text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seo-index-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--seo-border);
}

.seo-index-card-stocks {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--seo-accent);
  font-weight: 500;
}

.seo-index-card-stocks i {
  font-size: 0.875rem;
}

.seo-index-card-arrow {
  color: var(--seo-text-muted);
  transition: color 0.2s, transform 0.2s;
}

.seo-index-card:hover .seo-index-card-arrow {
  color: var(--seo-accent);
  transform: translateX(4px);
}

/* ========================================
   SEO Index Page — Empty State
   ======================================== */
.seo-index-empty-section {
  padding: 4rem 0;
}

.seo-index-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--seo-bg-card);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius-lg);
}

.seo-index-empty i {
  font-size: 3.5rem;
  color: var(--seo-text-muted);
  opacity: 0.3;
  margin-bottom: 1.5rem;
  display: block;
}

.seo-index-empty h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--seo-text-primary);
  margin: 0 0 0.75rem;
}

.seo-index-empty p {
  font-size: 1rem;
  color: var(--seo-text-muted);
  margin: 0;
}

/* ========================================
   SEO Index Page — FAQ Section
   ======================================== */
.seo-faq-section {
  padding: 2.5rem 0 1rem;
}

.seo-faq-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--seo-text-primary);
  margin-bottom: 1.25rem;
}

.seo-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.seo-faq-item {
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.seo-faq-item[open] {
  border-color: var(--seo-border-accent);
}

.seo-faq-question {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--seo-text-primary);
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.seo-faq-question::-webkit-details-marker {
  display: none;
}

.seo-faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--seo-text-secondary, hsla(0 0% 100% / 0.5));
  flex-shrink: 0;
  transition: transform 0.2s;
}

.seo-faq-item[open] .seo-faq-question::after {
  content: "\2212";
}

.seo-faq-answer {
  padding: 0 1.25rem 1.125rem;
  color: var(--seo-text-secondary, hsla(0 0% 100% / 0.7));
  font-size: 0.875rem;
  line-height: 1.65;
}

.seo-faq-answer p {
  margin: 0;
}

/* ========================================
   SEO Index Page — CTA Section
   ======================================== */
.seo-index-cta-section {
  padding: 2rem 0 4rem;
}

/* FIX(Issue7): Flat background, no gradient */
.seo-index-cta-box {
  background: var(--seo-accent-bg);
  border: 1px solid var(--seo-border-accent);
  border-radius: var(--seo-radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.seo-index-cta-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--seo-text-primary);
  margin: 0 0 0.75rem;
}

.seo-index-cta-title i {
  color: var(--seo-accent);
}

.seo-index-cta-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--seo-text-secondary);
  margin: 0;
  max-width: 540px;
}

.seo-index-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seo-index-cta-actions .btn {
  font-family: var(--font-heading);
  font-weight: 600;
  white-space: nowrap;
}

.seo-index-cta-actions .btn-primary {
  background: var(--seo-accent);
  border-color: var(--seo-accent);
  color: var(--seo-bg-deep);
}

.seo-index-cta-actions .btn-primary:hover {
  background: var(--seo-accent-dim);
  border-color: var(--seo-accent-dim);
}

.seo-index-cta-actions .btn-outline-light {
  border-color: var(--seo-border-accent);
  color: var(--seo-accent);
}

.seo-index-cta-actions .btn-outline-light:hover {
  background: var(--seo-accent-bg);
  border-color: var(--seo-accent);
  color: var(--seo-accent);
}

/* ========================================
   Editorial 3-Tier Layout
   ======================================== */

/* Shared elements */
.seo-ed-tag {
  background: hsla(165 100% 45% / 0.1);
  color: var(--seo-accent);
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.375rem 0.75rem;
  border-radius: var(--seo-radius-pill);
}

.seo-ed-year {
  background: hsla(0 0% 100% / 0.05);
  border: 1px solid var(--seo-border);
  color: var(--seo-text-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.375rem 0.625rem;
  border-radius: var(--seo-radius-pill);
}

.seo-ed-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.seo-ed-stats-line {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--seo-text-muted);
}

.seo-ed-stat-text { white-space: nowrap; }

.seo-ed-stat-sep {
  margin: 0 0.5rem;
  opacity: 0.4;
}

/* Intro header */
.seo-ed-intro { padding: 1.25rem 0 0.25rem; }

.seo-ed-intro-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--seo-text-primary);
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.seo-ed-intro-sub {
  font-size: 0.8125rem;
  color: var(--seo-text-muted);
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

/* Podium badges */
.seo-ed-hero-podium {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.seo-ed-podium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--seo-radius-pill);
  background: hsla(0 0% 100% / 0.06);
  border: 1px solid var(--seo-border);
  color: var(--seo-text-secondary);
}

.seo-ed-podium-1 { border-color: hsla(45 90% 55% / 0.4); background: hsla(45 90% 55% / 0.08); }
.seo-ed-podium-2 { border-color: hsla(210 15% 65% / 0.35); background: hsla(210 15% 65% / 0.06); }
.seo-ed-podium-3 { border-color: hsla(25 60% 50% / 0.35); background: hsla(25 60% 50% / 0.06); }

.seo-ed-podium-rank { color: var(--seo-text-muted); font-size: 0.6875rem; }
.seo-ed-podium-perf { font-size: 0.75rem; }
.seo-ed-podium-perf.seo-perf-pos { color: var(--seo-accent); }
.seo-ed-podium-perf.seo-perf-neg { color: hsl(0 70% 60%); }

/* Progressive desc fade */
.seo-ed-desc-fade {
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, rgba(0,0,0,0.30) 70%, rgba(0,0,0,0.20) 85%, rgba(0,0,0,0.10) 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 40%, rgba(0,0,0,0.30) 70%, rgba(0,0,0,0.20) 85%, rgba(0,0,0,0.10) 100%);
}

.seo-ed-hero .seo-ed-desc-fade {
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, rgba(0,0,0,0.30) 80%, rgba(0,0,0,0.20) 90%, rgba(0,0,0,0.10) 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 60%, rgba(0,0,0,0.30) 80%, rgba(0,0,0,0.20) 90%, rgba(0,0,0,0.10) 100%);
}

.seo-ed-section { padding: 1.5rem 0; }

/* TIER 1: Full-width hero */
.seo-ed-hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 3.5rem;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

.seo-ed-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transition: transform 8s ease-out;
}

.seo-ed-hero:hover .seo-ed-hero-img {
  transform: scale(1.03);
}

.seo-ed-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--seo-bg-deep) 0%, hsla(220 50% 4% / 0.85) 30%, hsla(220 50% 4% / 0.5) 60%, hsla(220 50% 4% / 0.25) 100%);
  z-index: 1;
}

.seo-ed-hero-inner { position: relative; z-index: 2; }

.seo-ed-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: var(--seo-text-primary);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: -0.025em;
  transition: color 0.2s;
}

.seo-ed-hero-desc {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--seo-text-secondary);
  margin: 0 0 1.25rem;
}

.seo-ed-hero .seo-ed-stats-line {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.seo-ed-hero-title-link {
  text-decoration: none;
  color: inherit;
}

.seo-ed-hero-title-link:hover .seo-ed-hero-title {
  color: var(--seo-accent);
}

/* TIER 2: Duo secondary heroes */
.seo-ed-duo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.seo-ed-duo-card {
  border-radius: var(--seo-radius-lg);
  overflow: hidden;
}

.seo-ed-duo-link {
  display: block;
  position: relative;
  min-height: 280px;
  text-decoration: none;
  color: inherit;
}

.seo-ed-duo-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 5s ease-out;
}

.seo-ed-duo-img-fallback {
  background: hsl(220 60% 12%);
}

.seo-ed-duo-card:hover .seo-ed-duo-img {
  transform: scale(1.04);
}

.seo-ed-duo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, hsla(220 50% 4% / 0.92) 0%, hsla(220 50% 4% / 0.55) 50%, hsla(220 50% 4% / 0.2) 100%);
}

.seo-ed-duo-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 1.5rem;
}

.seo-ed-duo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--seo-text-primary);
  margin: 0 0 0.4rem;
  line-height: 1.25;
  transition: color 0.2s;
}

.seo-ed-duo-card:hover .seo-ed-duo-title {
  color: var(--seo-accent);
}

.seo-ed-duo-desc {
  font-size: 0.875rem;
  color: var(--seo-text-secondary);
  line-height: 1.55;
  margin: 0 0 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seo-ed-duo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seo-ed-duo-footer .seo-ed-stats-line {
  font-size: 0.75rem;
}

/* TIER 3: Tri-column compact cards */
.seo-ed-tri-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* FIX(Issue9): Tri cards — transition on border-color only */
.seo-ed-tri-card {
  background: var(--seo-bg-card);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease-premium);
}

.seo-ed-tri-card:hover {
  border-color: var(--seo-border-accent);
}

.seo-ed-tri-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.seo-ed-tri-img {
  height: 130px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.seo-ed-tri-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--seo-bg-card) 0%, transparent 50%);
}

.seo-ed-tri-body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.seo-ed-tri-noimg {
  padding-top: 1.25rem;
}

.seo-ed-tri-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--seo-text-primary);
  margin: 0 0 0.4rem;
  line-height: 1.35;
  transition: color 0.2s;
}

.seo-ed-tri-card:hover .seo-ed-tri-title {
  color: var(--seo-accent);
}

.seo-ed-tri-desc {
  font-size: 0.8125rem;
  color: var(--seo-text-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seo-ed-tri-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--seo-border);
}

.seo-ed-tri-footer .seo-ed-stats-line {
  font-size: 0.75rem;
}

/* Show more button */
.seo-ed-show-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--seo-border-accent);
  color: var(--seo-accent);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--seo-radius-pill);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.seo-ed-show-more:hover {
  background: hsla(165 100% 45% / 0.08);
  border-color: var(--seo-accent);
}

.seo-ed-overflow {
  margin-top: 1.25rem;
}
