@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');

/* ── Gold Accent (Logo Color) ── */
.badge-gold {
  background: #ECB556 !important;
  color: #18181B !important;
}
.bg-gold-100 {
  background-color: #fbe8c2 !important;
  color: #18181B !important;
}
.text-gold {
  color: #ECB556 !important;
}
.border-gold {
  border-color: #ECB556 !important;
}
/* =========================================================
   Best AI Tool — Custom Styles (supplements Tailwind CDN)
   Deep Navy + Metallic Silver Theme — Single unified mode
   ========================================================= */

/* ── Theme Variables ──────────────────────────────────────── */
:root {
  --navy-950:  #0A0A0B;
  --navy-900:  #272729;
  --navy-800:  #303033;
  --navy-700:  #3A3A3E;
  --navy-600:  #3F3F46;
  --navy-500:  #52525B;
  --navy-border: rgba(161, 161, 170, 0.18);
  --metallic-1: #52525B;
  --metallic-2: #71717A;
  --metallic-3: #A1A1AA;
  --metallic-4: #D4D4D8;
  --metallic-5: #E4E4E7;
  --silver-text: #A1A1AA;
  --platinum:    #E4E4E7;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background-color: var(--navy-900);
}


body, * {
  font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Fade-in on page load ──
   NOTE: keep pages visible if JS fails by defaulting to opacity:1.
   JavaScript may still add `page-fadein` to trigger transitions,
   but site should never remain hidden when scripts error. */
body {
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1);
}
/* Optional class used by JS to force a fade-in effect when available */
body.page-fadein {
  opacity: 1;
}

/* ── Global theme override — force charcoal dark on every page ── */
body {
  background-color: var(--navy-900) !important;
  color: #C0C0C8 !important;
}

/* Page background alternating sections */
.bg-slate-50,
.bg-white,
.bg-gray-50 {
  background-color: var(--navy-900) !important;
}

section.bg-white,
.bg-white.border-b {
  background-color: var(--navy-800) !important;
}

/* Text overrides */
.text-slate-900,
.text-gray-900 { color: var(--platinum) !important; }
.text-slate-800 { color: #D4D4D8 !important; }
.text-slate-700 { color: #C0C0C8 !important; }
.text-slate-600 { color: #A8A8B0 !important; }
.text-slate-500 { color: #909099 !important; }
.text-slate-400 { color: #808089 !important; }
.text-white     { color: #E4E4E7 !important; }

/* Border overrides */
.border-slate-200 { border-color: var(--navy-border) !important; }

/* Country code styling */
.country-code {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Navbar — semi-transparent dark */
#navbar,
.bg-white\/90 { background-color: rgba(17, 17, 19, 0.96) !important; }

/* Sticky filter/category bars */
.bg-white\/95,
.bg-slate-100\/95 { background-color: rgba(26, 5, 5, 0.97) !important; }

/* ── Hide dark mode toggle (single theme) ─────────────────── */
@media (min-width: 768px) {
  #navbar .max-w-7xl > .flex.items-center.justify-between.h-16 {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  #navbar .hidden.md\:flex {
    justify-self: center;
    transform: translateX(-5.5rem);
    gap: 2rem;
  }

  #navbar .hidden.md\:flex > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0 !important;
  }

  #navbar .hidden.md\:flex a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }
  
  #navbar .hidden.md\:flex {
    justify-self: center;
  }

  #navbar .max-w-7xl > .flex.items-center.justify-between.h-16 > .flex.items-center.space-x-2 {
    justify-self: end;
  }
}

/* ── Active Nav Link ─────────────────────────────────── */
#navbar a[href$="prompt-library.html"],
#navbar a[href$="/prompt-library.html"] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #A8A8B0 !important;
  font-weight: 500 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  justify-content: flex-start !important;
  margin: 0 !important;
}

@media (min-width: 768px) {
  #navbar .hidden.md\:flex a[href$="prompt-library.html"],
  #navbar .hidden.md\:flex a[href$="/prompt-library.html"] {
    margin-left: 0.75rem !important;
  }
}

#navbar a[href$="prompt-library.html"]:hover,
#navbar a[href$="/prompt-library.html"]:hover {
  color: #A8A8B0 !important;
  transform: none !important;
}

#navbar #mobile-menu a[href$="prompt-library.html"],
#navbar #mobile-menu a[href$="/prompt-library.html"] {
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.5rem !important;
}

#navbar a.nav-active {
  color: #E4E4E7 !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, var(--metallic-2) 0%, var(--metallic-3) 100%) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 2px 12px 0 rgba(113,113,122,0.08);
  padding: 0.4em 1.1em !important;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

#navbar .hidden.md\:flex a.nav-active::after {
  content: none;
}

/* Mobile menu active */
#navbar #mobile-menu a.nav-active {
  background: linear-gradient(135deg, var(--metallic-2) 0%, var(--metallic-3) 100%) !important;
  color: #E4E4E7 !important;
  font-weight: 700 !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 2px 12px 0 rgba(113,113,122,0.08);
  padding: 0.4em 1.1em !important;
  transition: background 0.2s, color 0.2s;
}
/* ── Gradient Text ────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--metallic-3) 0%, var(--metallic-5) 45%, var(--metallic-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-disclaimer {
  margin-top: 0.75rem;
  color: #909099;
  font-size: 0.72rem;
  line-height: 1.45;
}

.legal-disclaimer a {
  color: #D4D4D8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-note-card {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(161, 161, 170, 0.18);
  background: rgba(63, 63, 70, 0.32);
}

.legal-note-card p {
  margin: 0;
  color: #A8A8B0;
  font-size: 0.83rem;
  line-height: 1.55;
}

.legal-note-card strong {
  color: #E4E4E7;
}

.gradient-text-warm {
  background: linear-gradient(135deg, #C8A84A 0%, #E8D080 50%, #C8A84A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Gradient Backgrounds — Metallic Steel ────────────────── */
.gradient-bg {
  background: linear-gradient(135deg, var(--metallic-1) 0%, var(--metallic-2) 45%, var(--metallic-3) 100%);
}

.hero-gradient {
  background: radial-gradient(ellipse at 60% 0%, rgba(113, 113, 122, 0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 10% 80%, rgba(82, 82, 91, 0.13) 0%, transparent 60%);
}

/* ── Card Styles ──────────────────────────────────────────── */
.card {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* ── Card image layering and smooth crossfade for news cards ── */
.card-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.card-image img { display:block; width:100%; height:100%; object-fit:cover; }
.card-image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.card-image-bg.show {
  opacity: 1;
  transform: scale(1);
}

/* Thumbnail strip under news cards */
.news-thumbs { display:flex; gap:0.5rem; margin-top:0.75rem; }
.news-thumbs img { width: calc((100% - 1rem) / 3); height:48px; object-fit:cover; border-radius:8px; border:1px solid rgba(255,255,255,0.04); }

.news-thumbs img.active { outline: 2px solid rgba(236,181,86,0.9); transform: scale(1.02); }


.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(161, 161, 170, 0.22);
  border-color: rgba(161, 161, 170, 0.30);
}

.tool-card.ai-model-card {
  background: linear-gradient(180deg, #cfd7df 0%, #b8c2ce 100%) !important;
  border: 1px solid rgba(71, 85, 105, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.tool-card.ai-model-card:hover {
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(148, 163, 184, 0.28);
  border-color: rgba(100, 116, 139, 0.45);
}

.tool-card.ai-model-card .bg-slate-50 {
  background-color: rgba(214, 223, 232, 0.94) !important;
  border: 1px solid rgba(71, 85, 105, 0.24);
}

.tool-card.ai-model-card .border-slate-100 {
  border-color: rgba(203, 213, 225, 0.95) !important;
}

.tool-card .w-12.h-12.rounded-xl.overflow-hidden.bg-white {
  background-color: #ffffff !important;
}

.tool-card.ai-model-card .text-slate-900,
.tool-card.ai-model-card .text-slate-800 {
  color: #0f172a !important;
}

.tool-card.ai-model-card .text-slate-700 {
  color: #334155 !important;
}

.tool-card.ai-model-card .text-slate-600,
.tool-card.ai-model-card .text-slate-500 {
  color: #475569 !important;
}

.tool-card.ai-model-card .text-slate-400 {
  color: #64748b !important;
}

.tool-card.ai-model-card .badge-blue {
  background: rgba(148, 163, 184, 0.15);
  color: #1e293b;
  border-color: rgba(148, 163, 184, 0.35);
}

.tool-card.ai-model-card .badge-green {
  background: rgba(34, 197, 94, 0.16);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.28);
}

.tool-card.ai-model-card .ai-model-paid-badge {
  background: #f4c64f !important;
  color: #111827 !important;
  border-color: #d4a62a !important;
}

#tools-grid .tool-card {
  order: 1;
}

#tools-grid .tool-card.ai-model-card {
  order: 2;
}

#tools-grid .tool-card > .flex.items-start.justify-between > .badge {
  position: relative;
  overflow: visible;
  margin-bottom: 1.55rem;
}

#tools-grid .tool-card > .flex.items-start.justify-between > .badge-pair {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

#tools-grid .tool-card > .flex.items-start.justify-between > .badge::after {
  content: "AI Tool";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

#tools-grid .tool-card > .flex.items-start.justify-between > .badge-pair::after {
  content: "AI Tool";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

#tools-grid .tool-card.ai-model-card > .flex.items-start.justify-between > .badge::after,
#tools-grid .tool-card.ai-model-card > .flex.items-start.justify-between > .badge-pair::after {
  content: "AI Model";
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.35);
  color: #1e293b;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--metallic-1) 0%, var(--metallic-2) 60%, var(--metallic-3) 100%);
  color: #ffffff;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.btn-primary:active { transform: translateY(0); }

/* ── Share buttons — match attached design across blog pages --- */
button[data-share] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.45rem 0.9rem !important;
  background: #F3F4F6 !important; /* light button background */
  color: #0F172A !important;      /* dark label color */
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  border-radius: 10px !important;
  border: 1px solid rgba(15,23,42,0.06) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset !important;
  cursor: pointer !important;
}

button[data-share] * {
  color: inherit !important;
  font-weight: 700 !important;
}

button[data-share]:hover {
  background: #ffffff !important;
}



.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--metallic-3);
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid var(--metallic-2);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--metallic-1);
  color: #fff;
  border-color: var(--metallic-1);
}

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-blue   { background: rgba(82, 82, 91, 0.30);  color: #D4D4D8; border: 1px solid rgba(161, 161, 170, 0.25); }
.badge-purple { background: rgba(124, 58, 237, 0.20); color: #E9D5FF; border: 1px solid rgba(167, 139, 250, 0.35); }
.badge-green  { background: rgba(30, 120, 80, 0.25);  color: #7ADAB8; border: 1px solid rgba(50, 160, 110, 0.3); }
.badge-orange { background: rgba(160, 100, 30, 0.25); color: #E8C070; border: 1px solid rgba(200, 140, 50, 0.3); }
.badge-pink   { background: rgba(140, 60, 100, 0.25); color: #E8A0C0; border: 1px solid rgba(180, 90, 140, 0.3); }

/* ── Editor Score Badge ──────────────────────────────────── */
.editor-score-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy-800);
  border: 1px solid var(--navy-600);
  border-radius: 14px;
  padding: 0.6rem 1rem;
  min-width: 72px;
}
.editor-score-card .score-num {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #A1A1AA, #E4E4E7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.editor-score-card .score-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--metallic-3);
  margin-top: 2px;
}
.score-bar-wrap { width: 100%; background: var(--navy-700); border-radius: 99px; height: 5px; overflow: hidden; }
.score-bar      { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #52525B, #A1A1AA); }

/* ── Pricing Tag ──────────────────────────────────────────── */
.price-free { color: #5DCFAA; font-weight: 700; }
.price-paid { color: var(--metallic-3); font-weight: 700; }

/* ── Rating Stars ─────────────────────────────────────────── */
.stars { color: #D4B040; letter-spacing: 2px; }

/* ── Pros / Cons lists ────────────────────────────────────── */
.pros-list li::before { content: "✓ "; color: #5DCFAA; font-weight: 700; }
.cons-list li::before { content: "✗ "; color: #E07070; font-weight: 700; }
.pros-list li, .cons-list li { padding: 0.2rem 0; }

.brand-logo-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(226,232,240,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(15,23,42,0.08);
  overflow: hidden;
}

.brand-logo-badge img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

/* Deal logo badge — white background for dark cards */
.deal-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  flex-shrink: 0;
}

.deal-logo-badge img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

.quiz-result-logo {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  border-radius: 1.4rem;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(226,232,240,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 44px rgba(15,23,42,0.10);
  overflow: hidden;
}

.quiz-result-logo img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.quiz-also-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.quiz-also-item-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.quiz-also-item-main .brand-logo-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  flex-shrink: 0;
}

.quiz-also-item-main .brand-logo-badge img {
  width: 1.4rem;
  height: 1.4rem;
}

/* ── Comparison Table ─────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table th {
  background: linear-gradient(135deg, var(--metallic-1), var(--metallic-2));
  color: var(--platinum);
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.comparison-tool-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.comparison-tool-head img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
  flex-shrink: 0;
}

.comparison-table td {
  padding: 0.875rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--navy-border);
  color: #A1A1AA;
  background: var(--navy-800);
}

.comparison-table tr:nth-child(even) td { background: var(--navy-700); }

.comparison-table .check { color: #5DCFAA; font-size: 1.1rem; }
.comparison-table .cross { color: #E07070; font-size: 1.1rem; }

/* ── Newsletter Input ─────────────────────────────────────── */
.newsletter-input {
  background: rgba(15,15,18,0.50);
  border: 1px solid rgba(200, 200, 210, 0.35);
  color: var(--platinum);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
}

.newsletter-input::placeholder { color: rgba(200, 200, 210, 0.80); }
.newsletter-input:focus::placeholder { color: transparent; }
.newsletter-input:focus { border-color: var(--metallic-3); }

/* Input placeholder visibility across all pages */
input::placeholder,
textarea::placeholder {
  color: #909099 !important;
  opacity: 1 !important;
}
.active-filter {
  background: linear-gradient(135deg, var(--metallic-1), var(--metallic-2)) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* ── Comparison Page — Sticky Nav Active Link ─────────────── */
.comp-nav-active {
  background: linear-gradient(135deg, var(--metallic-1) 0%, var(--metallic-3) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-1px);
}

/* ── Custom Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--navy-950); }
::-webkit-scrollbar-thumb { background: var(--navy-500); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--metallic-2); }

/* ── Scroll Animations ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Loading skeleton ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--navy-800) 25%, var(--navy-700) 50%, var(--navy-800) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ── Hero blob decoration ─────────────────────────────────── */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
}

.blob-blue   { background: var(--metallic-2); }
.blob-purple { background: var(--metallic-1); }

/* ── Sticky Nav shadow on scroll ─────────────────────────── */
.nav-scrolled {
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.6), 0 1px 0 var(--navy-border);
}

/* ── Footer text visibility ───────────────────────────────── */
footer {
  background-color: #0A0A0C !important;
}

footer,
footer * {
  -webkit-text-fill-color: unset !important;
}

footer .text-slate-400,
footer .text-slate-500 {
  color: #9CA3AF !important;
}

footer a {
  color: #9CA3AF !important;
}

footer a:hover {
  color: #F3F4F6 !important;
}

footer p,
footer span:not(.gradient-text) {
  color: #9CA3AF !important;
}

footer .font-bold {
  color: #F3F4F6 !important;
}

/* ── Article prose adjustments ───────────────────────────── */
.prose-article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--platinum);
}

.prose-article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: #D4D4D8;
}

.prose-article p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: #71717A;
}

.prose-article ul, .prose-article ol {
  margin: 1rem 0 1.25rem 1.5rem;
  color: #71717A;
}

.prose-article li { margin-bottom: 0.4rem; line-height: 1.7; }

.prose-article ul li { list-style-type: disc; }
.prose-article ol li { list-style-type: decimal; }

.prose-article strong { color: var(--platinum); }

.prose-article a {
  color: var(--metallic-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-article a:hover { color: var(--metallic-5); }

.prose-article blockquote {
  border-left: 4px solid var(--metallic-2);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(82, 82, 91, 0.18);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--silver-text);
}

/* ── Metallic shimmer highlight ────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(90vw, 500px);
  background: #18181B;
  color: #D4D4D8;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
#cookie-banner.is-visible {
  display: flex;
}

/* ── Responsive video embed ───────────────────────────────── */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ── Scroll To Top Button ────────────────────────────────── */
#scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--metallic-1) 0%, var(--metallic-3) 100%);
  border: 1px solid rgba(200, 200, 210, 0.25);
  color: #E4E4E7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
}

#scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-to-top:hover {
  background: linear-gradient(135deg, var(--metallic-2) 0%, var(--metallic-4) 100%);
  box-shadow: 0 6px 20px rgba(0,0,0,0.55);
}

/* ── Print styles ─────────────────────────────────────────── */
@media print {
  nav, footer, #cookie-banner, .newsletter-section { display: none !important; }
  .prose-article { max-width: 100% !important; }
}

/* ═══════════════════════════════════════════════════════════
   Mobile Responsiveness Enhancements
   ══════════════════════════════════════════════════════════ */

/* ── Base mobile fixes ──────────────────────────────────── */
body { overflow-x: hidden; }

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── Smooth horizontal scrolling on touch ───────────────── */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* ── Mobile menu: scrollable if content is tall ─────────── */
#mobile-menu {
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

/* ── Min 44px touch targets for interactive elements ──────── */
.btn-primary,
.btn-outline,
a.btn-primary,
a.btn-outline,
.category-filter-btn,
.answer-btn,
.choice-btn {
  min-height: 44px;
}

/* ── Touch devices: replace hover with active state ───────── */
@media (hover: none) {
  .card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--navy-border) !important;
  }
  .card:active {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    border-color: rgba(161, 161, 170, 0.30) !important;
    transition: transform 0.1s ease, box-shadow 0.1s ease !important;
  }
  .btn-primary:hover,
  .btn-outline:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .btn-primary:active { transform: translateY(-1px) !important; }
}

/* ── Comparison page: horizontal scroll sticky nav ──────── */
@media (max-width: 767px) {
  #comparison-nav .flex {
    flex-wrap: nowrap !important;
    transform: translateX(-2.5rem);
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  #comparison-nav .flex::-webkit-scrollbar { display: none; }
}

/* ── Tools directory filter bar: left-aligned on mobile ──── */
@media (max-width: 767px) {
  section.sticky .flex.overflow-x-auto {
    justify-content: flex-start !important;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ── Comparison score cards: stack vertically on mobile ──── */
@media (max-width: 639px) {
  .card:has(> .editor-score-card) {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100%;
  }
  .card:has(> .editor-score-card) .text-left {
    text-align: center;
    width: 100%;
  }
  .card:has(> .editor-score-card) .space-y-1 > div {
    justify-content: center;
  }
}

/* ── Hero heading: fluid size on very small screens ─────── */
@media (max-width: 479px) {
  h1 {
    font-size: clamp(1.75rem, 9vw, 3rem) !important;
    line-height: 1.2 !important;
  }
  h2 {
    font-size: clamp(1.375rem, 7vw, 2.25rem) !important;
  }
}

/* ── Newsletter gradient section: reduce padding on mobile ── */
@media (max-width: 639px) {
  .gradient-bg.rounded-3xl {
    padding: 2rem 1.25rem !important;
  }
}

/* ── Quiz & Stack Builder cards: tighter padding on mobile ── */
@media (max-width: 479px) {
  .qstep .card,
  .step .card {
    padding: 1.5rem 1rem !important;
  }
  /* Quiz answer buttons: ensure emoji + text don't overflow */
  .answer-btn .w-10 {
    flex-shrink: 0;
    min-width: 2.5rem;
  }
  .quiz-also-item {
    align-items: flex-start;
  }
}

/* ── Cookie banner: stack vertically on small screens ──────── */
@media (max-width: 479px) {
  #cookie-banner {
    flex-direction: column !important;
    text-align: center;
    padding: 1rem;
    bottom: 0.75rem;
  }
  #cookie-banner button {
    width: 100%;
    justify-content: center;
  }
}

/* ── Scroll-to-top button: adjust for small screens ─────── */
@media (max-width: 479px) {
  #scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* ── Comparison table: ensure wrapper scrolls properly ───── */
.overflow-x-auto:has(> .comparison-table) {
  border-radius: 16px;
}

/* ── Tools directory: space top-right badge away from fav star on mobile ── */
@media (max-width: 639px) {
  /* Target the badge inside the card header and add right margin so the absolute fav button doesn't overlap */
  .tool-card > .flex.items-start.justify-between > .badge {
    margin-right: 2.25rem; /* 36px space to accommodate the fav button */
    /* Make the capsule more compact and better aligned on mobile */
    font-size: 0.68rem !important;
    padding: 0.35rem 0.6rem !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: none !important; /* keep casing as authored */
    letter-spacing: 0.02em !important;
    line-height: 1 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  /* Slightly nudge the fav button inward on very small screens for extra separation */
  .tool-card .fav-btn {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    margin-left: 0.25rem;
  }
}

/* Multiline badge styling for "Free + Paid" variants */
.badge-multiline {
  white-space: normal !important;
  text-align: center !important;
  line-height: 1 !important;
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}
.badge-multiline .plus {
  display: block;
  font-size: 0.75em;
  opacity: 0.95;
  margin: 0.08rem 0;
  color: #EAF8F2 !important;
}
@media (max-width: 639px) {
  .badge-multiline {
    font-size: 0.68rem !important;
    padding: 0.28rem 0.6rem !important;
  }
}

/* Pair of badges (e.g., Free + Paid) rendered as two pills */
.badge-pair {
.badge-pair {
  display: inline-flex !important;
  gap: 0.45rem !important;
  align-items: center !important;
  /* Default to vertical stack so Free appears above Paid like the mobile design */
  flex-direction: column !important;
  align-items: flex-end !important;
}
.badge-pair .badge {
  margin: 0 !important;
}

/* Paid badge variant (gold) — now gold across all viewports */
.badge-paid {
  background: linear-gradient(135deg, #ECB556 0%, #E8C46A 100%) !important;
  color: #000 !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}

@media (max-width: 639px) {
  /* ensure badge-pair doesn't overflow header */
  .tool-card > .flex.items-start.justify-between > .badge-pair {
    margin-right: 2.25rem; /* keep space for fav button */
  }
}

/* Mobile: stack Free / Paid vertically and place between name and fav star */
@media (max-width: 639px) {
  .tool-card > .flex.items-start.justify-between {
    align-items: center !important;
  }
  .tool-card > .flex.items-start.justify-between > .badge-pair {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.22rem !important;
    align-items: center !important; /* center pills horizontally */
    margin-left: auto !important; /* position between name and fav */
    margin-right: 1rem !important; /* keep space for fav button */
    transform: none !important;
  }
  .tool-card > .flex.items-start.justify-between > .badge-pair .badge {
    font-size: 0.68rem !important;
    padding: 0.28rem 0.6rem !important;
    white-space: nowrap !important;
  }

  /* Change paid pill to gold/yellow with black text on mobile and desktop where used */
  .badge-paid {
    background: linear-gradient(135deg, #ECB556 0%, #E8C46A 100%) !important;
    color: #000 !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
  }

  /* Slightly nudge the fav button inward on very small screens for extra separation */
  .tool-card .fav-btn {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: 0.35rem;
  }
}

/* Fav wrapper when injected inline into header */
.tool-card .fav-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Ensure badges and fav button share even spacing in header on larger screens */
.tool-card > .flex.items-start.justify-between {
  gap: 0.75rem;
  align-items: flex-start;
}

/* When fav is inline, reduce the prior extra right-margin on badges so spacing is even */
.tool-card > .flex.items-start.justify-between > .badge,
.tool-card > .flex.items-start.justify-between > .badge-pair {
  margin-right: 0.5rem !important;
}

/* ── Footer columns: single column on very small screens ───── */
@media (max-width: 479px) {
  footer .grid {
    row-gap: 1.5rem;
  }
}

/* ── Blog / article images: full width on mobile ─────────── */
@media (max-width: 639px) {
  .prose-article img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
  }
  .prose-article .overflow-x-auto {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ── Navbar logo text: hide on very small screens if needed ── */
@media (max-width: 359px) {
  #navbar .font-extrabold.text-xl {
    font-size: 1rem;
  }
}

/* ── Hero stats grid: 2 cols on mobile (already set, ensure) ─ */
@media (max-width: 479px) {
  .grid.grid-cols-2.sm\:grid-cols-4 {
    column-gap: 1rem;
  }
}

/* ── Sticky filter bars: prevent content clipping ─────────── */
@media (max-width: 767px) {
  section.sticky.top-16 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

/* ── News card styles & carousel transition ─────────────────── */
.news-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
  /* Match blog card visual height (image + content) */
  min-height: 20rem;
  overflow: hidden;
}
.news-card .news-item {
  transition: opacity 0.6s cubic-bezier(.2,.9,.2,1), transform 0.6s cubic-bezier(.2,.9,.2,1);
  opacity: 0;
  transform: translateY(6px);
}
.news-card .news-item.show {
  opacity: 1;
  transform: translateY(0);
}
.news-card .news-source {
  font-size: 0.75rem;
  color: #A8A8B0;
}
.news-card .news-title {
  font-weight: 700;
  color: var(--platinum);
}

/* News card thumbnail + ribbon to match blog-card visuals */
.news-card .card-image {
  height: 12rem; /* matches .h-48 used in blog cards */
  background-size: cover;
  background-position: center;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* layered background elements for smooth crossfade */
.news-card .card-image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.6s cubic-bezier(.2,.9,.2,1);
  opacity: 0;
}
.news-card .card-image-bg.show {
  opacity: 1;
}
.news-card .news-body {
  padding: 1rem 1.25rem 1.25rem;
}
.news-card .ribbon {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: linear-gradient(90deg, #ECB556, #D4A64A);
  color: #111827;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.news-card { position: relative; }

/* Make news cards visually distinct from blog cards */
.news-card {
  background: linear-gradient(180deg, rgba(20,20,22,0.95), rgba(30,30,34,0.95));
  border: 1px solid rgba(220,180,80,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.02);
}
.news-card .ribbon {
  background: linear-gradient(90deg, #F6C85F, #D4A64A);
  color: #0b0b0b;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.news-card .card-image {
  filter: saturate(0.85) contrast(0.95) brightness(0.95);
  opacity: 0.98;
}
.news-card .news-title { color: #F3F4F6; }
.news-card .news-source { color: #E4E4E7; }
.news-card .news-summary {
  margin-top: 0.5rem;
  color: #C8C8CE;
  font-size: 0.95rem;
}

/* Make news card content padding match blog cards */
.news-card > .news-item,
.news-card > .news-item + .news-source {
  padding: 1rem 1.25rem;
}
.news-card .news-title {
  display: block;
  margin-top: 0.25rem;
}

@media (max-width: 767px) {
  .news-card { min-height: 14rem; }
}

.blog-site-footer .blog-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-site-footer .blog-footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
}

.blog-site-footer .blog-footer-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.blog-site-footer .blog-footer-logo {
  width: 160px !important;
  height: 70px !important;
  max-width: 160px !important;
  display: block;
}

.blog-site-footer .footer-legal-slot {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.blog-site-footer .legal-disclaimer {
  margin: 0;
  color: #a8a8b0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.blog-site-footer .legal-disclaimer a {
  color: #d1d5db;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 768px) {
  .blog-site-footer .blog-footer-main {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

