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

:root {
  --primary: #6d28d9;
  --accent: #8b5cf6;
  --bg: #f9fafb;
  --bg-sec: #f3f0ff;
  --text: #111827;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); line-height: 1.75; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; border: 1px solid var(--border); }
h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.3rem, 2.8vw, 1.85rem); margin: 2.25rem 0 .9rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
p { margin-bottom: 1.25rem; }
a { display: inline-block; text-align: center; color: var(--primary); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--accent); opacity: .85; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1.25rem; }
li { margin-bottom: .4rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 740px; margin: 0 auto; padding: 0 1.25rem; }

/* === HEADER === */
.site-header { background: var(--white); border-bottom: 3px solid var(--primary); position: sticky; top: 0; z-index: 200; }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: .85rem 1.25rem; gap: 1rem; }
.site-logo { font-family: 'DM Serif Display', serif; font-size: 1.9rem; color: var(--primary); font-weight: 400; letter-spacing: -.02em; }
.site-logo:hover { color: var(--accent); opacity: 1; }

.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { font-size: .82rem; font-weight: 600; color: var(--text); letter-spacing: .08em; text-transform: uppercase; padding: .25rem 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav-links a:hover { color: var(--primary); border-bottom-color: var(--primary); opacity: 1; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .3s, opacity .3s; }

@media (max-width: 768px) {
  .burger { display: flex; }
  .nav-links { display: none; flex-direction: column; gap: .5rem; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 3px solid var(--primary); padding: 1rem 1.25rem; z-index: 99; }
  .site-header.nav-open .nav-links { display: flex; }
}

/* === BREADCRUMBS === */
.breadcrumbs { background: var(--bg-sec); border-bottom: 1px solid var(--border); padding: .55rem 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .2rem .4rem; list-style: none; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; align-items: center; }
.breadcrumbs li { font-size: .78rem; color: var(--text-light); display: flex; align-items: center; gap: .4rem; }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: var(--border); }
.breadcrumbs a { font-size: .78rem; color: var(--primary); }

/* === ARTICLE LAYOUT === */
.article-wrapper { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.25rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 900px) { .article-wrapper { grid-template-columns: 1fr 290px; } }

.article-content { min-width: 0; }

.article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-bottom: 1.1rem; font-size: .82rem; color: var(--text-light); }
.article-rubric { background: var(--primary); color: var(--white); padding: .2rem .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-lead { font-size: 1.08rem; color: var(--text-light); font-style: italic; border-left: 4px solid var(--primary); padding-left: 1.1rem; margin: 1.4rem 0 2rem; line-height: 1.65; }
.article-image { margin: 1.75rem 0; }

/* === PULL QUOTE === */
.pull-quote { background: var(--bg-sec); border-left: 5px solid var(--primary); padding: 1.5rem 1.75rem; margin: 2.25rem 0; }
.pull-quote p { font-family: 'DM Serif Display', serif; font-size: 1.25rem; color: var(--primary); line-height: 1.5; margin: 0 0 .75rem; }
.pull-quote cite { font-family: 'DM Sans', sans-serif; font-size: .82rem; color: var(--text-light); font-style: normal; }

/* === TAGS === */
.tags-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 2rem 0 1.5rem; }
.tag { background: var(--bg-sec); color: var(--primary); padding: .3rem .75rem; font-size: .78rem; border: 1px solid var(--accent); letter-spacing: .03em; transition: background .2s, color .2s; }
.tag:hover { background: var(--primary); color: var(--white); opacity: 1; }

/* === ARTICLE DISCLAIMER === */
.article-disclaimer { border: 1px solid var(--border); background: var(--white); padding: 1rem 1.25rem; font-size: .82rem; color: var(--text-light); line-height: 1.6; margin: 1.75rem 0 0; }
.article-disclaimer::before { content: 'ℹ️  '; }

/* === ASIDE === */
.article-aside { align-self: start; }
.aside-box { background: var(--bg-sec); padding: 1.5rem; border-top: 3px solid var(--primary); }
.aside-box h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin: 0 0 1rem; }
.aside-stub-list { list-style: none; padding: 0; margin: 0; }
.aside-stub-list li { padding: .7rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; color: var(--text); line-height: 1.45; cursor: default; }
.aside-stub-list li:last-child { border-bottom: none; }
.aside-stub-list li::before { content: '—  '; color: var(--text-light); }

/* === READ ALSO === */
.read-also { background: var(--bg-sec); border-top: 3px solid var(--primary); padding: 2.5rem 1.25rem; margin-top: 1rem; }
.read-also-inner { max-width: 1200px; margin: 0 auto; }
.read-also h2 { margin-top: 0; margin-bottom: 1.5rem; font-size: 1.35rem; }
.read-also-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 600px) { .read-also-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .read-also-grid { grid-template-columns: repeat(3, 1fr); } }
.read-also-card { background: var(--white); padding: 1.25rem; border-left: 3px solid var(--accent); transition: border-color .2s; }
.read-also-card:hover { border-left-color: var(--primary); }
.read-also-card .card-rubric { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; display: block; margin-bottom: .4rem; }
.read-also-card h3 { font-size: .98rem; margin: 0 0 .75rem; color: var(--text); }
.read-also-card a.card-link { font-size: .82rem; font-weight: 600; color: var(--primary); }

/* === READING TIME WIDGET === */
.reading-time-widget { display: inline-flex; align-items: center; gap: .6rem; background: var(--primary); color: var(--white); padding: .5rem 1.1rem; font-size: .83rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 2rem; }
.reading-time-widget svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* === DETOX BLOCK === */
.detox-block { background: var(--primary); color: var(--white); padding: 2.25rem; margin: 2.5rem 0; }
.detox-block h2 { color: var(--white); margin-top: 0; margin-bottom: 1.25rem; font-size: 1.4rem; }
.detox-intro { font-size: .95rem; opacity: .85; margin-bottom: 1.5rem; }
.detox-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 600px) { .detox-grid { grid-template-columns: repeat(2, 1fr); } }
.detox-item { border: 1px solid rgba(255,255,255,.25); padding: 1rem 1.1rem; }
.detox-item strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; opacity: .75; margin-bottom: .3rem; }
.detox-item p { font-size: .92rem; margin: 0; }

/* === SUBSCRIBE === */
.subscribe-section { padding: 3.5rem 1.25rem; text-align: center; border-top: 3px solid var(--border); }
.subscribe-section h2 { margin-top: 0; margin-bottom: .75rem; }
.subscribe-section .sub-desc { color: var(--text-light); margin-bottom: 1.75rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.subscribe-form { display: flex; flex-direction: column; gap: .6rem; max-width: 500px; margin: 0 auto; }
@media (min-width: 560px) { .subscribe-form { flex-direction: row; } }
.subscribe-form input[type='email'] { flex: 1; padding: .8rem 1rem; border: 2px solid var(--primary); font-family: 'DM Sans', sans-serif; font-size: 1rem; background: var(--white); color: var(--text); outline: none; }
.subscribe-form input[type='email']:focus { border-color: var(--accent); }
.btn-primary { background: var(--primary); color: var(--white); padding: .8rem 2rem; font-family: 'DM Sans', sans-serif; font-size: .95rem; font-weight: 700; border: none; cursor: pointer; letter-spacing: .05em; text-transform: uppercase; transition: background .2s; display: inline-block; text-align: center; }
.btn-primary:hover { background: var(--accent); }

/* === FOOTER === */
.site-footer { background: var(--text); color: #e5e7eb; padding: 2.75rem 1.25rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 640px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-logo { font-family: 'DM Serif Display', serif; font-size: 1.6rem; color: var(--white); font-weight: 400; margin-bottom: .35rem; }
.footer-logo:hover { color: var(--accent); opacity: 1; }
.footer-copy { font-size: .78rem; color: #9ca3af; }
.footer-nav h4 { font-family: 'DM Sans', sans-serif; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #9ca3af; margin-bottom: .75rem; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem .75rem; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #d1d5db; font-size: .85rem; }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer { grid-column: 1 / -1; border-top: 1px solid #374151; padding-top: 1.25rem; font-size: .75rem; color: #6b7280; line-height: 1.7; }

/* === COOKIE BANNER === */
#cookie-toggle { display: none; }
.cookie-banner { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; background: var(--white); border: 2px solid var(--primary); padding: 1.25rem; max-width: 310px; width: calc(100% - 2rem); }
.cookie-banner p { font-size: .82rem; color: var(--text); margin-bottom: .9rem; line-height: 1.6; }
.cookie-banner a { font-size: .82rem; }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-actions label { padding: .45rem 1rem; font-size: .82rem; font-weight: 700; cursor: pointer; letter-spacing: .04em; text-transform: uppercase; }
.btn-cookie-accept { background: var(--primary); color: var(--white); display: inline-block; text-align: center; }
.btn-cookie-reject { background: transparent; color: var(--primary); border: 1px solid var(--primary); display: inline-block; text-align: center; }
.btn-cookie-accept:hover { background: var(--accent); }
#cookie-toggle:checked ~ .cookie-banner { display: none; }

/* === UTILS === */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }


/* === POLICY PAGES === */
.policy-main { padding: 3rem 0 4rem; }
.policy-container { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.policy-header { margin-bottom: 3rem; border-bottom: 2px solid var(--border); padding-bottom: 2rem; }
.policy-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; margin-bottom: .6rem; }
.policy-updated { font-size: .82rem; color: var(--text-light); margin: .4rem 0 1rem; }
.policy-intro { font-size: 1.05rem; color: var(--text-light); line-height: 1.7; border-left: 4px solid var(--primary); padding-left: 1rem; margin-top: 1.25rem; }
.policy-section { margin-bottom: 2.5rem; }
.policy-section h2 { font-size: 1.2rem; color: var(--primary); margin-top: 0; margin-bottom: 1rem; padding-bottom: .4rem; border-bottom: 1px solid var(--border); }
.policy-section p { font-size: .95rem; line-height: 1.8; color: var(--text); }

/* === SUCCESS PAGE === */
.success-main { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 3rem 1.25rem; }
.success-container { max-width: 540px; text-align: center; }
.success-icon { margin: 0 auto 1.75rem; width: 72px; height: 72px; }
.success-icon svg { width: 100%; height: 100%; }
.success-main h1 { margin-bottom: 1.25rem; }
.success-sub { font-size: 1.05rem; color: var(--text-light); line-height: 1.75; margin-bottom: 1rem; }
.success-note { font-size: .85rem; color: var(--text-light); background: var(--bg-sec); border: 1px solid var(--border); padding: .85rem 1rem; margin-bottom: 2rem; }
