/*
 * FootClaw — Layout (header, footer, navigation)
 */

/* ====== Header ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Opaque dark bg with subtle glass — radial brand glow no longer bleeds
     through the nav, so labels keep consistent contrast across pages. */
  background: rgba(8, 8, 10, 0.96);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset;
}

:root[data-theme="light"] .site-header {
  background: rgba(250, 250, 250, 0.96);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-3);
  min-height: 72px;
}

/* Burger button */
.burger-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.burger-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Notifications bell */
.notif-menu { position: relative; }

.notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.notif-btn:hover { color: var(--text-primary); border-color: var(--brand-primary); }

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--brand-primary);
  color: white;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-base);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.40);
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  z-index: 80;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.notif-dropdown[hidden] { display: none; }

.notif-dropdown-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
}
.notif-dropdown-head strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.notif-mark-all {
  font-size: 12px;
  color: var(--brand-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.notif-mark-all:hover { background: var(--brand-primary-soft); }

.notif-list {
  overflow-y: auto;
  flex: 1;
  max-height: 400px;
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: background-color 100ms;
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-hover); }
.notif-item.unread { background: rgba(220, 38, 38, 0.05); }
.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--brand-primary);
  border-radius: 50%;
  transform: translateY(-50%);
}
.notif-item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0 0 2px;
}
.notif-item-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}
.notif-item-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 4px;
  display: block;
}

.notif-item-delete {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.30);
  cursor: pointer;
  font-size: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}
.notif-item:hover .notif-item-delete { display: inline-flex; }
.notif-item-delete:hover {
  background: rgba(220,38,38,0.18);
  color: #fca5a5;
}

.notif-dropdown-foot {
  display: flex;
  justify-content: center;
  padding: 9px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.20);
}
.notif-dropdown-foot a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-primary);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.12s ease;
}
.notif-dropdown-foot a:hover { background: var(--brand-primary-soft); }

.notif-empty {
  padding: 32px 24px;
  text-align: center;
  color: var(--text-tertiary);
}
.notif-empty .fc-icon {
  display: inline-block;
  opacity: 0.4;
  margin-bottom: 8px;
}
.notif-empty p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 4px;
}
.notif-empty small {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .notif-btn { display: none; }
}

/* Avatar menu */
.avatar-menu { position: relative; }

.avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--border-default);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--duration-fast);
  overflow: hidden;
}

.avatar-btn:hover { border-color: var(--brand-primary); }

.avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: var(--font-black);
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  padding-top: 1px;
}

.avatar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  padding: var(--space-2);
  z-index: 80;
}

.avatar-dropdown[hidden] { display: none; }

.avatar-dropdown-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.avatar-dropdown-head strong {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.avatar-tokens {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 10px 12px !important;
  margin: 6px 4px !important;
  background: linear-gradient(135deg, rgba(251,191,36,0.10), rgba(220,38,38,0.05)) !important;
  border: 1px solid rgba(251,191,36,0.30) !important;
  border-radius: var(--radius-md);
}
.avatar-tokens:hover {
  background: linear-gradient(135deg, rgba(251,191,36,0.20), rgba(220,38,38,0.10)) !important;
  border-color: #fbbf24 !important;
}
.avatar-tokens .fc-icon { color: #fbbf24 !important; opacity: 1 !important; flex-shrink: 0; }
.avatar-tokens-balance {
  font-family: var(--font-display);
  font-weight: 900;
  color: #fbbf24;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.avatar-plan {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

.avatar-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.avatar-dropdown a .fc-icon { flex-shrink: 0; opacity: 0.85; }
.avatar-dropdown a:hover .fc-icon { opacity: 1; }

.avatar-dropdown a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.avatar-dropdown-sep {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  transition: opacity 200ms ease;
}

.drawer-backdrop.open { opacity: 1; }
.drawer-backdrop[hidden] { display: none; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 90vw);
  background: var(--bg-base);
  border-right: 1px solid var(--border-strong);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 200ms var(--easing-default);
  display: flex;
  flex-direction: column;
}

.drawer.open { transform: translateX(0); }
.drawer[hidden] { display: none; }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-default);
}

.drawer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.drawer-brand img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.4));
}

.drawer-brand span {
  font-family: var(--font-display);
  font-weight: var(--font-black);
  font-size: var(--text-xl);
  color: var(--brand-primary);
  text-transform: lowercase;
}

.drawer-close {
  width: 32px;
  height: 32px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-close:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-3);
}

.drawer-section {
  margin-bottom: var(--space-5);
}

.drawer-section h4 {
  font-size: 11px;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 0 var(--space-3);
  margin-bottom: var(--space-2);
}

.drawer-section a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.drawer-section a .fc-icon { flex-shrink: 0; opacity: 0.75; transition: opacity var(--duration-fast); }
.drawer-section a:hover .fc-icon { opacity: 1; color: var(--brand-primary); }
.drawer-section-admin a .fc-icon { color: #fca5a5; opacity: 0.85; }

.drawer-section a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.drawer-section a.drawer-cta {
  margin-top: 4px;
  background: var(--brand-primary);
  color: white;
  font-weight: var(--font-semibold);
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.3);
}

.drawer-section a.drawer-cta:hover {
  background: var(--brand-primary-hover);
  color: white;
}

.drawer-foot {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-default);
}

/* Brand lockup: logo image + wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.brand {
  gap: var(--space-3);
}

.brand-mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(220, 38, 38, 0.45));
  transition: filter var(--duration-default), transform var(--duration-default);
}

.brand:hover .brand-mark {
  filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.7));
  transform: scale(1.04);
}

.brand-text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-black);
  letter-spacing: -0.04em;
  color: var(--brand-primary);
  text-transform: lowercase;
  line-height: 1;
}

@media (max-width: 640px) {
  .brand-mark { width: 44px; height: 44px; }
  .brand-text { font-size: var(--text-xl); }
}

/* Language switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  gap: 2px;
}

.lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--font-bold);
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  transition: all var(--duration-fast);
}

.lang-option:hover {
  color: var(--text-primary);
}

.lang-option.active {
  background: var(--brand-primary);
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

/* ─── Primary nav links — tactile, button-like, subtle brand glow ─── */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.72);
  border-radius: 7px;
  transition:
    color 150ms ease,
    background 150ms ease,
    transform 100ms ease;
}

/* Underline indicator that grows on hover (brand-red gradient).
   Excluded from .nav-link-lab — that pill keeps its own ::after NEW badge. */
.nav-link:not(.nav-link-lab)::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #dc2626, #fbbf24);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:not(.nav-link-lab):hover {
  color: white;
  background: rgba(255,255,255,0.04);
}
.nav-link:not(.nav-link-lab):hover::after { transform: scaleX(1); }

.nav-link:active { transform: translateY(1px); }

/* Active route — solid brand color + persistent underline (not on Lab pill) */
.nav-link.active:not(.nav-link-lab) {
  color: white;
  background: rgba(220,38,38,0.10);
}
.nav-link.active:not(.nav-link-lab)::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, #dc2626, #b91c1c);
}

/* Emphasis (Log in / Sign up): subtle bolder, no underline trick */
.nav-link-emphasis {
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-link-emphasis:hover { color: white; background: rgba(255,255,255,0.06); }
.nav-link-emphasis::after { display: none; }

/* Lab nav link — flagship, golden glow */
.nav-link-lab {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(251,191,36,0.16), rgba(220,38,38,0.10));
  border: 1px solid rgba(251,191,36,0.45);
  border-radius: 9999px;
  color: #fbbf24 !important;
  font-weight: 700 !important;
  transition: all 150ms;
  position: relative;
}
.nav-link-lab::after {
  content: 'NEW';
  position: absolute;
  top: -7px;
  right: -10px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 5px;
  background: var(--brand-primary);
  color: white;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(220,38,38,0.40);
}
.nav-link-lab:hover {
  background: linear-gradient(135deg, rgba(251,191,36,0.24), rgba(220,38,38,0.18));
  border-color: #fbbf24;
  box-shadow: 0 0 16px rgba(251,191,36,0.30);
  transform: translateY(-1px);
}
.nav-link-lab .fc-icon { color: #fbbf24; }

.nav-cta-trial {
  position: relative;
  padding-inline: var(--space-5);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--brand-primary), 0 0 24px rgba(220, 38, 38, 0.25);
}

/* Persistent upgrade CTA for free/trial users — always visible in header */
.nav-upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a1a !important;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(251,191,36,0.4), 0 4px 16px rgba(251,191,36,0.20);
  transition: all 150ms;
}
.nav-upgrade-btn:hover {
  background: linear-gradient(135deg, #fcd34d, #fbbf24);
  box-shadow: 0 0 0 1px #fbbf24, 0 6px 20px rgba(251,191,36,0.35);
  transform: translateY(-1px);
}
.nav-upgrade-btn:active { transform: translateY(0); }

@media (max-width: 768px) {
  .nav-upgrade-btn span:last-child { display: none; }
  .nav-upgrade-btn { padding: 7px 10px; }
}

.nav-cta-trial:hover {
  box-shadow: 0 0 0 1px var(--brand-primary), 0 0 32px rgba(220, 38, 38, 0.45);
}

@media (max-width: 768px) {
  .nav-cta-trial span:last-child { display: none; }
  .nav-cta-trial::after {
    content: "Sign up";
    font-weight: var(--font-semibold);
  }
}

.search-container {
  flex: 1;
  max-width: 560px;
  min-width: 200px;
  position: relative;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  transition: all var(--duration-fast);
}

.search-bar:hover, .search-bar:focus-within {
  border-color: var(--brand-primary);
  background: var(--bg-hover);
}

.search-bar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.search-bar input::placeholder {
  color: var(--text-tertiary);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: var(--space-2);
  max-height: 480px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  z-index: 70;
}

.search-results[hidden] { display: none; }

.search-results .search-loading,
.search-results .search-empty {
  padding: var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.search-results a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--duration-fast);
}

.search-results a:last-child { border-bottom: none; }
.search-results a:hover, .search-results a.focused { background: var(--bg-hover); }

.search-result-kind {
  display: inline-flex;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  background: var(--bg-base);
  color: var(--text-secondary);
  margin-left: auto;
  flex-shrink: 0;
}

.search-result-kind.team { background: rgba(220,38,38,0.15); color: #fca5a5; }
.search-result-kind.player { background: rgba(6,182,212,0.15); color: #67e8f9; }
.search-result-kind.league { background: rgba(245,158,11,0.15); color: #fcd34d; }

/* Search suggestions (recent + trending) */
.search-section-title {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
}
.search-suggest-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  padding: 9px 14px !important;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none !important;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 100ms;
}
.search-suggest-row:last-child { border-bottom: none; }
.search-suggest-row:hover { background: var(--bg-hover); color: var(--text-primary) !important; }
.search-suggest-row svg, .search-suggest-row img {
  flex-shrink: 0;
  opacity: 0.7;
}
.search-suggest-row img.fc-player-avatar { border-radius: 50%; }
.search-suggest-row > span:last-child {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

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

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .search-container { max-width: 320px; }
}

@media (max-width: 768px) {
  .site-header-inner { padding-block: var(--space-2); min-height: 64px; gap: var(--space-2); }
  .brand-mark { width: 40px; height: 40px; }
  .brand-text { font-size: var(--text-xl); }
  .lang-switcher { display: none; }
  .theme-toggle { display: none; }
  .nav-link-emphasis { display: none; }
  .search-container { display: none; }
}

@media (max-width: 640px) {
  .site-header-inner { gap: var(--space-2); padding-inline: var(--space-3); }
  .brand-text { display: none; }
  .nav-cta-trial { padding: 8px 12px; font-size: var(--text-xs); }
  .nav-cta-trial span:first-child { display: none; }
  .nav-cta-trial span:last-child { display: none; }
  .nav-cta-trial::after { content: "Try Pro"; font-weight: var(--font-semibold); }
}

/* ====== Footer ====== */
.site-footer {
  margin-top: var(--space-24);
  padding-block: var(--space-16);
  border-top: 1px solid var(--border-default);
  background: var(--bg-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

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

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.footer-col a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}
