/* ============================================
   EMERALD THEME v1.0.1 — VlahX Core 2.0
   Accent: #10b981 (Emerald 500)
   ============================================ */
:root {
  --emerald-50:  #ecfdf5; --emerald-100: #d1fae5; --emerald-200: #a7f3d0; --emerald-300: #6ee7b7;
  --emerald-400: #34d399; --emerald-500: #10b981; --emerald-600: #059669; --emerald-700: #047857;
  --emerald-800: #065f46; --emerald-900: #064e3b;
  --bg-primary: #f8faf9; --bg-secondary: #ffffff; --bg-tertiary: #f1f5f3;
  --text-primary: #0f172a; --text-secondary: #475569; --text-muted: #94a3b8;
  --border-color: #e2e8e4; --glass-bg: rgba(255, 255, 255, 0.7); --glass-border: rgba(16, 185, 129, 0.15);
  --shadow-sm: 0 1px 2px rgba(16, 185, 129, 0.05); --shadow-md: 0 4px 12px rgba(16, 185, 129, 0.08);
  --shadow-lg: 0 10px 30px rgba(16, 185, 129, 0.12); --glow: 0 0 20px rgba(16, 185, 129, 0.3);
}
[data-bs-theme="dark"] {
  --bg-primary: #0a0f0d; --bg-secondary: #111816; --bg-tertiary: #1a2420;
  --text-primary: #f1f5f3; --text-secondary: #94a3b8; --text-muted: #64748b;
  --border-color: #1e2d28; --glass-bg: rgba(17, 24, 22, 0.7); --glass-border: rgba(52, 211, 153, 0.2);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5); --glow: 0 0 25px rgba(16, 185, 129, 0.4);
}
body { background-color: var(--bg-primary) !important; color: var(--text-primary) !important; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; transition: background-color 0.4s ease, color 0.4s ease; }
body::before { content: ''; position: fixed; inset: 0; background-image: linear-gradient(var(--border-color) 1px, transparent 1px), linear-gradient(90deg, var(--border-color) 1px, transparent 1px); background-size: 60px 60px; opacity: 0.3; pointer-events: none; z-index: 0; }
.navbar-emerald { background: var(--glass-bg) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-border) !important; box-shadow: var(--shadow-sm); }
.navbar-emerald .navbar-brand { color: var(--text-primary) !important; font-weight: 700; letter-spacing: -0.02em; }
.navbar-emerald .nav-link { color: var(--text-secondary) !important; font-weight: 500; border-radius: 9999px; transition: all 0.25s ease; }
.navbar-emerald .nav-link:hover, .navbar-emerald .nav-link.active { color: var(--emerald-500) !important; background: rgba(16, 185, 129, 0.08); }
.theme-toggle-btn { background: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 9999px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; }
.theme-toggle-btn:hover { background: var(--emerald-500); color: white; transform: rotate(20deg); }
.lang-switcher select { background: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 9999px; padding: 0.35rem 1rem; font-size: 0.85rem; cursor: pointer; }
.emerald-card { background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: 1rem; box-shadow: var(--shadow-md); transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; }
.emerald-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--glow); border-color: var(--emerald-400); }
.emerald-card .card-img-top { height: 200px; object-fit: cover; transition: transform 0.5s ease; }
.emerald-card:hover .card-img-top { transform: scale(1.05); }
.emerald-card .card-title a { color: var(--text-primary); text-decoration: none; transition: color 0.25s ease; }
.emerald-card .card-title a:hover { color: var(--emerald-500); }
.emerald-card .card-text { color: var(--text-secondary); font-size: 0.95rem; }
.badge-emerald { background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600)); color: white; font-weight: 600; }
.hero-banner { position: relative; border-radius: 1.25rem; overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 2rem; }
.hero-banner img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.hero-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(10, 15, 13, 0.6) 100%); pointer-events: none; }
.article-body { color: var(--text-primary); line-height: 1.8; font-size: 1.1rem; }
.article-body h2 { border-left: 4px solid var(--emerald-500); padding-left: 1rem; margin-top: 2rem; margin-bottom: 1rem; }
.article-body a { color: var(--emerald-500); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 4px solid var(--emerald-500); background: var(--bg-tertiary); padding: 1rem 1.5rem; margin: 1.5rem 0; border-radius: 0 0.5rem 0.5rem 0; font-style: italic; color: var(--text-secondary); }
.footer-emerald { background: var(--bg-secondary) !important; border-top: 1px solid var(--border-color) !important; color: var(--text-secondary); }
.footer-emerald a { color: var(--text-secondary); text-decoration: none; transition: all 0.25s ease; }
.footer-emerald a:hover { color: var(--emerald-500); padding-left: 4px; }
.footer-emerald .footer-bottom { border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.875rem; }
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.05s; } .stagger-2 { transition-delay: 0.1s; } .stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; } .stagger-5 { transition-delay: 0.25s; } .stagger-6 { transition-delay: 0.3s; }
.btn-emerald { background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600)); color: white !important; border: none; border-radius: 9999px; padding: 0.6rem 1.5rem; font-weight: 600; box-shadow: var(--shadow-md); transition: all 0.3s ease; }
.btn-emerald:hover { transform: translateY(-2px); box-shadow: var(--glow); color: white !important; }
.btn-emerald-outline { background: transparent; color: var(--emerald-500) !important; border: 1.5px solid var(--emerald-500); border-radius: 9999px; padding: 0.6rem 1.5rem; font-weight: 600; transition: all 0.3s ease; }
.btn-emerald-outline:hover { background: var(--emerald-500); color: white !important; }
.text-emerald { color: var(--emerald-500) !important; }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--emerald-600); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--emerald-500); }
@media (max-width: 768px) { .hero-banner img { max-height: 280px; } .emerald-card .card-img-top { height: 160px; } .article-body { font-size: 1rem; } }