/* ============================================
   SOULSPACE - MASTER STYLESHEET
   Self-Transcendence Article
   Fully Responsive | Clean | Deduplicated
   ============================================ */

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sage-green: #7c9a6e;
  --warm-gold: #c9a87b;
  --deep-earth: #6b4c3b;
  --soft-sand: #fdf8f0;
  --warm-stone: #e8dfd3;
  --dusk-purple: #8b7a6b;
  --border-warm: #e2d5c5;
  --shadow-soft: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --container-width: 1280px;
  --content-width: 720px;
}

body {
  background: var(--soft-sand);
  font-family: var(--font-sans);
  color: #2d2b28;
  line-height: 1.65;
  font-size: 18px;
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* ===== HEADER ===== */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e0d6cc;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--deep-earth);
  text-decoration: none;
}

.logo span {
  color: var(--sage-green);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #5f4e44;
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 1rem;
}

.nav-links a:hover {
  color: var(--sage-green);
}

/* ===== CONTAINER & GRID ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.article-grid {
  display: flex;
  gap: 3rem;
  margin: 2rem 0 3rem;
  flex-wrap: wrap;
}

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

.sidebar {
  flex: 1;
  min-width: 280px;
}

/* ===== TYPOGRAPHY ===== */
.breadcrumb {
  margin: 1rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--dusk-purple);
}

h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep-earth);
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1rem;
}

.subhead {
  font-size: 1.4rem;
  color: #7a685b;
  font-style: italic;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--warm-gold);
  padding-left: 1.2rem;
}

.meta {
  display: flex;
  gap: 1.8rem;
  font-size: 0.9rem;
  color: #9a8a7a;
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
  padding: 0.8rem 0;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap;
}

h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 2rem 0 1rem;
  color: var(--deep-earth);
  font-weight: 600;
}

h3 {
  font-weight: 600;
  font-size: 1.3rem;
  margin: 1.5rem 0 0.8rem;
  color: var(--sage-green);
}

p {
  margin-bottom: 1.3rem;
  color: #3e3a36;
}

/* ===== IMAGES ===== */
.hero-img {
  width: 100%;
  border-radius: 32px;
  object-fit: cover;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-soft);
}

/* ===== REFLECTION PAUSE ===== */
.reflection-pause {
  background: linear-gradient(135deg, #fef7ec 0%, #faf0e2 100%);
  border-radius: 32px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 8px solid var(--warm-gold);
  transition: all 0.3s ease;
}

.reflection-pause:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.pause-question {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--deep-earth);
}

.pause-question i {
  color: var(--warm-gold);
  font-size: 1.5rem;
}

.reflection-box {
  background: white;
  border-radius: 28px;
  padding: 1.8rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-warm);
}

.btn-subtle {
  background: transparent;
  border: 2px solid var(--sage-green);
  padding: 0.7rem 1.5rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  margin-top: 1rem;
  color: var(--sage-green);
  font-family: var(--font-sans);
}

.btn-subtle:hover {
  background: var(--sage-green);
  color: white;
  transform: translateY(-2px);
}

/* ===== EXPERT QUOTE ===== */
.expert-quote {
  background: #f5efe8;
  border-radius: 32px;
  padding: 2rem;
  margin: 2rem 0;
}

.expert-quote p {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--deep-earth);
}

.quote-context {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--dusk-purple);
}

/* ===== INTERNAL LINKS ===== */
.internal-link {
  background: #f0eae2;
  border-radius: 40px;
  padding: 0.2rem 1rem;
  text-decoration: none;
  color: var(--deep-earth);
  font-weight: 500;
  transition: 0.2s;
  display: inline-block;
  margin: 0.2rem 0;
}

.internal-link i {
  margin-right: 0.4rem;
}

.internal-link:hover {
  background: var(--sage-green);
  color: white;
}

/* ===== FAQ ===== */
.faq-section {
  background: #fef7ec;
  border-radius: 28px;
  padding: 1.8rem;
  margin: 2rem 0;
}

.faq-item {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-warm);
}

.faq-item strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--deep-earth);
}

/* ===== ANONYMOUS RESPONSE ===== */
.anonymous-response {
  background: #fef7ec;
  border-radius: 28px;
  padding: 1.8rem;
  margin: 2rem 0;
}

/* ===== AUTHOR BIO ===== */
.author-bio {
  display: flex;
  gap: 1.5rem;
  background: white;
  border-radius: 28px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--border-warm);
  align-items: flex-start;
}

.author-avatar {
  font-size: 3rem;
  background: #f5efe8;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-info h4 {
  color: var(--deep-earth);
  margin-bottom: 0.3rem;
}

.author-info p {
  font-size: 0.9rem;
  color: #5a4e44;
  margin-bottom: 0.5rem;
}

.author-credentials {
  font-size: 0.8rem;
  color: var(--dusk-purple);
}

/* ===== DISCLAIMER ===== */
.disclaimer-box {
  max-width: var(--content-width);
  margin: 0 auto 2rem auto;
  background: #f9f7f4;
  border: 1px solid #e2ddd5;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  font-size: 0.9rem;
  color: #5d5d5d;
  text-align: center;
}

/* ===== REFERENCES ===== */
.references-section {
  margin: 3rem 0 2rem;
  background: white;
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid var(--border-warm);
}

.references-section ol {
  padding-left: 1.5rem;
  line-height: 1.8;
}

.references-section li {
  margin-bottom: 1rem;
}

.fair-use {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-warm);
  font-size: 0.85rem;
  color: #9a8a7a;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* ===== RECOMMENDATIONS & RELATED ===== */
.recommendations-section {
  margin: 2rem 0;
  background: #f5efe8;
  border-radius: 28px;
  padding: 2rem;
}

.related-articles-section {
  margin: 3rem 0 2rem;
  background: #fff9f2;
  border-radius: 28px;
  padding: 2rem;
}

.section-title-sm {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--deep-earth);
}

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

.related-card {
  background: white;
  border-radius: 20px;
  padding: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-warm);
  cursor: pointer;
}

.related-card:hover {
  transform: translateY(-5px);
  border-color: var(--sage-green);
  box-shadow: var(--shadow-soft);
}

.related-card a {
  text-decoration: none;
  font-weight: 600;
  color: var(--deep-earth);
  display: block;
  margin-bottom: 0.5rem;
}

.related-card a i {
  margin-right: 0.5rem;
  color: var(--warm-gold);
}

.related-card p {
  font-size: 0.85rem;
  color: #7a6b5e;
  margin-bottom: 0;
}

/* ===== RECOMMENDATION ENGINE ===== */
.recommendations-section {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  background: #fafafa;
  border-radius: 24px;
  padding: 2rem;
}

.recommendations-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  text-align: center;
  position: relative;
}

.recommendations-section h3:after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #6c5ce7;
  margin: 12px auto 0;
  border-radius: 2px;
}

#development-recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .recommendations-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  #development-recommendations {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .recommendations-section h3 {
    font-size: 1.25rem;
  }
}

/* ===== SIDEBAR ===== */
.sidebar-newsletter {
  background: linear-gradient(145deg, var(--deep-earth), #5a3f32);
  color: white;
  border-radius: 28px;
  padding: 1.8rem;
  margin-bottom: 2rem;
}

.sidebar-newsletter h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.sidebar-newsletter input {
  width: 100%;
  padding: 0.9rem;
  border-radius: 60px;
  border: none;
  margin: 0.8rem 0;
  font-size: 0.95rem;
}

.sidebar-newsletter button {
  background: var(--warm-gold);
  border: none;
  padding: 0.9rem;
  width: 100%;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  color: var(--deep-earth);
  transition: all 0.3s ease;
}

.sidebar-newsletter button:hover {
  background: var(--sage-green);
  color: white;
}

.sidebar-module {
  background: white;
  border-radius: 28px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-warm);
}

.sidebar-module h4 {
  margin-bottom: 1rem;
  color: var(--deep-earth);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.table-of-contents ul {
  list-style: none;
}

.table-of-contents li {
  margin-bottom: 0.8rem;
}

.table-of-contents a {
  text-decoration: none;
  color: #5a4e44;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s;
}

.table-of-contents a:hover {
  color: var(--sage-green);
}

.progress-tracker label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: #5a4e44;
}

.small-save {
  margin-top: 1rem;
  background: var(--warm-stone);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  transition: all 0.2s;
}

.small-save:hover {
  background: var(--warm-gold);
  color: white;
}

/* ============================================
   UNIQUE ELEMENTS
   ============================================ */

/* ----- READING MODE SELECTOR ----- */
.reading-mode-selector {
  display: flex;
  gap: 0.8rem;
  margin: 1.5rem 0 1rem;
  flex-wrap: wrap;
  background: white;
  padding: 0.8rem 1.2rem;
  border-radius: 60px;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-soft);
}

.reading-mode-selector .mode-label {
  font-size: 0.8rem;
  color: var(--dusk-purple);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.mode-btn {
  padding: 0.4rem 1.4rem;
  border-radius: 40px;
  border: 2px solid var(--border-warm);
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  color: var(--deep-earth);
  font-family: var(--font-sans);
}

.mode-btn:hover {
  border-color: var(--sage-green);
  background: #f5f8f0;
}

.mode-btn.active {
  background: var(--sage-green);
  border-color: var(--sage-green);
  color: white;
}

.mode-btn .mode-icon {
  margin-right: 0.4rem;
}

/* ----- READING MODE CONTENT ----- */
.essentials-only-content {
  display: none;
}

.full-depth-only-content {
  display: block;
}

body.reading-mode-essentials .full-depth-only-content {
  display: none !important;
}

body.reading-mode-essentials .essentials-only-content {
  display: block !important;
}

body.reading-mode-full .essentials-only-content {
  display: none !important;
}

body.reading-mode-full .full-depth-only-content {
  display: block !important;
}

/* ----- MOOD TRACKER ----- */
.mood-tracker {
  background: white;
  border-radius: 28px;
  padding: 1.8rem 2rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-soft);
}

.mood-tracker h4 {
  font-family: var(--font-serif);
  color: var(--deep-earth);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mood-tracker .mood-sub {
  font-size: 0.85rem;
  color: var(--dusk-purple);
  margin-bottom: 1rem;
}

.mood-tracker .slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mood-tracker input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: var(--border-warm);
  outline: none;
  transition: background 0.3s;
}

.mood-tracker input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sage-green);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mood-tracker input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sage-green);
  cursor: pointer;
  border: 2px solid white;
}

.mood-tracker .mood-value {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  color: var(--deep-earth);
  font-size: 1.1rem;
}

.mood-tracker .mood-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--dusk-purple);
  padding: 0 0.2rem;
  margin-top: 0.2rem;
}

.mood-tracker .mood-compare {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: #f5f8f0;
  border-radius: 16px;
  font-size: 0.9rem;
  color: var(--deep-earth);
  display: none;
}

.mood-tracker .mood-compare.show {
  display: block;
}

.mood-tracker .mood-compare .shift-positive {
  color: var(--sage-green);
  font-weight: 600;
}

.mood-tracker .mood-compare .shift-negative {
  color: #c17b5e;
  font-weight: 600;
}

.mood-tracker .btn-save-mood {
  background: var(--sage-green);
  border: none;
  padding: 0.5rem 1.8rem;
  border-radius: 40px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  font-family: var(--font-sans);
}

.mood-tracker .btn-save-mood:hover {
  background: #6a8a5a;
  transform: translateY(-2px);
}

.mood-tracker .mood-saved {
  color: var(--sage-green);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

/* ----- LIVE POLL ----- */
.live-poll {
  background: white;
  border-radius: 28px;
  padding: 1.8rem 2rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-soft);
}

.live-poll h4 {
  font-family: var(--font-serif);
  color: var(--deep-earth);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.live-poll .poll-sub {
  font-size: 0.85rem;
  color: var(--dusk-purple);
  margin-bottom: 1rem;
}

.poll-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.poll-option {
  background: #f9f7f4;
  border: 2px solid var(--border-warm);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--deep-earth);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.poll-option:hover {
  border-color: var(--sage-green);
  background: #f5f8f0;
}

.poll-option.selected {
  border-color: var(--sage-green);
  background: #e8f0e5;
}

.poll-option .poll-count {
  background: var(--border-warm);
  border-radius: 20px;
  padding: 0.1rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dusk-purple);
}

.poll-option.selected .poll-count {
  background: var(--sage-green);
  color: white;
}

.poll-total {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--dusk-purple);
  text-align: center;
}

/* ----- LETTER FROM FUTURE SELF ----- */
.future-letter {
  background: linear-gradient(145deg, #f5efe8, #faf3ea);
  border-radius: 32px;
  padding: 2.5rem 2.5rem;
  margin: 2rem 0;
  border-left: 8px solid var(--warm-gold);
  font-style: italic;
  position: relative;
}

.future-letter::before {
  content: "✉";
  font-size: 2.5rem;
  position: absolute;
  top: -1.2rem;
  right: 2rem;
  background: white;
  padding: 0.4rem 0.8rem;
  border-radius: 60px;
  box-shadow: var(--shadow-soft);
}

.future-letter .letter-header {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dusk-purple);
  font-style: normal;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.future-letter p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--deep-earth);
  margin-bottom: 0.8rem;
  font-style: italic;
}

.future-letter .letter-signoff {
  font-style: normal;
  font-weight: 600;
  color: var(--sage-green);
  margin-top: 1rem;
}

/* ----- BREAK INTERSTITIAL ----- */
.break-interstitial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 42, 26, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.break-interstitial.show {
  display: flex;
  opacity: 1;
}

.break-interstitial .break-card {
  background: white;
  border-radius: 40px;
  padding: 3rem 3.5rem;
  max-width: 540px;
  width: 100%;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.4s ease;
}

.break-interstitial.show .break-card {
  transform: scale(1);
}

.break-interstitial .break-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--warm-gold);
}

.break-interstitial h3 {
  font-family: var(--font-serif);
  color: var(--deep-earth);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.break-interstitial p {
  color: #5a4e44;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.break-interstitial .btn-continue {
  background: var(--sage-green);
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 60px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.break-interstitial .btn-continue:hover {
  background: #6a8a5a;
  transform: translateY(-2px);
}

/* ----- REACTION BUTTONS ----- */
.reaction-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
}

.reaction-btn {
  padding: 0.6rem 1.6rem;
  border-radius: 60px;
  border: 2px solid var(--border-warm);
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  color: var(--deep-earth);
}

.reaction-btn:hover {
  border-color: var(--sage-green);
  background: #f5f8f0;
  transform: translateY(-2px);
}

.reaction-btn.clicked {
  background: var(--sage-green);
  border-color: var(--sage-green);
  color: white;
}

.reaction-btn .reaction-count {
  background: var(--border-warm);
  border-radius: 20px;
  padding: 0.05rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dusk-purple);
}

.reaction-btn.clicked .reaction-count {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* ----- SKIP TO SOLUTIONS BUTTON ----- */
.skip-solutions-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--deep-earth);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
}

.skip-solutions-btn.show {
  opacity: 1;
  transform: translateY(0);
}

.skip-solutions-btn:hover {
  background: #5a3f32;
  transform: translateY(-3px) scale(1.02);
}

.skip-solutions-btn i {
  font-size: 1rem;
}

/* ----- PRINTABLE SUMMARY CARD ----- */
.summary-card {
  background: white;
  border-radius: 28px;
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  border: 2px solid var(--warm-gold);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.summary-card .summary-badge {
  display: inline-block;
  background: var(--warm-gold);
  color: white;
  padding: 0.2rem 1.2rem;
  border-radius: 40px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.summary-card h3 {
  font-family: var(--font-serif);
  color: var(--deep-earth);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.summary-card .summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.summary-card .summary-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.6rem;
  border-radius: 12px;
  background: #f9f7f4;
}

.summary-card .summary-item .num {
  background: var(--sage-green);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.summary-card .summary-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--deep-earth);
  line-height: 1.4;
}

.summary-card .print-btn {
  margin-top: 1.5rem;
  background: var(--deep-earth);
  color: white;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 60px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.summary-card .print-btn:hover {
  background: #5a3f32;
  transform: translateY(-2px);
}

/* ============================================================
   UNIVERSAL FOOTER — full-bleed, responsive, article-safe
   Works whether footer is inside .main-wrapper or not
   ============================================================ */

/* 1) Force full viewport width, ignore any parent max-width */
.site-footer {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  background: #2c2826;
  color: #dacbc0;
  padding: 3rem 1.5rem 0;
  margin-top: 4rem;
  position: relative;
  overflow-x: hidden;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.footer-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
}

/* 2) Fluid 4-column grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
  width: 100%;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Brand */
.footer-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.footer-logo span {
  color: #c87a5a;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #dacbc0;
  margin: 0;
}

/* Column headings */
.footer-col h4 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.02em;
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #dacbc0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #c87a5a;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #dacbc0;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.footer-social .social-link:hover {
  background: #c87a5a;
  color: #fff;
}

/* Newsletter form */
.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.footer-newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.footer-newsletter-form input[type="email"]::placeholder {
  color: rgba(218, 203, 192, 0.6);
}

.footer-newsletter-form input[type="email"]:focus {
  border-color: #c87a5a;
}

/* Newsletter submit button */
.footer-newsletter-form button,
.footer-col form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 40px;
  background: #6f8e7e;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.footer-newsletter-form button:hover,
.footer-col form button:hover {
  background: #6f8e7e;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.footer-newsletter-form button:active,
.footer-col form button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.footer-newsletter-form button:focus-visible,
.footer-col form button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Trust badges */
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #dacbc0;
  white-space: nowrap;
}

.trust-badge i {
  color: #c87a5a;
  flex-shrink: 0;
}

/* Disclaimer */
.footer-disclaimer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #dacbc0;
  text-align: left;
}

.footer-disclaimer i {
  color: #c87a5a;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Copyright */
.footer-copyright {
  text-align: center;
  padding: 0.5rem 0 1rem;
  width: 100%;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.82rem;
  color: #dacbc0;
  opacity: 0.85;
}

/* Email contact bar */
.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  width: 100%;
  flex-wrap: wrap;
}

.footer-contact i {
  color: #c87a5a;
  flex-shrink: 0;
}

.footer-contact a {
  color: #dacbc0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  word-break: break-word;
}

.footer-contact a:hover {
  color: #c87a5a;
}

/* ============================================================
   RESPONSIVE — footer
   ============================================================ */

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 column, centered */
@media (max-width: 560px) {
  .site-footer {
    padding: 2.5rem 1rem 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-newsletter-form {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .footer-trust {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-disclaimer {
    text-align: left;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-slide {
  animation: fadeSlide 0.6s ease forwards;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* ----- 1200px+ (Desktop Wide) ----- */
@media (min-width: 1200px) {
  h1 {
    font-size: 3.2rem;
  }
}

/* ----- 1024px (Laptop) ----- */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.8rem;
  }
  .subhead {
    font-size: 1.3rem;
  }
  .article-grid {
    gap: 2rem;
  }
}

/* ----- 900px (Small Tablet) ----- */
@media (max-width: 900px) {
  .article-grid {
    flex-direction: column;
    gap: 2rem;
  }
  h1 {
    font-size: 2.4rem;
  }
  .subhead {
    font-size: 1.2rem;
  }
  .sidebar {
    min-width: 100%;
  }
}

/* ----- 768px (Tablet / Mobile Landscape) ----- */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  body {
    font-size: 16px;
  }

  .nav-bar {
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
  }

  .nav-links {
    justify-content: center;
    gap: 1.2rem;
  }

  .hero-img {
    border-radius: 20px;
  }

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

  /* Reading Mode */
  .reading-mode-selector {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    padding: 1rem;
  }

  .reading-mode-selector .mode-label {
    justify-content: center;
  }

  .mode-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    text-align: center;
  }

  /* Poll */
  .poll-options {
    grid-template-columns: 1fr;
  }

  /* Future Letter */
  .future-letter {
    padding: 1.8rem 1.5rem;
  }

  .future-letter::before {
    font-size: 1.8rem;
    top: -1rem;
    right: 1rem;
    padding: 0.2rem 0.6rem;
  }

  .future-letter p {
    font-size: 1rem;
  }

  /* Break */
  .break-interstitial .break-card {
    padding: 2rem 1.5rem;
  }

  .break-interstitial h3 {
    font-size: 1.4rem;
  }

  /* Summary */
  .summary-card {
    padding: 1.5rem;
  }

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

  /* Mood Tracker */
  .mood-tracker {
    padding: 1.2rem 1.2rem;
  }

  .mood-tracker .slider-container {
    flex-direction: column;
    gap: 0.3rem;
  }

  .mood-tracker .mood-labels {
    font-size: 0.6rem;
  }

  /* Reactions */
  .reaction-buttons {
    justify-content: center;
  }

  .reaction-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
  }

  /* Skip Button */
  .skip-solutions-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

  /* Author Bio */
  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-container {
    padding: 1.5rem 1.5rem 1rem;
  }

  .footer-trust {
    gap: 1rem;
  }

  .trust-badge {
    font-size: 0.65rem;
  }

  .footer-disclaimer {
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
  }
}

/* ----- 640px (Large Phones) ----- */
@media (max-width: 640px) {
  .nav-bar {
    flex-direction: column;
    text-align: center;
    padding: 0.8rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .subhead {
    font-size: 1.1rem;
    padding-left: 0.8rem;
  }

  .meta {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .reflection-pause {
    padding: 1.2rem;
  }

  .expert-quote p {
    font-size: 1.1rem;
  }
}

/* ----- 480px (Mobile Portrait) ----- */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .reading-mode-selector {
    padding: 0.8rem;
    border-radius: 20px;
  }

  .mode-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .live-poll {
    padding: 1.2rem 1rem;
  }

  .future-letter {
    padding: 1.2rem 1rem;
  }

  .future-letter p {
    font-size: 0.95rem;
  }

  .break-interstitial .break-card {
    padding: 1.5rem 1rem;
  }

  .summary-card {
    padding: 1rem;
  }

  .summary-card h3 {
    font-size: 1.2rem;
  }

  .mood-tracker h4 {
    font-size: 1rem;
  }

  .mood-tracker {
    padding: 1rem;
  }

  .footer-container {
    padding: 1.2rem 1rem 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-newsletter-form {
    max-width: 280px;
    margin: 0 auto;
  }

  .footer-trust {
    gap: 0.8rem;
  }

  .trust-badge {
    font-size: 0.6rem;
  }

  .footer-copyright p {
    font-size: 0.65rem;
  }

  .disclaimer-box {
    padding: 1rem 1.2rem;
    font-size: 0.8rem;
  }
}

/* ----- 320px (Small Phones) ----- */
@media (max-width: 320px) {
  .container {
    padding: 0 8px;
  }

  h1 {
    font-size: 1.4rem;
  }

  .subhead {
    font-size: 1rem;
  }

  .nav-links {
    gap: 0.8rem;
    font-size: 0.8rem;
  }

  .mode-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .reaction-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }

  .skip-solutions-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    bottom: 0.8rem;
    right: 0.8rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .skip-solutions-btn,
  .break-interstitial,
  .live-poll,
  .reaction-buttons,
  .reading-mode-selector {
    display: none !important;
  }

  .summary-card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .mood-tracker .mood-compare {
    display: block !important;
  }

  .site-header,
  .sidebar,
  .site-footer {
    display: none !important;
  }

  .main-content {
    max-width: 100% !important;
  }

  .article-grid {
    display: block !important;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
