/* Kel Sahara — Blog shared styles */
:root {
  --terracotta: #C87941;
  --sand: #F5E6D3;
  --indigo: #2C4A7C;
  --cream: #FFF8F0;
  --gold: #D4A847;
  --text: #2D2D2D;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito Sans', sans-serif; color: var(--text); background: var(--cream); line-height: 1.7; }

/* Header */
.blog-header { background: var(--indigo); padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.blog-header a { color: white; text-decoration: none; font-family: 'Cinzel', serif; font-size: 1.4rem; font-weight: 700; }
.blog-header .back-link { font-family: 'Nunito Sans', sans-serif; font-size: 0.9rem; opacity: 0.85; }
.blog-header .back-link:hover { opacity: 1; }

/* Hero */
.article-hero { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../hero-bg.jpg') center/cover; padding: 5rem 2rem 4rem; text-align: center; color: white; }
.article-hero h1 { font-family: 'Cinzel', serif; font-size: 2.6rem; max-width: 800px; margin: 0 auto 1rem; line-height: 1.2; }
.article-meta { font-size: 0.9rem; opacity: 0.85; }
.article-meta span { margin: 0 0.5rem; }

/* Content */
.article-content { max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem; }
.article-content h2 { font-family: 'Cinzel', serif; color: var(--indigo); font-size: 1.7rem; margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--sand); }
.article-content h3 { color: var(--terracotta); font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin: 0.5rem 0 1.5rem 1.5rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-content strong { color: var(--indigo); }

/* Info box */
.info-box { background: var(--sand); border-left: 4px solid var(--terracotta); padding: 1.2rem 1.5rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0; }
.info-box.tip { border-left-color: var(--gold); background: #FFF8E7; }
.info-box.warning { border-left-color: #CC0000; background: #FFF0F0; }
.info-box strong { display: block; margin-bottom: 0.3rem; }

/* Tables */
.visa-table, .comparison-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.visa-table th, .comparison-table th { background: var(--indigo); color: white; padding: 0.8rem; text-align: left; }
.visa-table td, .comparison-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid #ddd; }
.visa-table tr:nth-child(even), .comparison-table tr:nth-child(even) { background: var(--sand); }
.visa-table tr:hover, .comparison-table tr:hover { background: #EDE0D0; }

/* CTA */
.cta-box { background: var(--indigo); color: white; padding: 2rem; border-radius: 12px; text-align: center; margin: 2.5rem 0; }
.cta-box h3 { font-family: 'Cinzel', serif; font-size: 1.5rem; margin-bottom: 0.8rem; color: white; }
.cta-box p { opacity: 0.9; margin-bottom: 1.2rem; }
.cta-btn { display: inline-block; background: var(--terracotta); color: white; padding: 0.8rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 600; transition: background 0.3s; }
.cta-btn:hover { background: #B5683A; }

/* Footer */
.blog-footer { background: var(--indigo); color: white; padding: 2rem; text-align: center; font-size: 0.85rem; opacity: 0.8; }
.blog-footer a { color: var(--gold); text-decoration: none; }

/* Language bar */
.lang-bar { background: var(--sand); padding: 0.5rem 2rem; font-size: 0.85rem; text-align: right; }
.lang-bar a { color: var(--indigo); text-decoration: none; font-weight: 600; margin-left: 0.5rem; }
.lang-bar a:hover { color: var(--terracotta); }
.lang-bar a.active { color: var(--terracotta); border-bottom: 2px solid var(--terracotta); }

/* Responsive */
@media (max-width: 768px) {
  .article-hero h1 { font-size: 1.8rem; }
  .article-hero { padding: 3rem 1rem 2.5rem; }
  .visa-table, .comparison-table { font-size: 0.8rem; }
  .visa-table th, .visa-table td, .comparison-table th, .comparison-table td { padding: 0.5rem; }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1A1F2B;
    --sand: #2A2F3A;
    --indigo: #C8BFB2;
    --text: #E8E0D6;
    --gold: #D4A843;
    --terracotta: #C87941;
  }
  body { background: #1A1F2B; color: #E8E0D6; }
  .blog-header { background: #111820; }
  .blog-footer { background: #0D1117; }
  .lang-bar { background: #222830; }
  .lang-bar a { color: #C8BFB2; }
  .info-box { background: #252A35; }
  .info-box.tip { background: #2A2820; }
  .info-box.warning { background: #2A2025; }
  .visa-table th, .comparison-table th { background: #333A45; }
  .visa-table tr:nth-child(even), .comparison-table tr:nth-child(even) { background: #222830; }
  .visa-table tr:hover, .comparison-table tr:hover { background: #2A3040; }
  .visa-table td, .comparison-table td { border-bottom-color: #333A45; }
  .cta-box { background: #333A45; }
  .article-content strong { color: var(--gold); }
  .article-content h2 { border-bottom-color: #333A45; }
  img { filter: brightness(0.9); }
}
