/* ===========================================
   AttitudeCaptions.in - Main Stylesheet v2.1
   Dark Glassmorphism + Mobile-First Design
   =========================================== */

/* === DESIGN TOKENS === */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --bg-glass: rgba(255,255,255,0.06);
  --bg-glass-strong: rgba(255,255,255,0.10);
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(99,102,241,0.4);
  --text-primary: #f0f0f5;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #ec4899;
  --accent-fire: #ef4444;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(99,102,241,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --font-primary: 'Space Grotesk', sans-serif;
  --font-display: 'Bebas Neue', cursive;
  --font-bengali: 'Noto Sans Bengali', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --blur: blur(16px);
}

[data-theme="light"] {
  --bg-primary: #f8f9ff;
  --bg-secondary: #eef0ff;
  --bg-card: rgba(255,255,255,0.85);
  --bg-card-hover: rgba(255,255,255,0.98);
  --bg-glass: rgba(255,255,255,0.7);
  --bg-glass-strong: rgba(255,255,255,0.9);
  --border: rgba(99,102,241,0.15);
  --text-primary: #0f0f1a;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --shadow-card: 0 4px 24px rgba(99,102,241,0.12);
  --shadow-glow: 0 0 30px rgba(99,102,241,0.08);
}

/* === 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(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* Animated background */
body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99,102,241,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(236,72,153,0.06) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-2); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* === LAYOUT === */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
@media (min-width: 1200px) { .container { padding: 0 40px; } }

.page-wrap { padding-top: 80px; }
.section { padding: 48px 0; }
@media (min-width: 768px) { .section { padding: 64px 0; } }

/* === SKIP LINK === */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--accent); color: white; padding: 8px 16px;
  border-radius: var(--radius-sm); font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* === AD ZONES === */
.ad-zone {
  text-align: center; background: var(--bg-card);
  border: 1px dashed var(--border); border-radius: var(--radius-md);
  padding: 8px; min-height: 90px; overflow: hidden;
}
.ad-zone.ad-header { border-radius: 0; min-height: 50px; }
.ad-content-top, .ad-content-middle { margin: 24px 0; }
.ad-sidebar { margin-bottom: 24px; min-height: 250px; }

/* === NAVBAR === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  background: rgba(10,10,15,0.85);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
[data-theme="light"] .site-header { background: rgba(248,249,255,0.88); }
.site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.3); }

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-primary); font-weight: 700; font-size: 1.1rem;
  white-space: nowrap; text-decoration: none;
}
.logo-icon { font-size: 1.4rem; }
.logo-text strong { color: var(--accent); }
.logo-badge { background: var(--accent); color: white; font-size: 0.65rem; padding: 2px 5px; border-radius: 4px; font-weight: 700; }

.nav-links { display: none; gap: 4px; align-items: center; }
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-link {
  color: var(--text-secondary); padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--bg-glass); }
.nav-link .arrow { font-size: 0.7rem; margin-left: 2px; }

.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); background: var(--bg-secondary);
  backdrop-filter: var(--blur); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 12px; min-width: 380px;
  box-shadow: var(--shadow-card); z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { display: block; animation: fadeDown 0.2s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; margin-bottom: 8px; }
.dropdown-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-secondary);
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.dropdown-all {
  display: block; text-align: center; padding: 10px;
  border-top: 1px solid var(--border); color: var(--accent);
  font-weight: 600; font-size: 0.85rem; border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.nav-controls { display: flex; gap: 8px; align-items: center; }
.btn-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-glass);
  color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: 1rem;
}
.btn-icon:hover { background: var(--bg-glass-strong); color: var(--text-primary); border-color: var(--accent); }

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-hamburger { flex-direction: column; gap: 5px; padding: 10px; }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: var(--transition); }
@media (min-width: 900px) { .nav-hamburger { display: none; } }

/* Mobile Nav */
.mobile-nav {
  display: none; padding: 16px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav a { display: block; padding: 12px 20px; color: var(--text-secondary); font-size: 0.95rem; border-bottom: 1px solid var(--border); }
.mobile-nav a:hover { color: var(--text-primary); background: var(--bg-card); }

/* === SEARCH OVERLAY === */
.search-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: var(--blur);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 80px;
}
.search-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.search-box {
  width: 100%; max-width: 680px; margin: 0 16px;
  background: var(--bg-secondary); border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  animation: slideDown 0.25s ease;
}
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.search-icon { color: var(--text-muted); flex-shrink: 0; }
#globalSearch {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 1.1rem; font-family: inherit;
}
#globalSearch::placeholder { color: var(--text-muted); }
.search-esc {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px;
  padding: 2px 8px; font-size: 0.75rem; color: var(--text-muted); cursor: pointer;
}
.search-trending { padding: 12px 20px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-label { color: var(--text-muted); font-size: 0.8rem; }
.search-tag {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 4px 10px; border-radius: 20px; font-size: 0.8rem;
}
.search-tag:hover { background: var(--accent); color: white; border-color: var(--accent); }
.search-results { max-height: 380px; overflow-y: auto; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border); cursor: pointer; }
.search-result-item:hover { background: var(--bg-card); }
.search-result-text { flex: 1; font-size: 0.9rem; color: var(--text-secondary); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-result-cat { font-size: 0.75rem; color: var(--text-muted); background: var(--bg-card); padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }

/* === STICKY SEARCH === */
.sticky-search-bar {
  position: sticky; top: 64px; z-index: 900;
  background: rgba(10,10,15,0.9); backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border); padding: 10px 0;
  display: none;
}
.sticky-search-bar.visible { display: block; }
#stickySearchInput {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-primary); padding: 10px 16px; border-radius: var(--radius-md);
  font-size: 0.95rem; font-family: inherit; outline: none;
  transition: var(--transition);
}
#stickySearchInput:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

/* === HERO SECTION === */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3);
  color: var(--accent); padding: 6px 16px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.2); } 50% { box-shadow: 0 0 0 8px rgba(99,102,241,0); } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1.05; letter-spacing: 2px;
  background: linear-gradient(135deg, #f0f0f5 30%, var(--accent) 60%, var(--accent-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 20px;
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary); max-width: 600px; margin: 0 auto 32px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.stat { text-align: center; }
.stat-number { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); font-family: var(--font-display); letter-spacing: 1px; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.hero-search {
  max-width: 560px; margin: 0 auto;
  display: flex; gap: 12px;
}
.hero-search input {
  flex: 1; padding: 14px 20px; background: var(--bg-glass-strong);
  border: 1px solid var(--border-accent); border-radius: var(--radius-md);
  color: var(--text-primary); font-size: 1rem; font-family: inherit;
  outline: none; transition: var(--transition);
}
.hero-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; border: none; padding: 14px 24px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  transition: var(--transition); box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99,102,241,0.4); }
.btn-primary:active { transform: translateY(0); }

/* === SECTION HEADINGS === */
.section-header { margin-bottom: 32px; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700;
  color: var(--text-primary); margin-bottom: 8px;
}
.section-title span { color: var(--accent); }
.section-subtitle { color: var(--text-secondary); font-size: 0.95rem; }
.section-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.view-all { color: var(--accent); font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.view-all:hover { color: var(--accent-2); }

/* === CAPTION CARDS === */
.captions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) { .captions-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .captions-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .captions-grid { grid-template-columns: repeat(4, 1fr); } }

.caption-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.caption-card::before {
  content: '';
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(236,72,153,0.04));
  transition: opacity 0.3s;
}
.caption-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-2px);
}
.caption-card:hover::before { opacity: 1; }

.caption-card.trending::after {
  content: '🔥 Trending';
  position: absolute; top: 10px; right: 10px;
  background: rgba(239,68,68,0.15); color: var(--accent-fire);
  font-size: 0.7rem; font-weight: 700; padding: 3px 8px;
  border-radius: 10px; border: 1px solid rgba(239,68,68,0.2);
}
.caption-card.featured::after {
  content: '⭐ Featured';
  position: absolute; top: 10px; right: 10px;
  background: rgba(245,158,11,0.15); color: var(--accent-gold);
  font-size: 0.7rem; font-weight: 700; padding: 3px 8px;
  border-radius: 10px; border: 1px solid rgba(245,158,11,0.2);
}

.caption-text {
  font-size: 0.92rem; line-height: 1.6; color: var(--text-primary);
  margin-bottom: 14px; min-height: 60px;
}
.caption-text.bangla { font-family: var(--font-bengali); font-size: 0.95rem; }
.caption-text.hindi { font-size: 0.95rem; }

.caption-actions {
  display: flex; gap: 8px; align-items: center;
}
.btn-copy {
  flex: 1; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; border: none; padding: 8px 12px;
  border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600;
  transition: var(--transition); display: flex; align-items: center; gap: 6px; justify-content: center;
}
.btn-copy:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-copy.copied { background: linear-gradient(135deg, var(--accent-green), #059669); }
.btn-copy .copy-icon { font-size: 0.9rem; }

.btn-share-wa {
  background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.2);
  color: #25d366; padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 0.85rem; transition: var(--transition);
}
.btn-share-wa:hover { background: rgba(37,211,102,0.2); }
.btn-like {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 0.85rem; transition: var(--transition); display: flex; align-items: center; gap: 4px;
}
.btn-like:hover, .btn-like.liked { color: var(--accent-fire); border-color: var(--accent-fire); background: rgba(239,68,68,0.08); }
.like-count { font-size: 0.75rem; }

/* === CATEGORY CARDS === */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .categories-grid { grid-template-columns: repeat(6, 1fr); } }

.category-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 16px;
  text-align: center; transition: var(--transition);
  display: block; color: var(--text-primary);
  position: relative; overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transform: scaleX(0); transition: transform 0.3s;
}
.category-card:hover {
  border-color: var(--border-accent); transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
}
.category-card:hover::before { transform: scaleX(1); }
.category-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.category-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.category-count { font-size: 0.75rem; color: var(--text-muted); }
.category-card.trending-cat .category-name::after { content: ' 🔥'; }

/* === TAG CLOUD === */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 6px 14px; border-radius: 20px;
  font-size: 0.82rem; transition: var(--transition); font-weight: 500;
}
.tag-pill:hover { background: var(--accent); color: white; border-color: var(--accent); transform: translateY(-1px); }
.tag-pill.active { background: var(--accent); color: white; border-color: var(--accent); }

/* === PAGE LAYOUT === */
.page-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 1024px) {
  .page-container { grid-template-columns: 1fr 320px; }
}
.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* === BREADCRUMB === */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-secondary); }

/* === CATEGORY PAGE HERO === */
.cat-hero {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
  margin-bottom: 32px; position: relative; overflow: hidden;
}
.cat-hero::before {
  content: '';
  position: absolute; top: -50%; right: -20%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cat-hero-icon { font-size: 3rem; margin-bottom: 12px; }
.cat-hero h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; margin-bottom: 10px; }
.cat-hero-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.85rem; }
.cat-hero-meta span { display: flex; align-items: center; gap: 5px; }

/* === FILTER BAR === */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-bottom: 24px; padding: 12px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.filter-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.filter-btn {
  background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 6px 14px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 500; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* === PAGINATION === */
.pagination {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: 40px;
}
.page-btn {
  min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* === LOAD MORE === */
.load-more-wrap { text-align: center; margin-top: 32px; }
.btn-load-more {
  background: var(--bg-card); border: 1px solid var(--border-accent);
  color: var(--accent); padding: 12px 32px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.95rem; transition: var(--transition);
}
.btn-load-more:hover { background: var(--accent); color: white; }
.btn-load-more.loading { opacity: 0.7; pointer-events: none; }
.btn-load-more.loading::after { content: ' ⏳'; }

/* === FAQ SECTION === */
.faq-section { margin-top: 48px; }
.faq-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 16px 20px; color: var(--text-primary); font-size: 0.95rem; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-arrow { color: var(--text-muted); font-size: 0.8rem; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  display: none; padding: 0 20px 16px;
  color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-answer { display: block; animation: fadeIn 0.2s ease; }

/* === RELATED SECTION === */
.related-section {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px;
  display: block; color: var(--text-primary); transition: var(--transition);
}
.related-card:hover { border-color: var(--border-accent); color: var(--accent); }
.related-icon { font-size: 1.5rem; margin-bottom: 6px; }
.related-name { font-size: 0.85rem; font-weight: 600; }
.related-count { font-size: 0.75rem; color: var(--text-muted); }

/* === ARTICLE / BLOG === */
.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-content { color: var(--text-secondary); line-height: 1.8; font-size: 0.95rem; }
.article-content h2 { font-size: 1.4rem; color: var(--text-primary); font-weight: 700; margin: 32px 0 12px; }
.article-content h3 { font-size: 1.15rem; color: var(--text-primary); font-weight: 600; margin: 24px 0 10px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 16px 0 16px 24px; }
.article-content li { margin-bottom: 8px; }

/* === SIDEBAR === */
.sidebar-widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px;
}
.widget-title {
  font-size: 0.95rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.trending-list { display: flex; flex-direction: column; gap: 10px; }
.trending-item { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--bg-secondary); border-radius: var(--radius-sm); transition: var(--transition); }
.trending-item:hover { background: var(--bg-card-hover); border-left: 2px solid var(--accent); }
.trending-rank { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); min-width: 20px; }
.trending-text { font-size: 0.85rem; color: var(--text-secondary); flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.trending-count { font-size: 0.75rem; color: var(--text-muted); }

/* === TOAST === */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--accent); color: white; padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 600; z-index: 5000;
  opacity: 0; transition: all 0.3s ease; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--accent-green); }
.toast.error { background: var(--accent-fire); }

/* === BACK TO TOP === */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 44px; height: 44px; background: var(--accent);
  color: white; border: none; border-radius: 50%;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(99,102,241,0.4); opacity: 0;
  transition: var(--transition); pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(99,102,241,0.5); }

/* === FOOTER === */
.site-footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 60px 0 0; margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 40px; margin-bottom: 40px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo { color: var(--text-primary); font-size: 1.2rem; font-weight: 700; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.social-link { font-size: 1.4rem; transition: transform 0.2s; }
.social-link:hover { transform: scale(1.15); }
.footer-col h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 0.85rem; color: var(--text-muted); transition: var(--transition); }
.footer-col a:hover { color: var(--accent); padding-left: 4px; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.footer-tags strong { font-size: 0.85rem; color: var(--text-muted); }
.footer-tag { font-size: 0.78rem; color: var(--text-muted); background: var(--bg-card); padding: 3px 10px; border-radius: 10px; border: 1px solid var(--border); }
.footer-tag:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom { padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.footer-disclaimer { font-size: 0.78rem; }

/* === UTILITY === */
.text-accent { color: var(--accent); }
.text-fire { color: var(--accent-fire); }
.text-gold { color: var(--accent-gold); }
.text-center { text-align: center; }
.hidden { display: none !important; }
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-glass-strong) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* === ADMIN NOTICE === */
.admin-bar { background: var(--accent); color: white; text-align: center; padding: 8px; font-size: 0.85rem; }
.admin-bar a { color: white; font-weight: 600; text-decoration: underline; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .hero { padding: 40px 0 32px; }
  .hero-search { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .section { padding: 32px 0; }
  .captions-grid { grid-template-columns: 1fr; }
}
