/* ═══════════════════════════════════════════════════
   GetInfoToYou Tech — Design System v2.0
   UI UX Pro Max: Editorial Grid / Magazine + Vibrant
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=Noto+Sans+Devanagari:wght@400;500;600&family=Noto+Sans+Tamil:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Custom Properties ───────────────────────── */
:root {
  --clr-primary:      #1E293B;
  --clr-secondary:    #6366F1;
  --clr-accent:       #F97316;
  --clr-danger:       #EF4444;
  --clr-success:      #10B981;
  --clr-warning:      #F59E0B;
  --clr-news:         #3B82F6;
  --clr-bg:           #F8FAFC;
  --clr-surface:      #FFFFFF;
  --clr-border:       #E2E8F0;
  --clr-text:         #111827;
  --clr-text-muted:   #6B7280;
  --clr-text-subtle:  #9CA3AF;

  --clr-cat-explainers: #6366F1;
  --clr-cat-scams:      #EF4444;
  --clr-cat-tools:      #10B981;
  --clr-cat-guides:     #F59E0B;
  --clr-cat-news:       #3B82F6;

  --font-heading:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:       'Inter', system-ui, sans-serif;
  --font-mono:       'JetBrains Mono', monospace;
  --font-devanagari: 'Noto Sans Devanagari', sans-serif;

  --sp-xs: 4px;  --sp-sm: 8px;   --sp-md: 16px;
  --sp-lg: 24px; --sp-xl: 32px;  --sp-2xl: 48px; --sp-3xl: 64px;

  --shadow-card:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-modal: 0 20px 60px rgba(0,0,0,.15);

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px;
  --ease-fast: 150ms ease; --ease-base: 200ms ease; --ease-slow: 300ms ease;
  --max-width: 1200px; --content-width: 760px;
}

/* ── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--clr-bg); color: var(--clr-text); line-height: 1.65; font-size: 16px; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, [role="button"] { cursor: pointer; }
:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: 2px; }
ul, ol { padding-left: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Typography ──────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; color: var(--clr-primary); }
h1 { font-size: clamp(28px, 5vw, 40px); }
h2 { font-size: clamp(22px, 3.5vw, 32px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }
h4 { font-size: 20px; }
h5 { font-size: 16px; font-weight: 600; }
p  { margin-bottom: var(--sp-md); }

[lang="hi"], [lang="mr"] { font-family: var(--font-devanagari); }
[lang="ta"] { font-family: 'Noto Sans Tamil', sans-serif; }

code, pre { font-family: var(--font-mono); font-size: .9em; background: #F1F5F9; border-radius: var(--radius-sm); }
code { padding: 2px 6px; }
pre  { padding: var(--sp-lg); overflow-x: auto; margin-bottom: var(--sp-lg); }

/* ── Skip link (accessibility) ───────────────────── */
.skip-link {
  position: absolute; top: -48px; left: var(--sp-md);
  background: var(--clr-secondary); color: #fff;
  padding: var(--sp-sm) var(--sp-md); border-radius: var(--radius-md);
  font-weight: 600; z-index: 999; transition: top var(--ease-fast);
}
.skip-link:focus { top: var(--sp-md); }

/* ── Layout ──────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--sp-lg); }
.content-width { max-width: var(--content-width); margin: 0 auto; }

/* ── Header ──────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,250,252,.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: var(--sp-lg); }
.site-logo { display: flex; align-items: center; gap: var(--sp-sm); font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: var(--clr-primary); text-decoration: none; }
.site-logo:hover { text-decoration: none; }
.site-logo img { width: 32px; height: 32px; }

/* ── Navigation ──────────────────────────────────── */
.site-nav { display: flex; align-items: center; gap: var(--sp-sm); }
.site-nav a { font-size: 14px; font-weight: 500; color: var(--clr-text-muted); transition: color var(--ease-fast); padding: var(--sp-xs) var(--sp-sm); border-radius: var(--radius-sm); }
.site-nav a:hover, .site-nav a.active { color: var(--clr-primary); text-decoration: none; background: var(--clr-border); }
.site-nav .nav-scam { color: var(--clr-danger); font-weight: 600; }
.site-nav .nav-scam:hover { background: #FEF2F2; }
.nav-toggle { display: none; background: none; border: none; padding: var(--sp-sm); color: var(--clr-primary); border-radius: var(--radius-sm); }
.nav-toggle:hover { background: var(--clr-bg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--clr-surface); flex-direction: column;
    padding: var(--sp-md); border-bottom: 1px solid var(--clr-border); gap: var(--sp-xs);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: var(--sp-md); border-radius: var(--radius-md); }
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #2D3A4F 50%, #334155 100%);
  color: #fff; padding: var(--sp-3xl) 0; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: var(--sp-md); }
.hero p   { color: rgba(255,255,255,.85); font-size: 18px; max-width: 600px; margin: 0 auto var(--sp-xl); }

/* ── Category Pills ──────────────────────────────── */
.category-pills { display: flex; flex-wrap: wrap; gap: var(--sp-sm); justify-content: center; margin-bottom: var(--sp-xl); }
.category-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: var(--sp-sm) var(--sp-md); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: var(--pill-color, var(--clr-secondary));
  transition: transform var(--ease-fast), opacity var(--ease-fast); text-decoration: none;
}
.category-pill:hover { transform: translateY(-1px); opacity: .9; text-decoration: none; }

/* ── Section Headers ─────────────────────────────── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-lg); }
.section-title { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--clr-primary); }
.section-link { font-size: 14px; font-weight: 600; color: var(--clr-secondary); }

/* ── Post Grid ───────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-lg); }
.posts-grid--wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

/* ── Post Card ───────────────────────────────────── */
.post-card {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--ease-base), box-shadow var(--ease-base);
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.post-card__image { aspect-ratio: 16/9; overflow: hidden; background: var(--clr-bg); }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ease-slow); }
.post-card:hover .post-card__image img { transform: scale(1.03); }
.post-card__body { padding: var(--sp-lg); flex: 1; display: flex; flex-direction: column; }
.post-card__cat {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; background: var(--cat-color, var(--clr-secondary));
  padding: 3px 10px; border-radius: 999px; margin-bottom: var(--sp-sm); width: fit-content;
}
.post-card__title {
  font-family: var(--font-heading); font-size: 17px; font-weight: 700; line-height: 1.4;
  color: var(--clr-primary); margin-bottom: var(--sp-sm);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--clr-secondary); }
.post-card__excerpt {
  color: var(--clr-text-muted); font-size: 14px; line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin-bottom: var(--sp-md);
}
.post-card__meta {
  display: flex; align-items: center; gap: var(--sp-sm); font-size: 12px;
  color: var(--clr-text-subtle); padding-top: var(--sp-sm); border-top: 1px solid var(--clr-border);
  flex-wrap: wrap;
}
.post-card__avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* ── Featured Post (larger card) ────────────────── */
.post-card--featured { grid-column: span 2; flex-direction: row; }
.post-card--featured .post-card__image { flex: 0 0 45%; aspect-ratio: unset; }
.post-card--featured .post-card__title { font-size: 22px; -webkit-line-clamp: 3; }
@media (max-width: 768px) {
  .post-card--featured { grid-column: span 1; flex-direction: column; }
  .post-card--featured .post-card__image { flex: unset; aspect-ratio: 16/9; }
}

/* ── Scam Badge ──────────────────────────────────── */
.scam-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: var(--sp-xs) var(--sp-sm);
  border-radius: var(--radius-sm); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: #fff;
}
.scam-badge--critical { background: var(--clr-danger); animation: scamPulse 2s infinite; }
.scam-badge--high     { background: #DC2626; }
.scam-badge--medium   { background: var(--clr-warning); color: var(--clr-primary); }
.scam-badge--low      { background: #6B7280; }
@keyframes scamPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
  50%       { box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-sm);
  padding: 12px var(--sp-xl); border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--ease-base); text-decoration: none; min-height: 44px;
}
.btn-primary   { background: var(--clr-accent); color: #fff; border-color: var(--clr-accent); }
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--clr-primary); border-color: var(--clr-border); }
.btn-secondary:hover { border-color: var(--clr-primary); background: var(--clr-bg); text-decoration: none; }
.btn-danger    { background: var(--clr-danger); color: #fff; border-color: var(--clr-danger); }
.btn-danger:hover { filter: brightness(1.08); text-decoration: none; }
.btn-whatsapp  { background: #25D366; color: #fff; border-color: #25D366; }
.btn-telegram  { background: #2AABEE; color: #fff; border-color: #2AABEE; }
.btn-whatsapp:hover, .btn-telegram:hover { filter: brightness(1.08); text-decoration: none; }
.btn-sm { padding: 8px var(--sp-md); font-size: 13px; min-height: 36px; }
.btn-lg { padding: 14px 40px; font-size: 17px; }

/* ── FAQ Accordion ───────────────────────────────── */
.faq-block { border: 1px solid var(--clr-border); border-radius: var(--radius-lg); overflow: hidden; margin: var(--sp-xl) 0; }
.faq-item  { border-bottom: 1px solid var(--clr-border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; padding: var(--sp-lg);
  font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--clr-primary);
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-md);
  transition: background var(--ease-fast);
}
.faq-question:hover { background: var(--clr-bg); }
.faq-question[aria-expanded="true"] { color: var(--clr-secondary); }
.faq-chevron { flex-shrink: 0; transition: transform var(--ease-base); }
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 var(--sp-lg) var(--sp-lg); color: var(--clr-text-muted); line-height: 1.7; }
.faq-answer.open { display: block; }

/* ── Key Takeaways ───────────────────────────────── */
.key-takeaways {
  background: linear-gradient(135deg, #EEF2FF, #F0F9FF);
  border-left: 4px solid var(--clr-secondary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--sp-lg); margin: var(--sp-xl) 0;
}
.key-takeaways h3 { font-size: 16px; color: var(--clr-secondary); margin-bottom: var(--sp-md); }
.key-takeaways ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-sm); }
.key-takeaways li { padding-left: var(--sp-lg); position: relative; font-size: 15px; color: var(--clr-text); }
.key-takeaways li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--clr-secondary);
}

/* ── Quote Snippet (GEO) ─────────────────────────── */
.quote-snippet {
  background: #F8FAFC; border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--sp-lg); margin: var(--sp-xl) 0;
  font-size: 16px; line-height: 1.7; color: var(--clr-primary); font-style: italic;
}

/* ── Breadcrumb ──────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: var(--sp-xs); font-size: 13px; color: var(--clr-text-muted); padding: var(--sp-md) 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--clr-text-muted); }
.breadcrumb a:hover { color: var(--clr-secondary); }
.breadcrumb__sep { color: var(--clr-border); }

/* ── Author Box ──────────────────────────────────── */
.author-box { display: flex; gap: var(--sp-lg); background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-xl); padding: var(--sp-xl); margin: var(--sp-2xl) 0; }
.author-box__avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box__name  { font-family: var(--font-heading); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.author-box__creds { font-size: 13px; color: var(--clr-text-muted); margin-bottom: var(--sp-sm); }
.author-box__bio   { font-size: 14px; color: var(--clr-text-muted); }
@media (max-width: 480px) { .author-box { flex-direction: column; } }

/* ── Sources ─────────────────────────────────────── */
.sources-list { background: var(--clr-bg); border: 1px solid var(--clr-border); border-radius: var(--radius-md); padding: var(--sp-lg); margin: var(--sp-xl) 0; }
.sources-list h4 { font-size: 14px; font-weight: 600; color: var(--clr-text-muted); margin-bottom: var(--sp-sm); letter-spacing: .05em; }
.sources-list ol  { font-size: 13px; color: var(--clr-text-muted); }

/* ── Post Content Body ───────────────────────────── */
.post-content h2 { margin-top: var(--sp-2xl); margin-bottom: var(--sp-md); }
.post-content h3 { margin-top: var(--sp-xl); margin-bottom: var(--sp-sm); }
.post-content ul, .post-content ol { margin-bottom: var(--sp-md); }
.post-content li { margin-bottom: var(--sp-xs); }
.post-content blockquote { border-left: 4px solid var(--clr-secondary); padding-left: var(--sp-lg); color: var(--clr-text-muted); margin: var(--sp-xl) 0; font-style: italic; }
.post-content img { border-radius: var(--radius-md); margin: var(--sp-xl) 0; }
.post-content a { color: var(--clr-secondary); }
.post-content table { width: 100%; border-collapse: collapse; margin: var(--sp-xl) 0; font-size: 14px; }
.post-content th, .post-content td { padding: var(--sp-sm) var(--sp-md); border: 1px solid var(--clr-border); text-align: left; }
.post-content th { background: var(--clr-bg); font-weight: 600; }

/* ── Ad Slot ─────────────────────────────────────── */
.ad-slot { background: var(--clr-bg); border: 1px dashed var(--clr-border); border-radius: var(--radius-md); text-align: center; padding: var(--sp-sm); margin: var(--sp-xl) 0; font-size: 11px; color: var(--clr-text-subtle); }
.ad-slot::before { content: 'Advertisement'; display: block; margin-bottom: var(--sp-sm); }

/* ── Newsletter Section ──────────────────────────── */
.newsletter-section { background: var(--clr-primary); color: #fff; padding: var(--sp-3xl) 0; text-align: center; }
.newsletter-section h2 { color: #fff; margin-bottom: var(--sp-sm); }
.newsletter-section p  { color: rgba(255,255,255,.75); margin-bottom: var(--sp-xl); }
.newsletter-form { display: flex; gap: var(--sp-sm); max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-input {
  flex: 1; min-width: 200px; padding: 12px var(--sp-md);
  border: 2px solid rgba(255,255,255,.2); border-radius: var(--radius-md);
  background: rgba(255,255,255,.1); color: #fff; font-size: 15px;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-input:focus { outline: none; border-color: var(--clr-accent); }

/* Newsletter form on light backgrounds (newsletter-archive page, etc.) */
.container .newsletter-input {
  background: #F1F5F9;
  color: #1E293B;
  border-color: #CBD5E1;
}
.container .newsletter-input::placeholder { color: #9CA3AF; }

/* ── Community CTA ───────────────────────────────── */
.community-cta {
  background: linear-gradient(135deg, #ECFDF5, #F0FFF4);
  border: 1px solid #A7F3D0; border-radius: var(--radius-xl);
  padding: var(--sp-xl); text-align: center; margin: var(--sp-2xl) 0;
}
.community-buttons { display: flex; gap: var(--sp-md); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-lg); }

/* ── Pagination ──────────────────────────────────── */
.pagination { display: flex; gap: var(--sp-xs); justify-content: center; align-items: center; margin: var(--sp-2xl) 0; flex-wrap: wrap; }
.pagination ul { display: flex; list-style: none; gap: var(--sp-xs); padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; align-items: center; }
.pagination li { display: inline; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 var(--sp-sm);
  border: 1px solid var(--clr-border); border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; color: var(--clr-text-muted);
  transition: all var(--ease-fast); text-decoration: none;
}
.pagination a:hover { border-color: var(--clr-secondary); color: var(--clr-secondary); }
.pagination .active { background: var(--clr-secondary); border-color: var(--clr-secondary); color: #fff; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ── Cookie Banner ───────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--clr-primary); color: #fff; padding: var(--sp-md) var(--sp-lg);
  z-index: 9999; display: none; align-items: center; justify-content: space-between;
  gap: var(--sp-lg); flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p  { font-size: 13px; color: rgba(255,255,255,.85); margin: 0; }
.cookie-banner a  { color: var(--clr-accent); }
.cookie-buttons   { display: flex; gap: var(--sp-sm); flex-shrink: 0; }

/* ── PWA Banner ──────────────────────────────────── */
.pwa-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--clr-surface); border-top: 1px solid var(--clr-border);
  padding: var(--sp-md) var(--sp-lg); z-index: 9998;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-md); flex-wrap: wrap; box-shadow: 0 -4px 12px rgba(0,0,0,.08);
}
.pwa-banner p { font-size: 14px; color: var(--clr-text); margin: 0; }

/* ── Footer ──────────────────────────────────────── */
.site-footer { background: var(--clr-primary); color: rgba(255,255,255,.7); padding: var(--sp-3xl) 0 var(--sp-xl); margin-top: var(--sp-3xl); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-2xl); margin-bottom: var(--sp-2xl); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 18px; }
.footer-col h4 { color: rgba(255,255,255,.9); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-md); }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer-col li a { font-size: 14px; color: rgba(255,255,255,.6); transition: color var(--ease-fast); text-decoration: none; }
.footer-col li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--sp-lg); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-md); font-size: 13px; }
.footer-legal { display: flex; gap: var(--sp-md); flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,.5); }
.footer-legal a:hover { color: rgba(255,255,255,.9); }

/* ── Alerts / Flash messages ─────────────────────── */
.alert { padding: var(--sp-md) var(--sp-lg); border-radius: var(--radius-md); margin-bottom: var(--sp-md); font-size: 14px; }
.alert-success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.alert-error   { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert-warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.alert-info    { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }

/* ── Utility classes ─────────────────────────────── */
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mt-sm  { margin-top: var(--sp-sm);  } .mt-md  { margin-top: var(--sp-md);  }
.mt-lg  { margin-top: var(--sp-lg);  } .mt-xl  { margin-top: var(--sp-xl);  }
.mt-2xl { margin-top: var(--sp-2xl); } .mb-xl  { margin-bottom: var(--sp-xl); }
.mb-2xl { margin-bottom: var(--sp-2xl); } .py-xl { padding-top: var(--sp-xl); padding-bottom: var(--sp-xl); }
.py-2xl { padding-top: var(--sp-2xl); padding-bottom: var(--sp-2xl); }

/* ── Language switcher ───────────────────────────── */
.lang-switcher { position: relative; }
.lang-toggle { background: none; border: 1px solid var(--clr-border); padding: var(--sp-xs) var(--sp-sm); border-radius: var(--radius-sm); font-size: 13px; color: var(--clr-text-muted); display: flex; align-items: center; gap: 4px; }
.lang-toggle:hover { background: var(--clr-bg); }
.lang-dropdown { position: absolute; right: 0; top: calc(100% + 4px); background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-md); padding: var(--sp-sm); min-width: 140px; box-shadow: var(--shadow-hover); z-index: 50; display: none; }
.lang-option { display: block; width: 100%; padding: var(--sp-sm) var(--sp-md); background: none; border: none; text-align: left; font-size: 13px; color: var(--clr-text); border-radius: var(--radius-sm); }
.lang-option:hover { background: var(--clr-bg); }

/* ── Tag cloud ───────────────────────────────────── */
.tag-list { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin: var(--sp-md) 0; }
.tag-link { display: inline-block; padding: 4px 12px; background: var(--clr-bg); border: 1px solid var(--clr-border); border-radius: 999px; font-size: 12px; color: var(--clr-text-muted); transition: all var(--ease-fast); text-decoration: none; }
.tag-link:hover { background: var(--clr-secondary); border-color: var(--clr-secondary); color: #fff; text-decoration: none; }

/* ── AI Tools Directory ──────────────────────────── */
.tool-card { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); padding: var(--sp-lg); transition: transform var(--ease-base), box-shadow var(--ease-base); }
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.tool-card__header { display: flex; align-items: center; gap: var(--sp-md); margin-bottom: var(--sp-md); }
.tool-card__logo { width: 48px; height: 48px; border-radius: var(--radius-md); object-fit: contain; background: var(--clr-bg); padding: 6px; }
.tool-card__name { font-family: var(--font-heading); font-weight: 700; font-size: 18px; }
.tool-card__tagline { font-size: 13px; color: var(--clr-text-muted); }
.pricing-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.pricing-badge--free     { background: #ECFDF5; color: #065F46; }
.pricing-badge--freemium { background: #EEF2FF; color: #3730A3; }
.pricing-badge--paid     { background: #FEF3C7; color: #92400E; }

/* ── Sidebar ─────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: var(--sp-lg); }
.sidebar-widget { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); padding: var(--sp-lg); }
.sidebar-widget__title { font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin-bottom: var(--sp-md); padding-bottom: var(--sp-sm); border-bottom: 2px solid var(--clr-secondary); }

/* ── Search ──────────────────────────────────────── */
.search-bar { position: relative; }
.search-input { width: 100%; padding: 14px 48px 14px var(--sp-lg); border: 2px solid var(--clr-border); border-radius: var(--radius-lg); font-size: 16px; background: var(--clr-surface); color: var(--clr-text); transition: border-color var(--ease-fast); }
.search-input:focus { outline: none; border-color: var(--clr-secondary); }
.search-btn { position: absolute; right: var(--sp-md); top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--clr-text-muted); padding: var(--sp-xs); }

/* ── Content layout (article + sidebar) ─────────── */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-2xl); align-items: start; }
@media (max-width: 1024px) { .content-layout { grid-template-columns: 1fr; } .sidebar { display: none; } }

/* ── Stat boxes ──────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-md); }
.stat-box { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); padding: var(--sp-lg); text-align: center; }
.stat-box__value { font-family: var(--font-heading); font-size: 32px; font-weight: 800; color: var(--clr-secondary); }
.stat-box__label { font-size: 13px; color: var(--clr-text-muted); margin-top: 4px; }