/* ===========================================================================
   Easy Giveaway — Blog / "Instagram Growth Course" styles
   Extends the site design system in /styles.css (same tokens, font, blobs).
   WHY a separate file: keeps the landing page CSS untouched; the blog is a new
   section with its own layout needs (article typography, lesson nav, cards).
   =========================================================================== */

:root {
  --blue-deep: #1565D8;
  --blue-main: #2E7CF6;
  --blue-bright: #4A9AFF;
  --blue-pale: #E8F1FE;
  --gold: #FFD233;
  --white: #FFFFFF;
  --off-white: #F6F9FE;
  --text-dark: #0B1A33;
  --text-muted: #4A6080;
  --border-soft: rgba(46, 124, 246, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* drifting background blobs — same feel as the landing page */
.bg-wrapper { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-blob-1 {
  position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(46,124,246,.07) 0%, transparent 70%);
  border-radius: 50%;
}
.bg-blob-2 {
  position: absolute; bottom: -25%; left: -15%; width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(74,154,255,.05) 0%, transparent 70%);
  border-radius: 50%;
}

/* ---------- top nav ---------- */
.site-nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 920px; margin: 0 auto; padding: 20px 24px;
}
.site-nav .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; color: var(--text-dark); text-decoration: none; font-size: 1.05rem;
  letter-spacing: -.01em;
}
.site-nav .brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav .nav-links a {
  color: var(--text-muted); text-decoration: none; font-weight: 600;
  font-size: .9rem; margin-left: 20px;
}
.site-nav .nav-links a:hover { color: var(--blue-main); }

/* ---------- shared wrappers ---------- */
.wrap { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 0 24px; }
.article-wrap { max-width: 720px; }

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: .8rem; color: var(--text-muted); margin: 24px 0 8px; }
.breadcrumb a { color: var(--blue-main); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: rgba(74,96,128,.5); margin: 0 6px; }

/* =========================================================================
   BLOG / COURSE INDEX
   ========================================================================= */
.blog-hero { text-align: center; padding: 48px 24px 16px; position: relative; z-index: 1; }
.blog-hero .eyebrow {
  font-size: .8rem; font-weight: 700; color: var(--blue-main);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px;
}
.blog-hero h1 {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.12;
  max-width: 720px; margin: 0 auto 16px;
}
.blog-hero p {
  font-size: 1.08rem; color: var(--text-muted); max-width: 600px; margin: 0 auto;
}

.module {
  position: relative; z-index: 1; max-width: 920px; margin: 40px auto 0; padding: 0 24px;
}
.module-head { margin-bottom: 18px; }
.module-head .module-tag {
  font-size: .78rem; font-weight: 700; color: var(--blue-main);
  letter-spacing: .08em; text-transform: uppercase;
}
.module-head h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px;
}
.lesson-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-soft); box-shadow: 0 2px 14px rgba(11,26,51,.05);
  text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease;
}
.lesson-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(21,101,216,.12); }
.lesson-card .thumb {
  aspect-ratio: 16/9; background: linear-gradient(135deg, var(--blue-pale), #fff);
  width: 100%; object-fit: cover; display: block;
}
.lesson-card .card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lesson-card .lesson-num {
  font-size: .72rem; font-weight: 700; color: var(--blue-main);
  letter-spacing: .06em; text-transform: uppercase;
}
.lesson-card h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.lesson-card p { font-size: .88rem; color: var(--text-muted); }
.lesson-card .read-time { margin-top: auto; font-size: .78rem; color: var(--text-muted); font-weight: 500; }

/* =========================================================================
   ARTICLE PAGE
   ========================================================================= */
.article-header { padding-top: 8px; }
.article-header .kicker {
  font-size: .82rem; font-weight: 700; color: var(--blue-main);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px;
}
.article-header h1 {
  font-size: 2.1rem; font-weight: 800; line-height: 1.18; letter-spacing: -.025em; margin-bottom: 14px;
}
.article-meta { font-size: .85rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 8px 14px; }
.article-meta .updated { color: var(--blue-deep); font-weight: 600; }

.hero-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 18px;
  margin: 22px 0 8px; background: linear-gradient(135deg, var(--blue-pale), #fff);
  box-shadow: 0 14px 40px rgba(21,101,216,.12);
}

.article-body { font-size: 1.06rem; color: #1a2c47; }
.article-body p { margin: 18px 0; }
.article-body h2 {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 36px 0 10px; line-height: 1.25;
}
.article-body h3 { font-size: 1.18rem; font-weight: 700; margin: 26px 0 8px; }
.article-body ul, .article-body ol { margin: 16px 0 16px 22px; }
.article-body li { margin: 8px 0; }
.article-body a { color: var(--blue-deep); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(21,101,216,.3); }
.article-body a:hover { border-bottom-color: var(--blue-deep); }
.article-body strong { color: var(--text-dark); font-weight: 700; }
.article-body blockquote {
  margin: 22px 0; padding: 16px 20px; background: var(--blue-pale);
  border-left: 4px solid var(--blue-main); border-radius: 0 12px 12px 0;
  font-style: italic; color: #1a2c47;
}

/* "key takeaway" callout */
.callout {
  margin: 26px 0; padding: 18px 22px; background: #FFF9E6;
  border: 1px solid rgba(255,210,51,.5); border-radius: 14px; font-size: .98rem;
}
.callout strong { color: var(--text-dark); }

/* example post mockup box (used in the giveaway-post lessons) */
.post-mock {
  margin: 24px 0; padding: 20px 22px; background: var(--white);
  border: 1px solid var(--border-soft); border-radius: 14px;
  box-shadow: 0 4px 18px rgba(11,26,51,.05); white-space: pre-line;
  font-size: .96rem; color: #1a2c47;
}

/* ---------- App CTA box ---------- */
.app-cta {
  margin: 34px 0; padding: 26px 24px; border-radius: 18px; text-align: center;
  background: linear-gradient(135deg, #2E7CF6 0%, #1565D8 100%);
  color: #fff; box-shadow: 0 16px 40px rgba(21,101,216,.28);
}
.app-cta h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; }
.app-cta p { color: rgba(255,255,255,.92); font-size: .96rem; margin-bottom: 16px; }
.app-cta .cta-rating { font-size: .82rem; color: rgba(255,255,255,.85); margin-top: 12px; }
.app-cta .cta-rating .stars { color: var(--gold); letter-spacing: 2px; }
.app-cta .store-badge img { height: 50px; width: auto; }
.app-cta .store-badge { display: inline-block; transition: transform .2s ease; }
.app-cta .store-badge:hover { transform: scale(1.05); }

/* ---------- lesson prev/next nav ---------- */
.lesson-nav {
  display: flex; gap: 14px; margin: 40px 0 8px; flex-wrap: wrap;
}
.lesson-nav a {
  flex: 1; min-width: 200px; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--border-soft); border-radius: 14px;
  padding: 14px 18px; transition: box-shadow .2s ease, transform .2s ease;
}
.lesson-nav a:hover { box-shadow: 0 8px 24px rgba(21,101,216,.1); transform: translateY(-2px); }
.lesson-nav .dir { font-size: .72rem; font-weight: 700; color: var(--blue-main); text-transform: uppercase; letter-spacing: .06em; }
.lesson-nav .ttl { font-size: .95rem; font-weight: 700; margin-top: 4px; }
.lesson-nav a.next { text-align: right; }

/* ---------- related links ---------- */
.related { margin: 36px 0 0; padding: 22px 24px; background: var(--white); border: 1px solid var(--border-soft); border-radius: 16px; }
.related h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }
.related ul { list-style: none; }
.related li { margin: 8px 0; }
.related a { color: var(--blue-deep); text-decoration: none; font-weight: 600; }
.related a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 1; text-align: center;
  padding: 40px 24px; color: var(--text-muted); font-size: .78rem; line-height: 1.7;
  margin-top: 40px; border-top: 1px solid var(--border-soft);
}
.footer a { color: var(--blue-main); text-decoration: none; font-weight: 500; }
.footer a:hover { text-decoration: underline; }
.footer-links { margin-bottom: 8px; }
.footer-links a { margin: 0 8px; }
.footer-sep { color: rgba(74,96,128,.3); }

/* ---------- RTL (Arabic /ar/blog/) ---------- */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .breadcrumb,
html[dir="rtl"] .article-header,
html[dir="rtl"] .article-body,
html[dir="rtl"] .blog-hero,
html[dir="rtl"] .module-head { text-align: right; }
html[dir="rtl"] .article-body ul,
html[dir="rtl"] .article-body ol { margin: 16px 22px 16px 0; }
html[dir="rtl"] .article-body blockquote { border-left: none; border-right: 4px solid var(--blue-main); border-radius: 12px 0 0 12px; }
html[dir="rtl"] .lesson-nav a.next { text-align: left; }
html[dir="rtl"] .lesson-nav a.prev { text-align: right; }
html[dir="rtl"] .app-cta { text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 767px) {
  .blog-hero h1 { font-size: 1.8rem; }
  .article-header h1 { font-size: 1.7rem; }
  .article-body { font-size: 1.02rem; }
  .lesson-nav a.next { text-align: left; }
}
