/* ===============================================================
   SocialLife Diary — content.css
   Shared styles for editorial pages (articles + quiz)
   Warm light theme consistent with the main landing page.
   =============================================================== */

/* --- Design tokens (mirrors style.css) --- */
:root {
  --bg:          #FFF8F0;
  --bg-2:        #F7EEE3;
  --surface:     #ffffff;
  --surface2:    #F7EEE3;
  --border:      rgba(61, 26, 94, 0.1);
  --accent:      #CC44FF;
  --accent-pink: #FF44AA;
  --accent-dim:  rgba(204, 68, 255, 0.08);
  --text:        #1A0A2E;
  --muted:       #7B5F99;
  --soft:        #4A2E6E;
  --dark:        #130A24;
  --purple-mid:  #7B4DB0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===============================================================
   TOP NAV — fixed, cream, blur backdrop
   =============================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(61, 26, 94, 0.07);
}

.site-nav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav-logo {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav-btn {
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.site-nav-btn:hover { background: #3D1A5E; }

/* ===============================================================
   PAGE CONTAINER
   =============================================================== */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px 100px;  /* 80px top to clear fixed nav */
  position: relative;
  z-index: 1;
}

/* ===============================================================
   BREADCRUMB NAV
   =============================================================== */
nav.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 48px;
  animation: fadeUp 0.6s ease both;
  flex-wrap: wrap;
}

nav.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

nav.breadcrumb a:hover { color: var(--accent); }
nav.breadcrumb span { opacity: 0.45; }

/* ===============================================================
   ARTICLE HEADER
   =============================================================== */
header {
  margin-bottom: 48px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.9;
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

h1 em { font-style: italic; color: var(--accent); }

.lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--soft);
  max-width: 560px;
}

.meta {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}

.divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 32px 0;
  opacity: 0.35;
}

/* ===============================================================
   ARTICLE BODY TYPOGRAPHY
   =============================================================== */
.article-body { animation: fadeUp 0.7s 0.2s ease both; }

p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--soft);
  margin-bottom: 20px;
}

strong { color: var(--text); font-weight: 500; }

h2 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 44px 0 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h2 em { font-style: italic; color: var(--accent); }

h3 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin: 32px 0 12px;
}

/* ===============================================================
   CALLOUT (block quote style)
   =============================================================== */
.callout {
  background: #FFF0FB;
  border: 1px solid rgba(204, 68, 255, 0.13);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.callout p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--text);
  margin: 0;
  line-height: 1.65;
  font-weight: 400;
}

/* ===============================================================
   KEY POINT (highlight box)
   =============================================================== */
.key-point {
  background: #EEE0FF;
  border: 1px solid rgba(124, 77, 176, 0.18);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.key-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

.key-point p {
  font-size: 14px;
  color: var(--text);
  margin: 0;
  line-height: 1.65;
}

/* ===============================================================
   FURTHER LISTENING
   =============================================================== */
.listening-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.85;
}

.podcast-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 10px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.podcast-card:hover {
  border-color: rgba(204, 68, 255, 0.28);
  box-shadow: 0 4px 20px rgba(61, 26, 94, 0.07);
}

.podcast-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EEE0FF;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.podcast-info { flex: 1; min-width: 0; }

.podcast-show {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 4px;
}

.podcast-title {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.podcast-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ===============================================================
   RELATED ARTICLES
   =============================================================== */
.related-articles {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.related-card:hover {
  border-color: rgba(204, 68, 255, 0.28);
  box-shadow: 0 4px 20px rgba(61, 26, 94, 0.07);
}

.related-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-mid);
}

.related-title {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

.related-read {
  font-size: 11px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 4px;
}

/* ===============================================================
   CTA CARD — magenta, bold, end-of-article
   =============================================================== */
.cta-card {
  background: var(--accent);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.cta-card::before {
  content: '';
  position: absolute;
  top: -70px; right: -70px;
  width: 220px; height: 220px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -40px;
  width: 160px; height: 160px;
  background: rgba(255, 68, 170, 0.25);
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
}

.cta-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.cta-title em { font-style: italic; opacity: 0.9; color: #fff; }

.cta-text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto 22px;
  max-width: 320px;
  position: relative;
  z-index: 1;
}

.btn-cta {
  display: inline-block;
  background: #fff;
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  position: relative;
  z-index: 1;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.btn-cta-ghost {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.btn-cta-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

/* ===============================================================
   FOOTER
   =============================================================== */
footer {
  text-align: center;
  margin-top: 56px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.55;
}

footer a { color: var(--muted); }

/* ===============================================================
   ANIMATIONS
   =============================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===============================================================
   RESPONSIVE
   =============================================================== */
@media (max-width: 480px) {
  .container { padding: 74px 16px 80px; }
  h1 { font-size: 28px; }
}
