/* ==========================================================================
   UtsavHub / NineOnline Festive Blog Design System
   Sleek Typography, High-Contrast Reading, Dual-Theme Support
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #090a0f;
  --bg-secondary: #12141e;
  --bg-card: rgba(23, 26, 38, 0.85);
  --bg-input: rgba(18, 20, 30, 0.85);
  --border-color: rgba(255, 215, 0, 0.18);
  --border-glow: rgba(245, 158, 11, 0.45);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --crimson-500: #e11d48;
  --emerald-500: #10b981;
  
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  --crimson-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f1f5f9;
  --border-color: rgba(217, 119, 6, 0.25);
  --border-glow: rgba(217, 119, 6, 0.5);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.3;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Nav */
.main-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(9, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
}

[data-theme="light"] .main-header {
  background: rgba(255, 255, 255, 0.95);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-400);
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Article Layout */
.article-wrapper {
  padding: 3rem 0 5rem;
}

.breadcrumb-nav {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb-nav a {
  color: var(--gold-400);
}

.article-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
}

.article-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-glow);
  color: var(--gold-400);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.article-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-body h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  color: var(--gold-300);
}

.article-body h3 {
  font-size: 1.25rem;
  margin: 1.8rem 0 0.75rem;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 1.35rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body strong {
  color: var(--text-primary);
}

/* Callout Box */
.callout-box {
  background: var(--bg-card);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.callout-box strong {
  display: block;
  font-size: 1.1rem;
  color: var(--gold-400);
  margin-bottom: 0.35rem;
}

/* Cross-Promo In-Article Widget */
.in-article-cta {
  background: linear-gradient(135deg, rgba(76, 5, 25, 0.6) 0%, rgba(23, 26, 38, 0.9) 100%);
  border: 1px solid rgba(225, 29, 72, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2.5rem 0;
  text-align: center;
}

[data-theme="light"] .in-article-cta {
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
  border-color: rgba(225, 29, 72, 0.3);
}

.in-article-cta h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.in-article-cta p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.cta-btn {
  background: var(--gold-gradient);
  color: #090a0f;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.data-table th, .data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: var(--bg-card);
  color: var(--gold-400);
  font-weight: 700;
}

.data-table tr:hover {
  background: rgba(245, 158, 11, 0.05);
}

/* Footer */
.main-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Article Images & Visual Media */
.article-featured-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: block;
}

.article-inline-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 1.75rem 0 0.75rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.image-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.75rem;
  font-style: italic;
  display: block;
}
