/* ==========================================================================
   NINEONLINE DISCOUNT – EDITORIAL BLOG DESIGN SYSTEM
   Matches NineOnline Deep Space Dark & High-Contrast Light Theme
   100% Mobile Responsive, Fast-Loading, SEO-Optimized Typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #060814;
  --bg-surface: rgba(15, 23, 42, 0.75);
  --bg-card: rgba(30, 41, 59, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.35);

  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.3);
  --accent-emerald: #10b981;
  --accent-amber: #fbbf24;
  --accent-rose: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --border-color: #cbd5e1;
  --border-hover: #0284c7;

  --primary: #0284c7;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.7;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(16, 185, 129, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
  padding-bottom: 70px;
}

h1, h2, h3, h4, h5, h6, .brand-title {
  font-family: 'Outfit', sans-serif;
  line-height: 1.25;
}

/* Nav */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 8, 20, 0.92);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
[data-theme="light"] .blog-nav {
  background: rgba(255, 255, 255, 0.95);
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Breadcrumbs */
.breadcrumb-bar {
  max-width: 900px;
  margin: 24px auto 0 auto;
  padding: 0 20px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb-bar a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb-bar a:hover {
  text-decoration: underline;
}

/* Article Container */
.article-wrapper {
  max-width: 900px;
  margin: 20px auto 60px auto;
  padding: 0 20px;
}
.article-header {
  margin-bottom: 32px;
}
.article-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.article-title {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 900;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -0.5px;
}
[data-theme="light"] .article-title {
  color: #0f172a;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.article-featured-img {
  width: 100%;
  height: clamp(260px, 40vw, 460px);
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
}

/* Instant Takeaway / Information Gain Box */
.takeaway-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 36px;
}
[data-theme="light"] .takeaway-box {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.takeaway-title {
  font-size: 15px;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
[data-theme="light"] .takeaway-title {
  color: #047857;
}
.takeaway-text {
  font-size: 14.5px;
  color: var(--text-main);
  line-height: 1.6;
}

/* Article Content */
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
}
.article-content h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  margin: 38px 0 16px 0;
  color: #fff;
  border-left: 4px solid var(--primary);
  padding-left: 14px;
}
[data-theme="light"] .article-content h2 {
  color: #0f172a;
}
.article-content h3 {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  margin: 28px 0 12px 0;
  color: #38bdf8;
}
[data-theme="light"] .article-content h3 {
  color: #0284c7;
}
.article-content p {
  margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
}
.article-content li {
  margin-bottom: 10px;
}

/* High-Authority Comparison Table */
.blog-table-wrapper {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-surface);
}
.blog-table th {
  background: rgba(15, 23, 42, 0.9);
  padding: 12px 16px;
  text-align: left;
  font-weight: 800;
  color: #fff;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}
[data-theme="light"] .blog-table th {
  background: #f1f5f9;
  color: #0f172a;
}
.blog-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}
.blog-table tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

/* Callout Box */
.callout-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
}
.callout-box.tip {
  border-left: 4px solid var(--accent-amber);
}
.callout-box.highlight {
  border-left: 4px solid var(--accent-emerald);
}

/* CTA Coupon Card */
.blog-coupon-cta {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 2px dashed rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin: 36px 0;
}
[data-theme="light"] .blog-coupon-cta {
  background: #f0fdf4;
  border-color: #10b981;
}
.blog-coupon-cta-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}
[data-theme="light"] .blog-coupon-cta-title {
  color: #0f172a;
}
.blog-coupon-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
  transition: var(--transition);
}
.blog-coupon-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px var(--primary-glow);
}

/* FAQ Accordion */
.blog-faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.blog-faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
[data-theme="light"] .blog-faq-question {
  color: #0f172a;
}
.blog-faq-answer {
  display: none;
  padding: 0 20px 18px 20px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.blog-faq-item.active .blog-faq-answer {
  display: block;
}

/* Footer */
.blog-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
}
.blog-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.blog-footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
