/* ===== AI TOOLS HUB - Editorial Dark Mode Design ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Outfit:wght@300;400;500;600;700;800;900&family=Newsreader:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #101018;
  --bg-card: #14141e;
  --bg-card-hover: #1a1a28;
  --bg-elevated: #1e1e2e;
  --border-color: rgba(255,255,255,0.06);
  --border-accent: rgba(0,200,255,0.15);
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-muted: #555570;
  --accent-blue: #00c8ff;
  --accent-cyan: #00e5cc;
  --accent-gradient: linear-gradient(135deg, #00c8ff, #00e5cc);
  --accent-glow: 0 0 30px rgba(0,200,255,0.15);
  --font-display: 'Space Mono', monospace;
  --font-body: 'Outfit', sans-serif;
  --font-editorial: 'Newsreader', serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a4a; }

/* ===== GRAIN OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(10,10,15,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-blue);
  background: rgba(0,200,255,0.05);
}

.nav-cta {
  background: var(--accent-gradient);
  color: #000 !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 50px !important;
}

.nav-cta:hover {
  opacity: 0.9;
  box-shadow: var(--accent-glow);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 2rem 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,200,255,0.08), transparent),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(0,229,204,0.05), transparent),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(0,200,255,0.04), transparent);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.hero-content {
  position: relative;
  max-width: 900px;
  text-align: center;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.2);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-badge .pulse {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.hero h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-editorial);
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 300;
  font-style: italic;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Search Bar */
.hero-search {
  max-width: 600px;
  margin: 0 auto 3rem;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.hero-search input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(0,200,255,0.08);
}

.hero-search input::placeholder {
  color: var(--text-muted);
}

.hero-search .search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.search-results-dropdown.active { display: block; }

.search-result-item {
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.search-result-item:hover {
  background: rgba(0,200,255,0.05);
}

.search-result-item .sr-cat {
  font-size: 0.7rem;
  color: var(--accent-blue);
  background: rgba(0,200,255,0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-weight: 600;
}

/* Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* ===== AD SLOTS ===== */
.ad-slot {
  min-height: 250px;
  background: rgba(255,255,255,0.015);
  border: 1px dashed rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  margin: 3rem auto;
  max-width: 1400px;
  position: relative;
}

.ad-slot-inline {
  min-height: 120px;
  max-width: 100%;
  margin: 2rem 0;
}

.ad-slot-sidebar {
  min-height: 600px;
  width: 300px;
  position: sticky;
  top: 90px;
}

.ad-slot-leaderboard {
  min-height: 90px;
  max-width: 728px;
}

/* ===== SECTIONS COMMON ===== */
.section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-desc {
  font-family: var(--font-editorial);
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  font-style: italic;
  font-weight: 300;
}

/* ===== CATEGORY CARDS ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.category-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.category-card:hover::before { opacity: 1; }

.category-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.category-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.category-count {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--accent-blue);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== COMPARISON TABLES ===== */
.comparison-section {
  padding: 3rem 0;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table thead {
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
}

.comparison-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.comparison-table tbody tr {
  transition: var(--transition);
  cursor: pointer;
}

.comparison-table tbody tr:hover {
  background: rgba(0,200,255,0.03);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.tool-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.tool-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.rating-stars {
  color: #ffc107;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.rating-num {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-left: 0.4rem;
}

.pricing-tag {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-weight: 600;
}

.pricing-free {
  background: rgba(0,229,204,0.1);
  color: var(--accent-cyan);
}

.pricing-paid {
  background: rgba(0,200,255,0.1);
  color: var(--accent-blue);
}

.pricing-freemium {
  background: rgba(255,193,7,0.1);
  color: #ffc107;
}

.free-tier-yes {
  color: var(--accent-cyan);
  font-weight: 600;
}

.free-tier-limited {
  color: #ffc107;
  font-weight: 500;
}

.free-tier-no {
  color: #ff5555;
  font-weight: 500;
}

.best-for-tag {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.feature-chip {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border-radius: 50px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ===== TOOL REVIEWS (Expandable) ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

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

.review-card-header {
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
}

.review-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.review-meta h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.review-meta .review-tagline {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.review-rating-inline {
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
}

.review-rating-inline .score {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.review-rating-inline .out-of {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(0,200,255,0.03);
  border: none;
  border-top: 1px solid var(--border-color);
  color: var(--accent-blue);
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  gap: 0.5rem;
  transition: var(--transition);
}

.review-expand-btn:hover {
  background: rgba(0,200,255,0.06);
}

.review-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.review-body.expanded {
  max-height: 2000px;
}

.review-body-inner {
  padding: 0 1.5rem 1.5rem;
}

.review-body-inner h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent-blue);
  margin: 1.25rem 0 0.5rem;
  letter-spacing: 0.5px;
}

.review-body-inner p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.review-body-inner ul {
  list-style: none;
  padding: 0;
}

.review-body-inner ul li {
  padding: 0.3rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.review-body-inner ul li::before {
  content: '→';
  color: var(--accent-cyan);
  margin-right: 0.5rem;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.pros h5, .cons h5 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pros h5 { color: var(--accent-cyan); }
.cons h5 { color: #ff5555; }

.pros li::before { content: '✓'; color: var(--accent-cyan); margin-right: 0.5rem; }
.cons li::before { content: '✕'; color: #ff5555; margin-right: 0.5rem; }

/* ===== BEST-OF LISTS ===== */
.bestof-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.bestof-tab {
  padding: 0.6rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.bestof-tab.active,
.bestof-tab:hover {
  background: rgba(0,200,255,0.1);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.bestof-list {
  display: none;
}

.bestof-list.active {
  display: block;
}

.bestof-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.bestof-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.bestof-rank {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 3rem;
  text-align: center;
}

.bestof-rank.top3 {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bestof-info { flex: 1; }

.bestof-info h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.bestof-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.bestof-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(0,200,255,0.1);
  color: var(--accent-blue);
  border-radius: 50px;
  font-weight: 600;
  white-space: nowrap;
}

/* ===== BLOG/ARTICLES ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.article-thumb {
  height: 200px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.article-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, var(--bg-card));
}

.article-body {
  padding: 1.5rem;
}

.article-cat {
  font-size: 0.7rem;
  color: var(--accent-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}

.article-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== ARTICLE MODAL (Full Content) ===== */
.article-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem;
}

.article-modal-overlay.active {
  display: flex;
}

.article-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  margin: 2rem auto;
  position: relative;
}

.article-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  z-index: 1;
  transition: var(--transition);
}

.article-modal-close:hover {
  background: rgba(255,0,0,0.1);
  border-color: #ff5555;
  color: #ff5555;
}

.article-modal-header {
  padding: 3rem 3rem 1.5rem;
}

.article-modal-header .article-cat {
  margin-bottom: 1rem;
}

.article-modal-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.article-modal-header .article-meta {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.article-modal-content {
  padding: 2rem 3rem 3rem;
}

.article-modal-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-family: var(--font-editorial);
}

.article-modal-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.article-modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--accent-blue);
}

.article-modal-content ul, .article-modal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-modal-content li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-family: var(--font-editorial);
  line-height: 1.7;
}

.article-modal-content blockquote {
  border-left: 3px solid var(--accent-blue);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(0,200,255,0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  gap: 1rem;
}

.faq-question:hover { color: var(--accent-blue); }

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.3rem 0;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--accent-blue); }

.footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== PAGES (hash routing) ===== */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10,10,15,0.98);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .hero h1 { letter-spacing: -1px; }

  .hero-stats { gap: 1.5rem; }

  .categories-grid { grid-template-columns: 1fr; }

  .comparison-table { font-size: 0.8rem; }

  .reviews-grid { grid-template-columns: 1fr; }

  .articles-grid { grid-template-columns: 1fr; }

  .bestof-item { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .footer-inner { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .article-modal-header, .article-modal-content { padding-left: 1.5rem; padding-right: 1.5rem; }

  .article-modal-header h1 { font-size: 1.5rem; }

  .pros-cons { grid-template-columns: 1fr; }

  .ad-slot-sidebar { display: none; }

  .section { padding: 3rem 1.25rem; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 1rem 60px; }
  .hero-badge { font-size: 0.7rem; }
  .bestof-tabs { gap: 0.35rem; }
  .bestof-tab { padding: 0.5rem 1rem; font-size: 0.8rem; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tab transitions */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.4s ease; }

/* ===== COMPARISON TAB NAV ===== */
.comp-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.comp-tab {
  padding: 0.6rem 1.25rem;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.comp-tab.active,
.comp-tab:hover {
  color: var(--accent-blue);
  border-color: var(--border-accent);
  background: rgba(0,200,255,0.05);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50%;
  color: #000;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(0,200,255,0.3);
  transition: var(--transition);
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(0,200,255,0.4);
}
