/* ============================================
   CryptoTrend - Media Theme
   Modern crypto media design with dark/light mode
   ============================================ */

/* --- CSS Variables (Light Mode Default) --- */
:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --bg-card: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #6c757d;
  --accent: #6c5ce7;
  --accent-hover: #5a4bd1;
  --accent-light: rgba(108, 92, 231, 0.1);
  --green: #00b894;
  --red: #e74c3c;
  --border: #dee2e6;
  --border-light: #f1f3f5;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --container: 1200px;
  --gap: 1.5rem;
  --radius: 8px;
  --radius-lg: 12px;
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --bg-card: #1a1a2e;
  --text-primary: #e8e8f0;
  --text-secondary: #b0b0c8;
  --text-muted: #7a7a9a;
  --accent: #8b7cf7;
  --accent-hover: #a08cfb;
  --accent-light: rgba(139, 124, 247, 0.15);
  --border: #2a2a4a;
  --border-light: #1e1e38;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* RTL support for Arabic */
[dir="rtl"] {
  text-align: right;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo .logo-accent {
  color: var(--accent);
}

.site-logo:hover {
  color: var(--text-primary);
}

/* Ticker bar */
.ticker-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  overflow: hidden;
}

.ticker-content {
  display: flex;
  gap: 2rem;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
}

.ticker-item .up { color: var(--green); }
.ticker-item .down { color: var(--red); }
.ticker-item small { font-size: 0.7rem; opacity: 0.85; }

/* Main nav */
.main-nav {
  border-top: 1px solid var(--border-light);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-list a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Header controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.theme-toggle:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.lang-selector {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  cursor: pointer;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ============================================
   HERO SECTION (Homepage)
   ============================================ */
.hero-section {
  padding: 2rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--gap);
}

.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  min-height: 400px;
}

.hero-main .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-main .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
}

.hero-main .hero-category {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.hero-main .hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.hero-main .hero-excerpt {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.5;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.hero-sidebar-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  flex: 1;
  min-height: 185px;
}

.hero-sidebar-card .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}

.hero-sidebar-card .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
}

.hero-sidebar-card .hero-category {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-sidebar-card .hero-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  font-family: var(--font-serif);
}

/* ============================================
   ARTICLE CARDS & GRID
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 3rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.article-card .card-body {
  padding: 1.25rem;
}

.article-card .card-category {
  display: inline-block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.article-card .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-serif);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .card-title a {
  color: inherit;
}

.article-card .card-title a:hover {
  color: var(--accent);
}

.article-card .card-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.article-card .card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-card .card-meta time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Horizontal card variant (for list views) */
.article-card-horizontal {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: var(--gap);
}

.article-card-horizontal:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-card-horizontal .card-image {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.article-card-horizontal .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Small card (sidebar) */
.article-card-small {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.article-card-small:last-child {
  border-bottom: none;
}

.article-card-small .card-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  min-width: 2rem;
}

.article-card-small .card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.article-card-small .card-title a {
  color: inherit;
}

.article-card-small .card-title a:hover {
  color: var(--accent);
}

.article-card-small .card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================
   CONTENT LAYOUT (Two columns)
   ============================================ */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  padding: 2rem 0;
}

.content-main {
  min-width: 0;
}

.content-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: var(--gap);
}

.sidebar-widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

/* ============================================
   SINGLE ARTICLE
   ============================================ */
.article-header {
  padding: 2rem 0 1rem;
  max-width: 800px;
}

.article-header .article-category {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.article-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  font-family: var(--font-serif);
  margin-bottom: 1rem;
}

.article-header .article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.article-header .article-meta .separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.article-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.article-content {
  max-width: 800px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-content h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.article-content h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content code {
  background: var(--bg-tertiary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.article-content pre {
  background: var(--bg-secondary);
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-content pre code {
  background: none;
  padding: 0;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Disclaimer box */
.disclaimer-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* Share buttons */
.share-buttons {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.85; color: #fff; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.telegram { background: #0088cc; }
.share-btn.copy { background: var(--bg-tertiary); color: var(--text-secondary); }

/* ============================================
   INLINE AFFILIATE CTAs (mid-article)
   ============================================ */
.inline-cta {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inline-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.inline-cta-binance {
  background: linear-gradient(135deg, rgba(243, 186, 47, 0.08), rgba(243, 186, 47, 0.03));
  border: 1px solid rgba(243, 186, 47, 0.25);
}

.inline-cta-coinbase {
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.08), rgba(0, 82, 255, 0.03));
  border: 1px solid rgba(0, 82, 255, 0.25);
}

[data-theme="dark"] .inline-cta-binance {
  background: linear-gradient(135deg, rgba(243, 186, 47, 0.12), rgba(243, 186, 47, 0.04));
  border-color: rgba(243, 186, 47, 0.3);
}

[data-theme="dark"] .inline-cta-coinbase {
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.12), rgba(0, 82, 255, 0.04));
  border-color: rgba(0, 82, 255, 0.3);
}

.inline-cta-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.inline-cta-body {
  flex: 1;
}

.inline-cta-text {
  margin: 0 0 0.75rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.inline-cta-text strong {
  color: var(--text-primary);
}

.inline-cta-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.inline-cta-binance .inline-cta-btn {
  background: #f3ba2f;
  color: #1a1a2e;
}

.inline-cta-binance .inline-cta-btn:hover {
  background: #d4a227;
  color: #1a1a2e;
  transform: translateY(-1px);
}

.inline-cta-coinbase .inline-cta-btn {
  background: #0052ff;
  color: #fff;
}

.inline-cta-coinbase .inline-cta-btn:hover {
  background: #0040cc;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .inline-cta {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }
}

/* Tags */
.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag:hover {
  background: var(--accent);
  color: #fff;
}

/* Related articles */
.related-articles {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2rem;
}

/* ============================================
   CTA / AFFILIATE BOX
   ============================================ */
.affiliate-box {
  background: linear-gradient(135deg, var(--accent), #4a3fb5);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: #fff;
  text-align: center;
}

.affiliate-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.affiliate-box p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.affiliate-box .cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.affiliate-box .cta-btn:hover {
  transform: scale(1.05);
  color: var(--accent);
}

/* ============================================
   GUIDE CTA BOX
   ============================================ */
.guide-cta-box {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: #fff;
  text-align: center;
}

.guide-cta-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.guide-cta-box p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.guide-cta-box .cta-btn {
  display: inline-block;
  background: #fff;
  color: #d97706;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.guide-cta-box .cta-btn:hover {
  transform: scale(1.05);
  color: #d97706;
}

.inline-guide-cta {
  background: var(--bg-secondary);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.inline-guide-cta a {
  color: #d97706;
  font-weight: 600;
}

.inline-guide-cta a:hover {
  text-decoration: underline;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}

.pagination a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.pagination a:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

.pagination .active {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-about .footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer-about .footer-logo .logo-accent {
  color: var(--accent);
}

.footer-about p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

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

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem 0 0;
  font-style: italic;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  padding: 0.75rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .separator {
  margin: 0 0.4rem;
}

/* ============================================
   AD SLOTS
   ============================================ */
.ad-slot {
  background: var(--bg-tertiary);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 1.5rem 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-main {
    min-height: 300px;
  }

  .hero-sidebar {
    flex-direction: row;
  }

  .hero-sidebar-card {
    min-height: 150px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-card-horizontal {
    grid-template-columns: 1fr;
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav .nav-list {
    display: none;
    flex-direction: column;
  }

  .main-nav .nav-list.open {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --gap: 1rem;
  }

  .hero-sidebar {
    flex-direction: column;
  }

  .site-logo {
    font-size: 1.25rem;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
