/*
Theme Name:  Listicle Directory
Theme URI:   https://yoursite.com
Description: Systemic SEO Ontology-Based Listicle Directory — Mobile-first, Glassmorphism UI, Semantic Graph Architecture.
Author:      Your Name
Version:     1.0.0
Text Domain: listicle-directory
*/

/* ═══════════════════════════════════════════════════════════════════
   DESIGN TOKENS — single source of truth
   ═══════════════════════════════════════════════════════════════════ */
:root {
  /* Palette — Deep Midnight + Persian Gold accent */
  --c-bg:            #0d0d1a;
  --c-bg-2:          #13132b;
  --c-surface:       rgba(255,255,255,0.05);
  --c-surface-hover: rgba(255,255,255,0.09);
  --c-border:        rgba(255,255,255,0.10);
  --c-border-gold:   rgba(212,175,55,0.60);

  --c-gold:          #d4af37;
  --c-gold-light:    #f0d060;
  --c-purple:        #7c5cfc;
  --c-purple-light:  #a78bfa;
  --c-teal:          #2dd4bf;

  --c-text:          #e8e8f0;
  --c-text-muted:    #9090b0;
  --c-text-dark:     #0d0d1a;

  /* Typography */
  --ff-display:  'Vazirmatn', 'Segoe UI', system-ui, sans-serif;
  --ff-body:     'Vazirmatn', 'Segoe UI', system-ui, sans-serif;

  --fs-xs:   .75rem;
  --fs-sm:   .875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-bold:   700;
  --fw-black:  900;

  /* Spacing scale */
  --sp-1:  .25rem;
  --sp-2:  .5rem;
  --sp-3:  .75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  /* Layout */
  --max-w-content: 780px;
  --max-w-wide:    1200px;
  --sidebar-w:     280px;
  --gap-layout:    var(--sp-8);

  /* Effects */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --shadow-card: 0 8px 32px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.06) inset;
  --shadow-gold: 0 0 0 2px var(--c-gold), 0 8px 32px rgba(212,175,55,.25);
  --blur-glass:  blur(16px) saturate(1.5);
  --transition:  .2s cubic-bezier(.4,0,.2,1);
}

/* ═══════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  direction: rtl;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(124,92,252,.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(45,212,191,.10) 0%, transparent 60%);
}

a { color: var(--c-purple-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-gold-light); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT WRAPPER
   ═══════════════════════════════════════════════════════════════════ */
.site-wrapper {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap-layout);
  align-items: start;
  padding: var(--sp-8) 0 var(--sp-16);
}

@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar-col { display: none; } /* Hidden on mobile — TOC shown as drawer */
}

/* ═══════════════════════════════════════════════════════════════════
   SITE HEADER
   ═══════════════════════════════════════════════════════════════════ */
.site-header {
  background: rgba(13,13,26,.85);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--sp-4) 0;
}

.site-header__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.site-logo {
  font-family: var(--ff-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-xl);
  color: var(--c-gold);
  letter-spacing: -.02em;
}

.site-logo span { color: var(--c-purple-light); }

.site-nav { display: flex; gap: var(--sp-6); }
.site-nav a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text-muted);
  transition: color var(--transition);
}
.site-nav a:hover { color: var(--c-gold); }

/* ═══════════════════════════════════════════════════════════════════
   POST HEADER (single)
   ═══════════════════════════════════════════════════════════════════ */
.post-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-bottom: var(--sp-10);
}

.post-hero__image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  filter: brightness(.55);
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,26,1) 0%, rgba(13,13,26,.3) 60%, transparent 100%);
}

.post-hero__content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: var(--sp-8) var(--sp-8) var(--sp-6);
}

.post-hero__eyebrow {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}

.tax-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.tax-badge--location {
  background: rgba(45,212,191,.15);
  color: var(--c-teal);
  border: 1px solid rgba(45,212,191,.3);
}

.tax-badge--service {
  background: rgba(124,92,252,.15);
  color: var(--c-purple-light);
  border: 1px solid rgba(124,92,252,.3);
}

.post-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: var(--fw-black);
  line-height: 1.2;
  color: #fff;
}

.post-hero__meta {
  margin-top: var(--sp-3);
  display: flex;
  gap: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   SUMMARY TABLE (Auto-generated)
   ═══════════════════════════════════════════════════════════════════ */
.summary-table-wrapper {
  background: var(--c-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--sp-8) 0;
  box-shadow: var(--shadow-card);
}

.summary-table-wrapper__header {
  padding: var(--sp-4) var(--sp-6);
  background: rgba(124,92,252,.12);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.summary-table-wrapper__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--c-purple-light);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.summary-table thead th {
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255,255,255,.04);
  color: var(--c-text-muted);
  font-weight: var(--fw-bold);
  text-align: right;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.summary-table tbody tr {
  border-top: 1px solid var(--c-border);
  transition: background var(--transition);
}

.summary-table tbody tr:hover { background: var(--c-surface-hover); }

.summary-table td {
  padding: var(--sp-3) var(--sp-4);
  vertical-align: middle;
  color: var(--c-text);
}

.summary-table td:first-child {
  color: var(--c-text-muted);
  font-weight: var(--fw-bold);
  width: 2.5rem;
  text-align: center;
}

.summary-table__link {
  color: var(--c-purple-light);
  font-weight: var(--fw-medium);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.summary-table__link:hover { color: var(--c-gold-light); }

.featured-star {
  color: var(--c-gold);
  font-size: var(--fs-sm);
}

/* Mobile scroll for table */
@media (max-width: 600px) {
  .summary-table-wrapper { overflow-x: auto; }
  .summary-table { min-width: 520px; }
}

/* ═══════════════════════════════════════════════════════════════════
   BUSINESS CARD (Glassmorphism)
   ═══════════════════════════════════════════════════════════════════ */
.business-list { display: flex; flex-direction: column; gap: var(--sp-8); }

.business-card {
  background: var(--c-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  scroll-margin-top: 80px; /* sticky header offset */
}

.business-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.08) inset;
}

/* Featured card gets gold crown */
.business-card--featured {
  border-color: var(--c-border-gold);
  box-shadow: var(--shadow-gold);
}

.business-card--featured::before {
  content: '✦ ویژه';
  display: block;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light));
  color: var(--c-text-dark);
  font-size: var(--fs-xs);
  font-weight: var(--fw-black);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-4);
  text-align: center;
}

/* Card Image */
.business-card__image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.business-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.business-card:hover .business-card__image { transform: scale(1.04); }

.business-card__rank {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 40px;
  height: 40px;
  background: rgba(13,13,26,.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: var(--fw-black);
  font-size: var(--fs-sm);
  color: var(--c-gold);
}

/* Card Body */
.business-card__body { padding: var(--sp-6); }

.business-card__title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}

.business-card__title a { color: inherit; }
.business-card__title a:hover { color: var(--c-gold-light); }

.business-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.business-card__meta-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.business-card__meta-icon {
  flex-shrink: 0;
  width: 18px;
  color: var(--c-purple-light);
  margin-top: 2px;
}

.business-card__review {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-4);
  margin-top: var(--sp-4);
}

.business-card__review p { margin-bottom: var(--sp-3); }
.business-card__review p:last-child { margin-bottom: 0; }

/* Card Actions */
.business-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: 0 var(--sp-6) var(--sp-6);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--call {
  background: rgba(45,212,191,.15);
  border-color: rgba(45,212,191,.3);
  color: var(--c-teal);
}
.btn--call:hover {
  background: rgba(45,212,191,.25);
  color: var(--c-teal);
}

.btn--instagram {
  background: rgba(225,48,108,.12);
  border-color: rgba(225,48,108,.3);
  color: #f06292;
}
.btn--instagram:hover { background: rgba(225,48,108,.22); color: #f06292; }

.btn--telegram {
  background: rgba(41,182,246,.12);
  border-color: rgba(41,182,246,.3);
  color: #4fc3f7;
}
.btn--telegram:hover { background: rgba(41,182,246,.22); color: #4fc3f7; }

.btn--website {
  background: rgba(124,92,252,.12);
  border-color: rgba(124,92,252,.3);
  color: var(--c-purple-light);
}
.btn--website:hover { background: rgba(124,92,252,.22); color: var(--c-purple-light); }

.btn--map {
  background: rgba(212,175,55,.10);
  border-color: rgba(212,175,55,.3);
  color: var(--c-gold);
}
.btn--map:hover { background: rgba(212,175,55,.20); color: var(--c-gold); }

/* ═══════════════════════════════════════════════════════════════════
   AD INJECTION BLOCK
   ═══════════════════════════════════════════════════════════════════ */
.ad-injection-block {
  background: linear-gradient(135deg, rgba(124,92,252,.08) 0%, rgba(212,175,55,.06) 100%);
  border: 1px dashed rgba(212,175,55,.25);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  margin: var(--sp-4) 0;
}

.ad-injection-block__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--sp-2);
  color: rgba(212,175,55,.5);
}

/* ═══════════════════════════════════════════════════════════════════
   STICKY SIDEBAR TOC
   ═══════════════════════════════════════════════════════════════════ */
.sidebar-col { position: relative; }

.toc-widget {
  position: sticky;
  top: 80px; /* below sticky header */
  background: var(--c-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}

.toc-widget::-webkit-scrollbar { width: 4px; }
.toc-widget::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }

.toc-widget__header {
  padding: var(--sp-4) var(--sp-5);
  background: rgba(124,92,252,.1);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--c-purple-light);
  position: sticky;
  top: 0;
}

.toc-widget__list { padding: var(--sp-3) 0; }

.toc-widget__item {
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.toc-widget__link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  transition: all var(--transition);
  border-right: 2px solid transparent;
}

.toc-widget__link:hover,
.toc-widget__link.is-active {
  color: var(--c-gold);
  background: rgba(212,175,55,.06);
  border-right-color: var(--c-gold);
}

.toc-widget__num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  display: grid;
  place-items: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--c-text-muted);
}

.toc-widget__link.is-active .toc-widget__num {
  background: var(--c-gold);
  color: var(--c-text-dark);
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE STICKY ACTION BAR
   ═══════════════════════════════════════════════════════════════════ */
.mobile-action-bar {
  display: none; /* JS shows this on mobile */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(13,13,26,.92);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-top: 1px solid var(--c-border);
  padding: var(--sp-3) var(--sp-4) max(var(--sp-3), env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.mobile-action-bar.is-visible { transform: translateY(0); }

.mobile-action-bar__name {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-action-bar__btns {
  display: flex;
  gap: var(--sp-2);
}

.mobile-action-bar__btns .btn {
  flex: 1;
  justify-content: center;
  padding: var(--sp-3) var(--sp-2);
}

@media (max-width: 768px) {
  .mobile-action-bar { display: block; }
  /* Prevent content hiding behind bar when visible */
  body.bar-active { padding-bottom: 90px; }
}

/* ═══════════════════════════════════════════════════════════════════
   ONTOLOGY WIDGETS (Internal Linking)
   ═══════════════════════════════════════════════════════════════════ */
.ontology-widget {
  margin: var(--sp-10) 0;
  padding: var(--sp-6) var(--sp-7);
  background: var(--c-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.ontology-widget__heading {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--c-purple-light);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.ontology-widget__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-2);
}

.ontology-widget__link {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.ontology-widget__link:hover {
  color: var(--c-gold);
  background: rgba(212,175,55,.06);
  border-color: rgba(212,175,55,.2);
}

/* ═══════════════════════════════════════════════════════════════════
   ARCHIVE PAGE
   ═══════════════════════════════════════════════════════════════════ */
.archive-header {
  padding: var(--sp-12) 0 var(--sp-8);
  text-align: center;
}

.archive-header__eyebrow {
  font-size: var(--fs-sm);
  color: var(--c-teal);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--sp-3);
}

.archive-header__title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl));
  font-weight: var(--fw-black);
  line-height: 1.2;
  color: #fff;
  margin-bottom: var(--sp-4);
}

.archive-header__desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--c-text-muted);
  font-size: var(--fs-lg);
}

/* Post grid on archive */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
  padding: var(--sp-8) 0 var(--sp-16);
}

.post-card {
  background: var(--c-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.post-card__thumb {
  height: 180px;
  overflow: hidden;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.post-card:hover .post-card__thumb img { transform: scale(1.06); }

.post-card__body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }

.post-card__taxes { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-3); }

.post-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: 1.4;
  margin-bottom: auto;
  padding-bottom: var(--sp-4);
}

.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--c-gold-light); }

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

.post-card__count {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--c-purple-light);
  font-weight: var(--fw-medium);
}

/* Filter bar on archive */
.filter-bar {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}

.filter-btn {
  padding: var(--sp-2) var(--sp-4);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: rgba(124,92,252,.15);
  border-color: rgba(124,92,252,.4);
  color: var(--c-purple-light);
}

/* ═══════════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-8) 0;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  transition: all var(--transition);
}

.pagination a:hover,
.pagination .current {
  background: rgba(124,92,252,.2);
  border-color: rgba(124,92,252,.5);
  color: var(--c-purple-light);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: var(--sp-10) 0;
  text-align: center;
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
}

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

.icon { display: inline-block; vertical-align: middle; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
