/* ═══════════════════════════════════════════════════════
   ShiaGuide — Shared Design System
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES & THEME SYSTEM
═══════════════════════════════════════════════════════ */
:root {
  /* Light Theme */
  --bg-primary: #FAFAF9;
  --bg-secondary: #F5F0EB;
  --bg-tertiary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.88);
  --bg-overlay: rgba(250, 250, 249, 0.92);
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-tertiary: #7A7A7A;
  --text-muted: #A0A0A0;
  --accent: #1B6B5A;
  --accent-light: #E8F5F0;
  --accent-hover: #15554A;
  --accent-warm: #C8956C;
  --accent-warm-light: #FFF5ED;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.10);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.10), 0 8px 20px rgba(0,0,0,0.05);
  --gradient-hero: linear-gradient(145deg, #F5F0EB 0%, #E8F5F0 50%, #FFF5ED 100%);
  --gradient-accent: linear-gradient(135deg, #1B6B5A 0%, #2A8F7A 100%);
  --gradient-warm: linear-gradient(135deg, #C8956C 0%, #D4A87C 100%);
  --quote-bg: linear-gradient(90deg, #1B6B5A 0%, #2A8F7A 50%, #1B6B5A 100%);
  --skeleton-base: #F0ECE7;
  --skeleton-shine: #FAF8F5;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --bg-primary: #0F0F0F;
  --bg-secondary: #171717;
  --bg-tertiary: #1A1A1A;
  --bg-card: #1E1E1E;
  --bg-glass: rgba(20, 20, 20, 0.78);
  --bg-glass-strong: rgba(25, 25, 25, 0.92);
  --bg-overlay: rgba(15, 15, 15, 0.95);
  --text-primary: #F0EDE8;
  --text-secondary: #B8B4AF;
  --text-tertiary: #807C77;
  --text-muted: #5A5752;
  --accent: #3EBD9F;
  --accent-light: rgba(62, 189, 159, 0.12);
  --accent-hover: #4DD4B2;
  --accent-warm: #D4A87C;
  --accent-warm-light: rgba(212, 168, 124, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.10);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.4);
  --gradient-hero: linear-gradient(145deg, #0F0F0F 0%, #141E1A 50%, #1A1510 100%);
  --gradient-accent: linear-gradient(135deg, #1B6B5A 0%, #3EBD9F 100%);
  --gradient-warm: linear-gradient(135deg, #C8956C 0%, #D4A87C 100%);
  --quote-bg: linear-gradient(90deg, #0D3D32 0%, #154D40 50%, #0D3D32 100%);
  --skeleton-base: #262626;
  --skeleton-shine: #333333;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition-smooth), color var(--transition-smooth);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; border: none; outline: none; background: none; }

.serif { font-family: 'Playfair Display', Georgia, serif; }
.amiri { font-family: 'Amiri', serif; }

/* ═══════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

/* ═══════════════════════════════════════════════════════
   SKELETON LOADING
═══════════════════════════════════════════════════════ */
.skeleton {
  background: var(--skeleton-base);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--skeleton-shine) 50%, transparent 100%);
  animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.skeleton-text { height: 14px; margin-bottom: 10px; }
.skeleton-text.w-60 { width: 60%; }
.skeleton-text.w-80 { width: 80%; }
.skeleton-text.w-40 { width: 40%; }
.skeleton-title { height: 22px; width: 75%; margin-bottom: 14px; }
.skeleton-img { width: 100%; aspect-ratio: 16/10; }

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 20px;
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth),
              backdrop-filter var(--transition-smooth);
}
header.scrolled {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { header { padding: 0 32px; } }

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 768px) { .header-inner { height: 72px; } }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 110;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  overflow: hidden;
}
.logo-icon::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.logo-icon svg { position: relative; z-index: 1; }
.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.logo-text span { color: var(--accent); }

/* Desktop Nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 1024px) { .desktop-nav { display: flex; } }

.desktop-nav a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}
.desktop-nav a:hover {
  color: var(--text-primary);
  background: var(--accent-light);
}
.desktop-nav a.active {
  color: var(--accent);
  font-weight: 600;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 110;
}
.header-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.header-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.header-btn svg { width: 20px; height: 20px; }

.theme-toggle-desktop { display: none; }
@media (min-width: 1024px) { .theme-toggle-desktop { display: flex; } }

.menu-toggle { display: flex; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Hamburger Icon */
.hamburger {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════
   MOBILE MENU — iOS-INSPIRED GLASSMORPHISM
═══════════════════════════════════════════════════════ */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: -10px;
  left: 0;
  right: 0;
  z-index: 105;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 70vh;
}
.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu-inner {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  padding: 80px 24px 28px;
  box-shadow: var(--shadow-xl);
  border-bottom: 1px solid var(--border);
}

/* Navigation Grid */
.mobile-nav-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.mobile-nav-row {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.mobile-nav-row.single { justify-content: center; }

.mobile-nav-item {
  flex: 1;
  max-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.mobile-nav-item:active {
  transform: scale(0.96);
  background: var(--accent-light);
}
.mobile-nav-item.home-item {
  max-width: 160px;
  background: var(--gradient-accent);
  color: white;
  border-color: transparent;
}

/* Theme Toggle in Mobile */
.mobile-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  margin: 16px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.toggle-track {
  width: 48px;
  height: 28px;
  background: var(--text-muted);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition-fast);
}
[data-theme="dark"] .toggle-track { background: var(--accent); }
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-spring);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
[data-theme="dark"] .toggle-thumb { transform: translateX(20px); }
.toggle-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Footer links in mobile menu */
.mobile-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.mobile-footer-links a {
  font-size: 12px;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}
.mobile-footer-links a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   PAGE HERO (for category pages)
═══════════════════════════════════════════════════════ */
.page-hero {
  padding: 140px 0 60px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .page-hero { padding: 160px 0 80px; } }

.page-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231B6B5A' stroke-width='0.5'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40Z'/%3E%3Cpath d='M20 0 L40 20 L20 40 L0 20Z'/%3E%3Cpath d='M60 0 L80 20 L60 40 L40 20Z'/%3E%3Cpath d='M20 40 L40 60 L20 80 L0 60Z'/%3E%3Cpath d='M60 40 L80 60 L60 80 L40 60Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}
[data-theme="dark"] .page-hero-pattern { opacity: 0.02; }

.page-hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}
.page-hero-glow-1 {
  top: -150px;
  right: -100px;
  background: var(--accent);
}
.page-hero-glow-2 {
  bottom: -150px;
  left: -100px;
  background: var(--accent-warm);
  opacity: 0.08;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.page-hero-breadcrumb a {
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}
.page-hero-breadcrumb a:hover { color: var(--accent); }
.page-hero-breadcrumb svg { width: 14px; height: 14px; }

.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 16px rgba(27, 107, 90, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27, 107, 90, 0.35);
}
.btn-secondary {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-md);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
}
.btn svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════════════════
   SECTION STYLES
═══════════════════════════════════════════════════════ */
.section {
  padding: 80px 0;
  position: relative;
}
@media (min-width: 768px) { .section { padding: 100px 0; } }

.section-header {
  margin-bottom: 48px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-tertiary);
  max-width: 520px;
  line-height: 1.7;
}

.section-alt { background: var(--bg-secondary); }

/* ═══════════════════════════════════════════════════════
   CARD GRID
═══════════════════════════════════════════════════════ */
.card-grid {
  display: grid;
  gap: 20px;
}
.card-grid-2 {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
.card-grid-3 {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════
   ARTICLE CARDS
═══════════════════════════════════════════════════════ */
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.article-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.article-card:hover .article-card-img {
  transform: scale(1.04);
}
.article-card-img-wrap {
  overflow: hidden;
  position: relative;
}
.article-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 10px;
}
.article-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  flex: 1;
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.article-card-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* No-image variant */
.article-card.no-image .article-card-body {
  padding: 24px;
}
.article-card.no-image {
  border-left: 3px solid var(--accent);
}

/* Article card read more */
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.article-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition-fast);
}
.article-card:hover .article-card-readmore {
  gap: 10px;
}
.article-card-readmore svg {
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════════════════════
   SEARCH OVERLAY — SPOTLIGHT STYLE
═══════════════════════════════════════════════════════ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-overlay);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.search-overlay.open {
  opacity: 1;
  visibility: visible;
}
@media (min-width: 768px) { .search-overlay { padding-top: 140px; } }

.search-container {
  width: 100%;
  max-width: 620px;
  transform: translateY(-20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.search-overlay.open .search-container {
  transform: translateY(0) scale(1);
}

.search-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.search-input-wrap svg {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  font-size: 17px;
  color: var(--text-primary);
  background: transparent;
}
.search-input::placeholder { color: var(--text-muted); }

.search-shortcut {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-weight: 500;
}

.search-results {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.search-results::-webkit-scrollbar { width: 4px; }
.search-results::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  transition: background var(--transition-fast);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--accent-light); }

.search-result-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.search-result-icon svg { width: 16px; height: 16px; }

.search-result-text { flex: 1; min-width: 0; }
.search-result-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result-title mark {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 2px;
  padding: 0 2px;
}
.search-result-cat {
  font-size: 12px;
  color: var(--text-muted);
}

.search-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.search-close-hint {
  padding: 12px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-top {
  display: grid;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   UTILITY & RESPONSIVE
═══════════════════════════════════════════════════════ */
.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;
}

/* Skeleton card */
.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
}
.skeleton-card .skeleton-img { aspect-ratio: 16/10; }
.skeleton-card .skeleton-body { padding: 20px; }

/* Animated entrance */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Stats & counters */
.stats-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  opacity: 0.3;
}
.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 14px;
}
