/* AI Tools Catalog - Clean Minimal Styles */

/* ===========================
   Theme Variables
   =========================== */
:root {
  /* Light mode (default) */
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f1f3f5;
  --surface: #ffffff;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-subtle: rgba(99, 102, 241, 0.08);
  --accent-text: #6366f1;
  --success: #16a34a;
  --success-bg: rgba(22, 163, 74, 0.08);
  --warning: #ca8a04;
  --warning-bg: rgba(202, 138, 4, 0.08);
  --info: #0284c7;
  --info-bg: rgba(2, 132, 199, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --card-bg: #ffffff;
  --hero-glow: rgba(99, 102, 241, 0.06);
  --focus-ring: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] {
  --bg: #09090b;
  --bg-secondary: #111113;
  --bg-tertiary: #1c1c1f;
  --surface: #18181b;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-subtle: rgba(129, 140, 248, 0.1);
  --accent-text: #818cf8;
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --warning: #eab308;
  --warning-bg: rgba(234, 179, 8, 0.1);
  --info: #38bdf8;
  --info-bg: rgba(56, 189, 248, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --navbar-bg: rgba(9, 9, 11, 0.85);
  --card-bg: #18181b;
  --hero-glow: rgba(129, 140, 248, 0.08);
  --focus-ring: rgba(129, 140, 248, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b;
    --bg-secondary: #111113;
    --bg-tertiary: #1c1c1f;
    --surface: #18181b;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --accent: #818cf8;
    --accent-hover: #6366f1;
    --accent-subtle: rgba(129, 140, 248, 0.1);
    --accent-text: #818cf8;
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --warning: #eab308;
    --warning-bg: rgba(234, 179, 8, 0.1);
    --info: #38bdf8;
    --info-bg: rgba(56, 189, 248, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --navbar-bg: rgba(9, 9, 11, 0.85);
    --card-bg: #18181b;
    --hero-glow: rgba(129, 140, 248, 0.08);
    --focus-ring: rgba(129, 140, 248, 0.4);
  }
}

/* ===========================
   Reset & Base
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  .page-header {
    padding: 8rem 1rem 0.75rem;
  }

  .tools-section {
    padding: 0.75rem 1rem 1.5rem;
  }
}

/* ===========================
   Navigation
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  transition: background-color 0.2s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.25rem;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.nav-logo span {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-secondary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

/* Light mode: show moon (click to go dark) */
.theme-toggle .icon-moon {
  display: block;
}
.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-secondary);
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.lang-btn {
  padding: 0.375rem 0.625rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.8125rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: var(--accent);
  color: white;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    padding: 1rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--hero-glow) 0%, transparent 60%);
}

.hero-grid {
  display: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero-badge svg {
  color: var(--accent);
}

.hero-badge span {
  color: var(--accent-text);
  font-weight: 600;
}

.hero h1 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search {
  max-width: 500px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 2.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.hero-search input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
  outline: none;
}

.hero-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-search-results {
  display: none;
  margin: 2rem auto 0;
  max-width: 1100px;
  text-align: left;
}

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

.hero-search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-search-grid {
  margin-top: 1.5rem;
}

.hero-search-empty {
  display: none;
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
}

.hero-search-empty.active {
  display: block;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-secondary);
}

.btn-sm {
  padding: 0.4375rem 0.875rem;
  font-size: 0.8125rem;
}

/* ===========================
   Cards
   =========================== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

/* ===========================
   Tools Grid & Section
   =========================== */
.tools-section {
  padding: 1rem 1.5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.tools-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-group select,
.filter-group input {
  padding: 0.625rem 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.875rem;
  height: 42px;
  line-height: 1.5;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-group select {
  cursor: pointer;
}

.filter-group input {
  cursor: text;
}

.filter-group input::placeholder {
  color: var(--text-muted);
}

.filter-group select:focus-visible,
.filter-group input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
  outline: none;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tools-filters {
    padding: 1rem;
  }

  .filter-group {
    min-width: 100%;
  }
}

/* Tool Card */
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.tool-info {
  flex: 1;
}

.tool-info h3 {
  margin-bottom: 0.25rem;
  font-size: 1.0625rem;
}

.tool-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tool-category {
  font-size: 0.75rem;
  color: var(--accent-text);
  background: var(--accent-subtle);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
}

.tool-pricing {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
}

.tool-pricing.free {
  color: var(--success);
  background: var(--success-bg);
}

.tool-pricing.freemium {
  color: var(--warning);
  background: var(--warning-bg);
}

.tool-pricing.paid {
  color: var(--info);
  background: var(--info-bg);
}

.tool-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.tool-features {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.tool-features span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.tool-features span::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

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

/* ===========================
   News Section
   =========================== */
.news-section {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-card-image {
  height: 120px;
  background: var(--accent);
  border-radius: 12px 12px 0 0;
  margin: -1.5rem -1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-image svg {
  width: 40px;
  height: 40px;
  color: white;
  opacity: 0.7;
}

.news-card-category {
  font-size: 0.75rem;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.news-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  flex: 1;
}

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

.news-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===========================
   Featured Section
   =========================== */
.featured-section {
  padding: 4rem 1.5rem;
  background: var(--bg-secondary);
}

.featured-container {
  max-width: 1280px;
  margin: 0 auto;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

.featured-card {
  text-align: center;
  padding: 2rem;
}

.featured-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.featured-card h3 {
  margin-bottom: 0.75rem;
}

.featured-card p {
  color: var(--text-secondary);
}

/* ===========================
   Stats Section
   =========================== */
.stats-section {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
}

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

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

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

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

.footer-brand p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-column h4 {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

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

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--text-primary);
}

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

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

/* ===========================
   Page Headers
   =========================== */
.page-header {
  padding: 7rem 1.5rem 1rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================
   States
   =========================== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state svg {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===========================
   Utilities
   =========================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeIn 0.5s ease forwards;
}

/* ===========================
   News Detail
   =========================== */
.news-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.news-detail-header {
  margin-bottom: 2rem;
}

.news-detail-category {
  font-size: 0.8125rem;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.news-detail h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.news-detail-meta {
  color: var(--text-secondary);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.news-detail-content {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.news-detail-content p {
  margin-bottom: 1.5rem;
}

.news-detail-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.news-detail-tags span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 0.3125rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
}

/* ===========================
   Mobile Hero
   =========================== */
@media (max-width: 768px) {
  .hero {
    min-height: 45vh;
    padding: 8rem 1rem 1rem;
  }

  .hero-badge {
    margin-bottom: 0.75rem;
  }

  .hero h1 {
    margin-bottom: 0.5rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .hero-search {
    margin-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 40vh;
    padding: 7rem 1rem 0.75rem;
  }

  .hero p {
    font-size: 0.95rem;
  }
}

/* ===========================
   SEO & Accessibility
   =========================== */

/* Breadcrumb */
.breadcrumb {
  padding: 0.5rem 0;
  margin: 0.25rem auto 0.5rem;
  max-width: 1200px;
  border-bottom: 1px solid var(--border);
  padding-top: 5.5rem;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.breadcrumb li::after {
  content: "/";
  margin: 0 0.5rem;
  color: var(--text-muted);
}

.breadcrumb li:last-child::after {
  content: "";
  margin: 0;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb [aria-current="page"] {
  color: var(--text-primary);
  font-weight: 500;
}

/* Section Heading */
.section-heading {
  text-align: center;
  margin: 0.5rem auto 1.25rem;
  color: var(--text-primary);
  font-size: 1.75rem;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
}

/* ===========================
   FAQ Section
   =========================== */
.faq-section {
  background: var(--bg-secondary);
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

.faq-item p,
.faq-item ol,
.faq-item ul {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.875rem;
}

.faq-item ol,
.faq-item ul {
  margin-left: 1.25rem;
  margin-top: 0.5rem;
}

.faq-item li {
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
}

/* Mobile FAQ */
@media (max-width: 768px) {
  .breadcrumb {
    padding: 0.5rem 0;
    margin: 0.25rem auto;
    padding-top: 7rem;
  }

  .breadcrumb ol {
    padding: 0 1rem;
    font-size: 0.875rem;
  }

  .section-heading {
    font-size: 1.5rem;
    margin: 0.5rem auto 1rem;
  }

  .faq-section {
    padding: 1.5rem 0.75rem;
    margin-top: 2rem;
  }

  .faq-item {
    padding: 1rem;
  }

  .faq-item h3 {
    font-size: 1rem;
  }

  .faq-item p,
  .faq-item ol,
  .faq-item ul {
    font-size: 0.8125rem;
  }

  .faq-item li {
    font-size: 0.8125rem;
  }
}
