/* ═══════════════════════════════════════════════════════════
   Afsaneh Moayedzadeh — Shared Blog Styles (EN + FA)
   Used by /blog/ and /fa/blog/ listing + article pages.
═══════════════════════════════════════════════════════════ */
:root {
  --deep-navy: #1B2A4A;
  --navy:      #243a60;
  --gold:      #C9A84C;
  --gold-light:#E8D5A3;
  --teal:      #1A6B72;
  --teal-light:#E0F4F5;
  --cream:     #FAF7F2;
  --white:     #ffffff;
  --text-dark: #0D1A30;
  --text-mid:  #3a4a6a;
  --text-light:#8899bb;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 32px rgba(13,26,48,.10);
  --shadow-lg: 0 12px 64px rgba(13,26,48,.16);
  --transition:.35s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: 'Vazirmatn', 'Inter', sans-serif; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style-position: inside; }

.container { max-width: 860px; margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ─── Navbar ─────────────────────────────────────────────── */
.blog-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(27,42,74,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,168,76,.18);
}
.blog-nav .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.blog-nav .nav-logo { display: flex; align-items: center; gap: 12px; color: var(--white); }
.blog-nav .nav-logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.blog-nav .nav-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.blog-nav .nav-name span { display: block; font-family: 'Inter', sans-serif; font-weight: 400; font-size: .68rem; color: var(--gold-light); letter-spacing: .04em; margin-top: 3px; }
.blog-nav .nav-actions { display: flex; align-items: center; gap: 20px; }
.blog-nav .nav-actions a { color: var(--gold-light); font-size: .86rem; font-weight: 500; transition: color var(--transition); }
.blog-nav .nav-actions a:hover { color: var(--white); }
.blog-nav .nav-actions .lang-link {
  border: 1px solid rgba(201,168,76,.4);
  border-radius: 50px; padding: 7px 16px; color: var(--gold);
}
.blog-nav .nav-actions .lang-link:hover { border-color: var(--gold); background: rgba(201,168,76,.1); }

/* ─── Blog listing header ────────────────────────────────── */
.blog-hero {
  background: linear-gradient(160deg, var(--deep-navy), var(--navy));
  color: var(--white);
  padding: 78px 0 66px;
  text-align: center;
  position: relative; overflow: hidden;
}
.blog-hero .section-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.15;
}
.blog-hero p {
  max-width: 560px; margin: 18px auto 0;
  color: rgba(255,255,255,.78); font-size: 1.02rem;
}
.blog-hero .gold-rule { display: block; width: 56px; height: 3px; background: var(--gold); border-radius: 2px; margin: 22px auto 0; }

/* ─── Post grid ──────────────────────────────────────────── */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px; padding: 64px 0 40px;
}
.post-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgba(13,26,48,.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-cat {
  align-self: flex-start;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-light);
  padding: 5px 12px; border-radius: 50px; margin-bottom: 16px;
}
.post-card h2 {
  font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700;
  color: var(--navy); line-height: 1.3; margin-bottom: 12px;
}
.post-card p { color: var(--text-mid); font-size: .93rem; margin-bottom: 20px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: .78rem; color: var(--text-light); }
.post-meta .read-more { margin-inline-start: auto; color: var(--gold); font-weight: 600; }

/* ─── Article page ───────────────────────────────────────── */
.article-hero {
  background: linear-gradient(160deg, var(--deep-navy), var(--navy));
  color: var(--white); padding: 72px 0 56px;
}
.article-hero .post-cat { color: var(--gold); background: rgba(201,168,76,.15); }
.article-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 700; line-height: 1.2;
  margin: 18px 0 20px;
}
.article-hero .article-meta { display: flex; gap: 16px; align-items: center; font-size: .86rem; color: rgba(255,255,255,.7); }
.article-hero .article-meta .author { display: flex; align-items: center; gap: 10px; }
.article-hero .article-meta .author img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }

.article-body { padding: 56px 0 40px; font-size: 1.06rem; color: var(--text-dark); }
.article-body > * + * { margin-top: 1.35em; }
.article-body h2 {
  font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--navy);
  margin-top: 1.8em; line-height: 1.3;
}
.article-body h3 { font-size: 1.25rem; color: var(--navy); margin-top: 1.5em; font-weight: 700; }
.article-body p { color: var(--text-mid); }
.article-body ul, .article-body ol { color: var(--text-mid); padding-inline-start: 1.3em; }
.article-body li { margin-top: .5em; }
.article-body strong { color: var(--text-dark); }
.article-body blockquote {
  border-inline-start: 3px solid var(--gold);
  padding: 6px 0 6px 20px; padding-inline-start: 20px;
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.2rem; color: var(--navy);
}
[dir="rtl"] .article-body blockquote { padding: 6px 20px 6px 0; }
.article-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* ─── Article footer CTA ─────────────────────────────────── */
.article-cta {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-lg); padding: 44px 40px; margin: 24px 0 0;
  text-align: center;
}
.article-cta h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 12px; }
.article-cta p { color: rgba(255,255,255,.78); max-width: 460px; margin: 0 auto 24px; }
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--deep-navy);
  padding: 13px 30px; border-radius: 50px;
  font-weight: 600; font-size: .9rem; transition: transform var(--transition), box-shadow var(--transition);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.35); }

.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-light); font-size: .88rem; margin-bottom: 4px; transition: color var(--transition); }
.back-link:hover { color: var(--gold); }

/* ─── Footer ─────────────────────────────────────────────── */
.blog-footer { background: var(--deep-navy); color: rgba(255,255,255,.7); padding: 40px 0; margin-top: 64px; text-align: center; font-size: .84rem; }
.blog-footer a { color: var(--gold-light); }

.empty-state { text-align: center; padding: 80px 0; color: var(--text-light); }

@media (max-width: 560px) {
  .blog-nav .nav-name span { display: none; }
  .article-cta { padding: 36px 24px; }
}
