/* ============================================================
   SOULSPACE — SHARED STYLES
   Used by all articles. Provides: header, footer, base reset,
   buttons, sidebar, poll, mood tracker, reading mode,
   references, FAQ, author bio, recommendations.
   Article-specific CSS files remain untouched.
   ============================================================ */

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

/* ------------------------------------------------------------
   DESIGN TOKENS
   (unified — matches what's already used in your articles)
   ------------------------------------------------------------ */
:root {
  /* Palette */
  /* Tell the browser: this site is designed for light mode only */
  color-scheme: light only;

  --bg-light: #fbf9f7;
  /* ... etc */
  --bg-soft: #f5f1ed;
  --text-deep: #2c3a2c;
  --text-soft: #5a6b5a;
  --primary-sage: #9bb88b;
  --primary-moon: #b8b9c0;
  --accent-dusty-blue: #7b9cb0;
  --accent-lavender: #c4b5d0;
  --border-soft: #e2dbd1;
  --card-bg: #ffffffd4;
  --quote-bg: #f0ece5;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.03);

  /* Typography */
  --font-serif: "Literata", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-width: 1200px;
  --content-width: 760px;
  --sidebar-width: 280px;
  --border-radius-lg: 32px;
  --border-radius-md: 24px;
  --border-radius-sm: 16px;
}

/* ------------------------------------------------------------
   BODY & TYPOGRAPHY
   ------------------------------------------------------------ */
body {
  background-color: var(--bg-light);
  font-family: var(--font-sans);
  color: var(--text-deep);
  line-height: 1.8;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
  color: #1e2a1e;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 48px;
  margin-bottom: 0.75rem;
}
h2 {
  font-size: 32px;
  margin: 3.2rem 0 1.2rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.75rem;
  position: relative;
}
h2:before {
  content: "✦";
  color: var(--primary-sage);
  font-size: 1.4rem;
  position: absolute;
  left: -1.8rem;
  top: -0.2rem;
  opacity: 0.5;
}
h3 {
  font-size: 24px;
  margin: 2.2rem 0 1rem;
  font-weight: 600;
  color: #2f462f;
}
p {
  margin-bottom: 1.4rem;
  color: var(--text-deep);
}
a {
  color: var(--accent-dusty-blue);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
a:hover {
  border-bottom-color: var(--primary-sage);
}

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

/* ------------------------------------------------------------
   HEADER & NAVIGATION (shared across all articles)
   ------------------------------------------------------------ */
.site-header {
  background: rgba(253, 248, 245, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  margin-bottom: 1rem;
}

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

.soulspace-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #2c3e50;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.soulspace-logo .logo-icon {
  font-size: 1.8rem;
  display: inline-block;
  animation: gentleFloat 3s ease-in-out infinite;
}

.soulspace-logo .logo-text {
  background: linear-gradient(135deg, #2c3e50 0%, #4a6fa5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.soulspace-logo .logo-text span {
  background: linear-gradient(135deg, #6b8e23 0%, #9acd32 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  text-decoration: none;
  color: #5a524c;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--primary-sage);
  border-bottom-color: var(--primary-sage);
}

/* ------------------------------------------------------------
   FOOTER (shared across all articles)
   ------------------------------------------------------------ */
.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;
}

.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;
}

.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;
}

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

.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;
  border-bottom: none;
}

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

.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;
  border-bottom: none;
}

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

.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;
}

.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: #7f9e8e;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.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;
}

.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;
}

.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;
}

.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;
  border-bottom: none;
}

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

/* ------------------------------------------------------------
   SIDEBAR MODULES (shared — used in every article's aside)
   ------------------------------------------------------------ */
.sidebar-module {
  background: #f4f0ea;
  border-radius: var(--border-radius-md);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}

.sidebar-module h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #1e3a1e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-module ul {
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}

.sidebar-module li {
  margin-bottom: 0.4rem;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}

.sidebar-module .nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  width: 100%;
  border-bottom: none;
}

.sidebar-module .nav-link:hover {
  background: rgba(165, 184, 201, 0.15);
}

.newsletter-form {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin-top: 1.2rem;
}

.newsletter-form input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 60px;
  border: 1px solid #d3cbbc;
  background: #fcfaf8;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  box-sizing: border-box;
}

.newsletter-form button {
  background: var(--primary-sage);
  border: none;
  color: #1e2e1e;
  padding: 0.9rem 1.8rem;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  font-family: inherit;
}

.newsletter-form button:hover {
  background: #8aab7a;
}

/* ------------------------------------------------------------
   READING MODE SELECTOR
   ------------------------------------------------------------ */
.reading-mode-selector {
  display: flex;
  gap: 1rem;
  margin: 1rem auto 1.5rem;
  flex-wrap: wrap;
  max-width: var(--container-width);
  padding: 0 1.5rem;
}

.mode-btn {
  background: transparent;
  border: 1.5px solid var(--primary-sage);
  border-radius: 60px;
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #5a5a5a;
  font-family: var(--font-sans);
  font-weight: 500;
}

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

/* ------------------------------------------------------------
   MOOD TRACKER
   ------------------------------------------------------------ */
.mood-tracker {
  background: #f9f7f4;
  border-radius: 20px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid #e2ddd5;
}

.mood-tracker input[type="range"] {
  width: 100%;
  margin: 0.8rem 0;
  accent-color: var(--primary-sage);
}

.mood-tracker button {
  background: var(--primary-sage);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 60px;
  cursor: pointer;
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: #1e2e1e;
}

/* ------------------------------------------------------------
   LIVE POLL
   ------------------------------------------------------------ */
.live-poll {
  --poll-ink: #3a2e28;
  --poll-ink-soft: #6b574a;
  --poll-ink-faint: #9a887b;
  --poll-terra: #d97a3f;
  --poll-terra-deep: #b85f28;
  --poll-terra-glow: rgba(217, 122, 63, 0.18);
  --poll-paper: #fdf8f2;
  --poll-paper-warm: #f7ede0;
  --poll-cream: #fffdf9;
  --poll-line: #e8dbcc;
  --poll-line-strong: #d9c6b2;
  --poll-sage: #8aa88a;

  position: relative;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(217, 122, 63, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(138, 168, 138, 0.06) 0%,
      transparent 40%
    ),
    linear-gradient(160deg, var(--poll-paper) 0%, var(--poll-paper-warm) 100%);
  border-radius: 32px;
  padding: 2rem 1.75rem 1.75rem;
  margin: 2rem 0;
  border: 1px solid var(--poll-line);
  box-shadow:
    0 4px 20px rgba(184, 95, 40, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-family:
    "Nunito",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overflow: hidden;
  isolation: isolate;
}

.live-poll h4 {
  position: relative;
  z-index: 1;
  margin: 0 0 1.25rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--poll-ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.35;
}

.live-poll h4 i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(
    145deg,
    var(--poll-terra) 0%,
    var(--poll-terra-deep) 100%
  );
  color: white;
  border-radius: 10px;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px var(--poll-terra-glow);
  flex-shrink: 0;
}

.poll-options {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.poll-option-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--poll-cream);
  border: 1px solid var(--poll-line);
  border-radius: 999px;
  padding: 0.7rem 1.1rem 0.7rem 0.85rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--poll-ink-soft);
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 2px 6px rgba(184, 95, 40, 0.04);
}

.poll-option-btn:hover {
  border-color: var(--poll-terra);
  color: var(--poll-ink);
  transform: translateY(-2px);
  background: white;
}

.poll-option-btn.voted {
  background: linear-gradient(
    135deg,
    var(--poll-terra) 0%,
    var(--poll-terra-deep) 100%
  );
  border-color: var(--poll-terra-deep);
  color: white;
  font-weight: 600;
}

.poll-results {
  position: relative;
  z-index: 1;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--poll-line-strong);
  font-size: 0.88rem;
  color: var(--poll-ink-soft);
}

.poll-results .poll-result-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.poll-results .poll-result-label {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--poll-ink);
  font-weight: 500;
}

.poll-results .poll-result-count {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--poll-terra-deep);
  background: var(--poll-terra-glow);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.poll-results .poll-result-bar {
  grid-column: 1 / -1;
  height: 6px;
  background: var(--poll-line);
  border-radius: 999px;
  margin-top: 0.35rem;
  overflow: hidden;
}

.poll-results .poll-result-bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--poll-terra) 0%,
    var(--poll-terra-deep) 60%,
    var(--poll-sage) 100%
  );
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.poll-total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--poll-ink-faint);
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--poll-line);
}

.poll-reset-btn {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
  background: transparent;
  border: 1px dashed var(--poll-line-strong);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--poll-ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.poll-reset-btn:hover {
  background: var(--poll-ink-soft);
  border-color: var(--poll-ink-soft);
  border-style: solid;
  color: white;
}

/* ------------------------------------------------------------
   REFERENCES & FAQ
   ------------------------------------------------------------ */
.reference-list {
  margin: 2.5rem 0 2rem;
  padding: 1.5rem;
  background: #f5f1eb;
  border-radius: 24px;
  border-left: 4px solid var(--primary-sage);
}

.reference-list h4 {
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  color: #2c3a2c;
}

.reference-list p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.faq-section {
  background: #f5f1eb;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
}

.faq-item {
  margin: 2rem 0;
  border-bottom: 1px dashed #d4cbbc;
  padding-bottom: 1.8rem;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #2f462f;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.faq-question i {
  color: var(--primary-sage);
}

/* ------------------------------------------------------------
   AUTHOR BIO
   ------------------------------------------------------------ */
.author-bio {
  background: #f0eae2;
  border-radius: var(--border-radius-lg);
  padding: 2.2rem;
  margin: 3rem 0 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid #d9cfc1;
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  font-family: var(--font-serif);
  font-weight: 600;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
  min-width: 280px;
}
.author-info h4 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #1e3a1e;
}
.author-credentials {
  font-size: 0.95rem;
  color: #5f6e5f;
  margin-top: 0.8rem;
  border-top: 1px solid #d0c6b8;
  padding-top: 0.8rem;
}

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

.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;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* ------------------------------------------------------------
   SHARED RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  h1 {
    font-size: 42px;
  }
  h2:before {
    display: none;
  }
}

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

@media (max-width: 768px) {
  body {
    font-size: 17px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 28px;
  }
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
  .rec-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col {
    align-items: center;
  }
  .footer-social {
    justify-content: center;
  }
  .poll-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 2.5rem 1rem 0;
  }
  .footer-trust {
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-disclaimer {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soulspace-logo .logo-icon {
    animation: none !important;
  }
}

/* ============================================================
   UNIVERSAL NEWSLETTER READABILITY FIX
   Ensures text is always dark and readable on the white 
   newsletter background, regardless of the article's theme.
   ============================================================ */

/* Target the sidebar newsletter module specifically */
.sidebar-module#newsletterModule,
.sidebar-newsletter,
.newsletter-form {
  background: #f4f0ea !important; /* Light background */
  color: #2c3a2c !important; /* Dark text */
}

/* Ensure all text inside the newsletter module is dark */
.sidebar-module#newsletterModule p,
.sidebar-module#newsletterModule h4,
.sidebar-newsletter p,
.sidebar-newsletter h3 {
  color: #2c3a2c !important;
}

/* Ensure the input box and button are clearly visible */
.sidebar-module#newsletterModule input,
.sidebar-newsletter input,
.newsletter-form input {
  background: #ffffff !important;
  color: #2c3a2c !important;
  border: 1px solid #d3cbbc !important;
}

.sidebar-module#newsletterModule button,
.sidebar-newsletter button,
.newsletter-form button {
  background: #9bb88b !important; /* The sage green from your theme */
  color: #1e2e1e !important;
}

/* ==========================================================
   RELAX GAME — BREATHING BUBBLE
   ========================================================== */

/* Full-screen overlay when game is active */
#relaxGameOverlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 45, 66, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10005;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  text-align: center;
  color: white;
}

/* Show the overlay when the 'active' class is added by JS */
#relaxGameOverlay.active {
  display: flex;
}

/* The breathing bubble */
.breathing-bubble {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #45b5ad, #3c9690);
  border-radius: 50%;
  box-shadow:
    0 0 0 10px rgba(60, 150, 144, 0.15),
    0 0 60px rgba(60, 150, 144, 0.4);
  transition: transform 4s ease-in-out;
  margin: 2rem auto;
  position: relative;
}

/* The text label inside the overlay */
#bubbleInstruction {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f5f5f7;
  margin-bottom: 1rem;
  min-height: 2rem;
  transition: opacity 0.3s ease;
}

#bubbleSubtext {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
  margin: 0 auto 2rem;
}

/* Close button */
#closeRelaxGame {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 60px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

#closeRelaxGame:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

@media (prefers-reduced-motion: reduce) {
  .breathing-bubble {
    transition: none;
  }
}

/* ==========================================================
   RELAX GAME — BREATHING BUBBLE ANIMATIONS
   ========================================================== */

#relaxGameOverlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 45, 66, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10005;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  text-align: center;
  color: white;
}

#relaxGameOverlay.active {
  display: flex;
}

.breathing-bubble {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #45b5ad, #3c9690);
  border-radius: 50%;
  box-shadow:
    0 0 0 10px rgba(60, 150, 144, 0.15),
    0 0 60px rgba(60, 150, 144, 0.4);
  transition: transform 4s ease-in-out;
  margin: 2rem auto;
  position: relative;
}

#bubbleInstruction {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f5f5f7;
  margin-bottom: 1rem;
  min-height: 2rem;
}

#bubbleSubtext {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
  margin: 0 auto 2rem;
}

#closeRelaxGame {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 60px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

#closeRelaxGame:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

@media (prefers-reduced-motion: reduce) {
  .breathing-bubble {
    transition: none;
  }
}
