/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=DM+Serif+Display&display=swap');

html {scroll-behavior: smooth;}
a { display: inline-block; text-align: center; }

:root {
  --color-primary: #0d1b2a;
  --color-accent: #f5c842;
  --color-bg: #ffffff;
  --color-bg-secondary: #f8f6f1;
  --color-text: #1a1a2e;
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1140px;
  --content-width: 760px;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 0.4em; margin-top: 1.5em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.3em; }

p { margin-bottom: 1em; }

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent); }

img { max-width: 100%; height: auto; display: block; }

/* ===== LAYOUT ===== */
.site-header {
  background: var(--color-primary);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}
.site-logo:hover { color: #fff; }

.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a { color: #ccd6e0; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; }
.site-nav a:hover { color: var(--color-accent); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.burger span { display: block; width: 22px; height: 2px; background: #ccd6e0; margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-primary); flex-direction: column; padding: 1rem 1.5rem; gap: 1rem; }
  .site-nav.active { display: flex; }
  .burger { display: block; }
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.85rem;
  color: #888;
}
.breadcrumbs a { color: #888; }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs span { margin: 0 0.4rem; }

/* ===== ARTICLE ===== */
.article-layout {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0ddd5;
}
.article-meta__item { display: flex; align-items: center; gap: 0.3rem; }

article h2 { border-left: 3px solid var(--color-accent); padding-left: 0.8rem; }

.pull-quote {
  border-left: 4px solid var(--color-accent);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-bg-secondary);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary);
  font-style: italic;
}

/* ===== ASIDE ===== */
.sidebar-box {
  background: var(--color-bg-secondary);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-box h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}
.sidebar-list { list-style: none; }
.sidebar-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #e0ddd5;
  font-size: 0.92rem;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: var(--color-text); text-align: left; }
.sidebar-list a:hover { color: var(--color-accent); }

/* ===== HERO IMAGE ===== */
.hero-image {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  margin-bottom: 0;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ===== BREATHING EXERCISE ===== */
.breathing-section {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
  margin: 3rem 0;
}
.breathing-section h2 { color: var(--color-accent); border: none; padding: 0; text-align: center; }
.breathing-circle-wrap { display: flex; justify-content: center; margin: 2rem 0; }
.breathing-circle {
  width: 160px;
  height: 160px;
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-accent);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  25% { transform: scale(1.3); opacity: 1; }
  50% { transform: scale(1.3); opacity: 1; }
  75% { transform: scale(1); opacity: 0.7; }
}
.breathing-instructions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #b0bec5;
}

/* ===== BOOK OF THE MONTH ===== */
.book-month {
  background: var(--color-bg-secondary);
  padding: 2rem 1.5rem;
  margin: 3rem 0;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
@media (max-width: 600px) { .book-month { flex-direction: column; } }
.book-month__info { flex: 1; }
.book-month__badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.8rem;
}

/* ===== TAGS ===== */
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; }
.article-tags a {
  background: var(--color-bg-secondary);
  color: var(--color-text);
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid #e0ddd5;
  transition: background 0.2s, border-color 0.2s;
}
.article-tags a:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-primary); }

/* ===== PREV/NEXT ===== */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid #e0ddd5;
  border-bottom: 1px solid #e0ddd5;
}
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav__item { display: flex; flex-direction: column; gap: 0.3rem; }
.post-nav__item--next { text-align: right; }
.post-nav__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: #888; }
.post-nav__title { font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-primary); }
.post-nav__title:hover { color: var(--color-accent); }

/* ===== READ ALSO ===== */
.read-also {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.read-also h2 { text-align: center; border: none; padding: 0; margin-bottom: 1.5rem; }
.read-also__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) { .read-also__grid { grid-template-columns: 1fr; } }
.read-also__card {
  background: var(--color-bg-secondary);
  padding: 1.5rem;
  transition: transform 0.2s;
}
.read-also__card:hover { transform: translateY(-2px); }
.read-also__card h3 { margin-bottom: 0.5rem; }
.read-also__card p { font-size: 0.9rem; color: #666; margin-bottom: 0.8rem; }
.read-also__card a { font-size: 0.85rem; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.04em; text-align: left; }
.read-also__card a:hover { color: var(--color-accent); }

/* ===== SUBSCRIBE FORM ===== */
.subscribe-section {
  background: var(--color-primary);
  padding: 3rem 1.5rem;
  text-align: center;
  margin-top: 3rem;
}
.subscribe-section h2 { color: #fff; border: none; padding: 0; text-align: center; }
.subscribe-section p { color: #b0bec5; margin-bottom: 1.5rem; }
.subscribe-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0;
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 2px solid #1e3a5f;
  background: #132840;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  border-radius: 0;
}
.subscribe-form input[type="email"]::placeholder { color: #667c94; }
.subscribe-form input[type="email"]:focus { border-color: var(--color-accent); }
.subscribe-form button {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
}
.subscribe-form button:hover { background: #e6b93a; }
@media (max-width: 500px) {
  .subscribe-form { flex-direction: column; }
  .subscribe-form button { padding: 0.85rem; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-primary);
  color: #8a9bb0;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 0;
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1e3a5f;
}
.site-footer__brand .site-logo { font-size: 1.3rem; margin-bottom: 0.5rem; }
.site-footer__brand p { font-size: 0.85rem; max-width: 280px; }
.site-footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer__links a { color: #8a9bb0; font-size: 0.85rem; }
.site-footer__links a:hover { color: var(--color-accent); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
}
.site-footer__disclaimer {
  font-size: 0.78rem;
  color: #5a6f84;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #1e3a5f;
  line-height: 1.5;
}

/* ===== COOKIE MODAL (CSS ONLY) ===== */
#cookie-toggle { display: none; }
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: 360px;
  background: var(--color-primary);
  color: #ccd6e0;
  padding: 1.5rem;
  z-index: 999;
  font-size: 0.85rem;
  line-height: 1.5;
  transition: transform 0.3s, opacity 0.3s;
}
#cookie-toggle:checked ~ .cookie-banner { transform: translateY(200%); opacity: 0; pointer-events: none; }
.cookie-banner p { margin-bottom: 1rem; }
.cookie-banner__actions { display: flex; gap: 0.5rem; }
.cookie-banner__actions label,
.cookie-banner__actions a {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cookie-accept {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
}
.cookie-decline {
  background: none;
  border: 1px solid #3a5068;
  color: #8a9bb0;
}
.cookie-decline:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ===== DISCLAIMER BLOCK ===== */
.disclaimer-block {
  background: var(--color-bg-secondary);
  border-left: 4px solid var(--color-accent);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.88rem;
  color: #666;
}

/* ===== UTILITIES ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
