/**
 * Daily Crypto - Public Frontend Stylesheet
 * Premium Dark-First Crypto Publication Aesthetic
 */

:root {
  --bg-primary: #0b0e14;
  --bg-secondary: #121722;
  --bg-card: #171d2b;
  --bg-card-hover: #1e2638;
  --bg-input: #1a2232;
  
  --border-color: #232d3f;
  --border-light: #2e3a52;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --header-height: 70px;
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.5);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f1f5f9;
  
  --border-color: #e2e8f0;
  --border-light: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
  color: var(--accent-gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  flex-wrap: nowrap;
  gap: 12px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.site-logo {
  height: 38px;
  width: auto;
  display: block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}
.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13.5px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background-color: var(--bg-card);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 180px;
  display: none;
  z-index: 1100;
}
.nav-dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-item {
  display: block;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}
.dropdown-item:hover {
  background-color: var(--bg-card);
  color: var(--accent-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.btn-icon:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background-color: var(--bg-card-hover);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  color: #0b0e14;
  font-weight: 700;
  font-size: 13.5px;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  color: #0b0e14;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Breaking Ticker */
.breaking-ticker {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  padding: 6px 0;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 15px;
}
.ticker-badge {
  background-color: var(--accent-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}
.ticker-track {
  overflow: hidden;
  white-space: nowrap;
}
.ticker-link {
  color: var(--text-secondary);
  font-weight: 500;
}
.ticker-link:hover {
  color: var(--text-primary);
}

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
  width: 0%;
  z-index: 2000;
  transition: width 0.1s ease;
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin: 28px 0 40px;
}

.hero-primary-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.hero-primary-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-secondary);
  overflow: hidden;
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-primary-card:hover .card-image-wrap img,
.article-card:hover .card-image-wrap img {
  transform: scale(1.03);
}

.category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.hero-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.hero-excerpt {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: auto;
}
.author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 600;
}
.author-avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.hero-secondary-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.secondary-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: all 0.2s ease;
}
.secondary-item:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-light);
}
.secondary-thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
}
.secondary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.secondary-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* Two Column Layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  margin-bottom: 50px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}
.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent-gold);
  border-radius: 2px;
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
}

/* Article Cards Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
}
.article-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.article-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar Widgets */
.sidebar-widget {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}
.widget-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.popular-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.popular-rank {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-muted);
  line-height: 1;
  min-width: 24px;
}
.popular-item:nth-child(1) .popular-rank { color: var(--accent-gold); }
.popular-item:nth-child(2) .popular-rank { color: var(--accent-blue); }
.popular-item:nth-child(3) .popular-rank { color: var(--accent-purple); }
.popular-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

/* Category Pill Badges */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-pill {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.cat-pill:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}
.cat-count {
  background-color: var(--bg-primary);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
}

/* Newsletter Box */
.newsletter-box {
  background: linear-gradient(135deg, #172033, #0f172a);
  border: 1px solid #2b3954;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin: 30px 0;
}
.newsletter-box h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}
.newsletter-box p {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 18px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-input {
  flex-grow: 1;
  background-color: #0b0e14;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Advertisement Containers & Anti-CLS Placeholders */
.ad-slot-container {
  margin: 20px auto;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.ad-wrapper {
  background-color: var(--bg-card);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

/* Standard Ad Dimension Classes */
.ad-size-728x90 .ad-wrapper,
.ad-slot-header-top .ad-wrapper,
.ad-slot-nav-below .ad-wrapper,
.ad-slot-home-top .ad-wrapper,
.ad-slot-footer-top .ad-wrapper {
  max-width: 728px;
  min-height: 90px;
}

.ad-size-468x60 .ad-wrapper,
.ad-slot-article-after-p1 .ad-wrapper,
.ad-slot-article-middle .ad-wrapper,
.ad-slot-article-before-conclusion .ad-wrapper {
  max-width: 468px;
  min-height: 60px;
}

.ad-size-300x250 .ad-wrapper,
.ad-slot-sidebar-top .ad-wrapper,
.ad-slot-article-sidebar-top .ad-wrapper,
.ad-slot-mobile-article .ad-wrapper {
  max-width: 300px;
  min-height: 250px;
}

.ad-size-320x50 .ad-wrapper,
.ad-slot-mobile-top .ad-wrapper,
.ad-slot-mobile-bottom .ad-wrapper {
  max-width: 320px;
  min-height: 50px;
}

.ad-size-300x600 .ad-wrapper,
.ad-slot-sidebar-middle .ad-wrapper,
.ad-slot-article-sidebar-middle .ad-wrapper {
  max-width: 300px;
  min-height: 600px;
}

.ad-size-responsive .ad-wrapper {
  max-width: 100%;
  min-height: 90px;
}

.ad-sponsor-box {
  padding: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(245, 158, 11, 0.08));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-align: left;
  width: 100%;
}
.ad-sponsor-box h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.ad-sponsor-box p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.btn-ad {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
}

/* Article Detail Page */
.article-header {
  margin-bottom: 24px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.breadcrumb-separator {
  color: var(--border-light);
}
.article-main-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.article-lead-excerpt {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent-gold);
  padding-left: 16px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}
.article-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.author-name-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}
.article-date-time {
  font-size: 12px;
  color: var(--text-muted);
}

.article-featured-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
}
.article-featured-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Article Content Typography */
.article-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
}
.article-content h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 36px 0 16px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}
.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text-primary);
}
.article-content p {
  margin-bottom: 20px;
  color: var(--text-primary);
}
.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
  color: var(--text-primary);
}
.article-content li {
  margin-bottom: 8px;
}
.article-content blockquote {
  border-left: 4px solid var(--accent-blue);
  background: var(--bg-card);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 15px;
}
.content-table th, .content-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  text-align: left;
}
.content-table th {
  background-color: var(--bg-secondary);
  font-weight: 700;
  color: var(--text-primary);
}

.faq-accordion {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.faq-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent-gold);
}

.article-disclaimer {
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 30px 0;
}

/* Article Tags */
.article-tags-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
}
.tag-badge {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.tag-badge:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Share & Action Buttons */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.btn-share {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-share:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-light);
}

/* Author Bio Box */
.author-bio-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 36px 0;
}
.author-bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
}
.author-bio-details h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.author-bio-details p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Comments Section */
.comments-section {
  margin: 40px 0;
}
.comments-header {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}
.comment-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.comment-user {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}
.comment-time {
  font-size: 12px;
  color: var(--text-muted);
}
.comment-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.comment-form-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}
.comment-form-box textarea {
  width: 100%;
  min-height: 100px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 12px;
}
.comment-form-box textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Footer */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 50px 0 24px;
  color: var(--text-secondary);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  margin: 14px 0 20px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-heading {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--accent-gold);
}

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

/* Search Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.modal-backdrop.open {
  display: flex;
}
.modal-dialog {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-search-form {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}
.modal-search-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  width: 100%;
}
.modal-search-input:focus {
  outline: none;
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s ease;
}
.mobile-drawer.open {
  pointer-events: auto;
  visibility: visible;
}
.mobile-drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
.mobile-drawer.open .mobile-drawer-backdrop {
  opacity: 1;
}
.mobile-drawer-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 290px;
  max-width: 85%;
  height: 100%;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-link {
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}
.mobile-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* Mobile Responsiveness */
.mobile-menu-btn {
  display: none;
}

@media (max-width: 1024px) {
  .nav-desktop {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .main-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .article-main-title {
    font-size: 26px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .newsletter-form {
    flex-direction: column;
  }
}
