/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/

:root {
  --bg-start: #FDF6EC;
  --bg-end: #F5C6A0;
  --bg-gradient: linear-gradient(145deg, var(--bg-start) 0%, #FAE3CC 45%, var(--bg-end) 100%);
  --glass: rgba(255,255,255,0.42);
  --glass-strong: rgba(255,255,255,0.62);
  --glass-border: rgba(255,255,255,0.55);
  --glass-shadow: 0 8px 32px rgba(80,40,10,0.07);
  --glass-blur: blur(18px);
  --text-dark: #2D2A26;
  --text-body: #4A4540;
  --text-muted: #8A847A;
  --accent: #C97B5A;
  --accent-soft: #E8B89A;
  --accent-glow: rgba(201,123,90,0.18);
  --peach: #F0C4A8;
  --cream: #FDF6EC;
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --transition: .35s cubic-bezier(.4,0,.2,1);
  --max-w: 1180px;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600;700&display=swap');

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 1.2rem;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: .5px;
}
.site-logo span { color: var(--accent); }

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.nav-list a {
  text-decoration: none;
  color: var(--text-body);
  font-size: .92rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-list a:hover { color: var(--accent); }
.nav-list a:hover::after { width: 100%; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger svg { width: 26px; height: 26px; stroke: var(--text-dark); }

@media (max-width: 768px) {
  .burger { display: block; }
  .nav-list {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--glass-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    transition: transform var(--transition);
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-list.open { transform: translateY(0); }
  .nav-list a { font-size: 1.05rem; }
}

/* ===== GLASS PANELS ===== */
.glass {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}
.glass-strong {
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

/* ===== HERO ===== */
.hero {
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 1.2rem;
}
.hero-glass {
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero-glass::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--text-dark);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: .4rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 700px;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 550px;
  margin-bottom: 1.5rem;
}
.hero-meta {
  display: flex;
  gap: 1.5rem;
  font-size: .85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.hero-meta span { display: flex; align-items: center; gap: .35rem; }
.hero-pick{margin-top:1.8rem}
.hero-pick input{position:absolute;opacity:0;pointer-events:none}
.hero-pick-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}
.hero-pick-tabs label{cursor:pointer;padding:.55rem 1.1rem;border:1px solid var(--accent-soft);border-radius:30px;font-size:.8rem;font-weight:600;color:var(--text-muted);transition:all .25s;background:rgba(255,255,255,.6);user-select:none}
.hero-pick-tabs label:hover{color:var(--text-dark);transform:translateY(-1px)}
.hero-pick-p{display:none;padding:1rem 1.2rem;background:var(--accent-soft);border-radius:12px;font-size:.95rem;color:var(--text-dark);line-height:1.6;border-left:3px solid var(--accent-glow);animation:heroPickFade .35s ease}
@keyframes heroPickFade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
#pick-1:checked ~ .hero-pick-tabs label[for=pick-1],
#pick-2:checked ~ .hero-pick-tabs label[for=pick-2],
#pick-3:checked ~ .hero-pick-tabs label[for=pick-3]{background:var(--text-dark);color:#fff;border-color:var(--text-dark)}
#pick-1:checked ~ .hero-pick-panels .p1,
#pick-2:checked ~ .hero-pick-panels .p2,
#pick-3:checked ~ .hero-pick-panels .p3{display:block}

@media (min-width: 769px) {
  .hero-glass { padding: 4rem 3.5rem; }
  .hero h1 { font-size: 3.2rem; }
}

/* ===== MAIN LAYOUT ===== */
.content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.2rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) {
  .content-wrap { grid-template-columns: 1fr 320px; }
}
.main-col { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* ===== ARTICLE SECTIONS ===== */
.article-section {
  margin-bottom: 2rem;
}
.article-section h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.article-section h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: .7rem;
}
.article-section p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ===== IMAGE BLOCK ===== */
.img-block {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: var(--glass-shadow);
}
.img-block img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.img-caption {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  padding: .7rem 1rem;
  font-size: .82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== QUOTE BAND ===== */
.quote-band {
  margin: 2rem -1.2rem;
  padding: 2.2rem 2rem;
  background: linear-gradient(135deg, rgba(201,123,90,0.08) 0%, rgba(240,196,168,0.12) 100%);
  border-left: 4px solid var(--accent);
  position: relative;
}
.quote-band blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-dark);
  line-height: 1.6;
  max-width: 700px;
}
.quote-band cite {
  display: block;
  margin-top: .8rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .85rem;
  color: var(--text-muted);
}
@media (min-width: 900px) {
  .quote-band { margin: 2.5rem -2rem; padding: 2.5rem 3rem; border-radius: var(--radius); }
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin: 1.5rem 0;
}
@media (min-width: 560px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(80,40,10,0.12);
}
.card-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent-soft), var(--peach));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--text-dark);
}
.card p {
  font-size: .92rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  padding: 1.5rem 1.8rem;
  margin: 1.5rem 0;
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(240,196,168,0.15), rgba(253,246,236,0.3));
}
.highlight-box h3 {
  color: var(--accent);
  margin-bottom: .6rem;
}

/* ===== NUMBERED LIST ===== */
.step-list {
  list-style: none;
  counter-reset: steps;
  margin: 1.5rem 0;
}
.step-list li {
  counter-increment: steps;
  padding: 1rem 1rem 1rem 3.5rem;
  position: relative;
  margin-bottom: .8rem;
  border-radius: var(--radius-sm);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  transition: transform var(--transition);
}
.step-list li:hover { transform: translateX(4px); }
.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}

/* ===== TAG PILLS ===== */
.tag-row {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 1rem 0;
}
.tag {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  padding: .35rem .9rem;
  border-radius: 30px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-body);
  transition: all var(--transition);
}
.tag:hover { background: var(--accent-soft); color: var(--text-dark); }

/* ===== SIDEBAR WIDGETS ===== */
.sidebar-widget {
  padding: 1.5rem;
}
.sidebar-widget h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--accent-soft);
}
.sidebar-link {
  display: block;
  padding: .6rem 0;
  text-decoration: none;
  color: var(--text-body);
  font-size: .92rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: color var(--transition), padding-left var(--transition);
}
.sidebar-link:hover { color: var(--accent); padding-left: .5rem; }

/* ===== SUBSCRIBE ===== */
.subscribe-box {
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--glass-strong), rgba(240,196,168,0.2));
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.subscribe-box h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: .5rem;
}
.subscribe-box p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.subscribe-form {
  display: flex;
  gap: .5rem;
  flex-direction: column;
}
.subscribe-form input[type="email"] {
  padding: .75rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.6);
  font-size: .95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}
.subscribe-form input[type="email"]:focus { border-color: var(--accent); }
.subscribe-form button, .btn {
  padding: .75rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-height: 44px;
}
.subscribe-form button:hover, .btn:hover {
  background: #B86A4A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: white; }

@media (min-width: 500px) {
  .subscribe-form { flex-direction: row; }
  .subscribe-form input[type="email"] { flex: 1; }
}

/* ===== ARTICLE CARDS (for listings) ===== */
.article-card {
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(80,40,10,0.14);
}
.article-card img {
  width: 100%; height: 200px;
  object-fit: cover;
  display: block;
}
.article-card-body {
  padding: 1.3rem 1.5rem;
}
.article-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: .5rem;
}
.article-card-body p {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: .8rem;
  line-height: 1.6;
}
.article-card-body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: .88rem;
}
.article-card-body a:hover { text-decoration: underline; }

/* ===== FULL WIDTH SECTION ===== */
.full-section {
  max-width: var(--max-w);
  margin: 0 auto 2.5rem;
  padding: 0 1.2rem;
}

/* ===== FADE IN ANIMATION ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeUp .7s ease-out forwards;
}
.fade-in-d1 { animation-delay: .1s; opacity: 0; }
.fade-in-d2 { animation-delay: .2s; opacity: 0; }
.fade-in-d3 { animation-delay: .3s; opacity: 0; }
.fade-in-d4 { animation-delay: .4s; opacity: 0; }

/* ===== COOKIES BANNER ===== */
#cookies-toggle { display: none; }
.cookies-banner {
  position: fixed;
  bottom: 1rem; right: 1rem;
  max-width: 380px;
  padding: 1.5rem;
  z-index: 200;
  transition: opacity var(--transition), transform var(--transition);
}
#cookies-toggle:checked ~ .cookies-banner {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
.cookies-banner p {
  font-size: .85rem;
  margin-bottom: 1rem;
  color: var(--text-body);
  line-height: 1.5;
}
.cookies-banner a { color: var(--accent); }
.cookies-btns {
  display: flex; gap: .5rem;
}
.cookies-btns label, .cookies-btns a {
  padding: .55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.cookie-accept {
  background: var(--accent);
  color: white;
  flex: 1;
}
.cookie-accept:hover { background: #B86A4A; }
.cookie-decline {
  background: rgba(255,255,255,0.5);
  color: var(--text-body);
  border: 1px solid var(--glass-border);
}
.cookie-decline:hover { background: rgba(255,255,255,0.8); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  padding: 2.5rem 1.2rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.footer-brand .site-logo { font-size: 1.4rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 800px;
}
.footer-copy {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .8rem;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2.5rem 2rem;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin: 1.5rem 0 .6rem;
}
.legal-page p {
  margin-bottom: .8rem;
  line-height: 1.7;
  font-size: .92rem;
}

/* ===== SUCCESS / 404 ===== */
.status-page {
  max-width: 600px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  text-align: center;
}
.status-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.status-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.status-404 {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: .5rem;
}

/* ===== DIVIDER ===== */
.divider {
  width: 60px; height: 3px;
  background: var(--accent);
  border-radius: 3px;
  margin: 1.5rem 0;
}
.divider-center { margin: 1.5rem auto; }

/* ===== INLINE ACCENT ===== */
.accent-text { color: var(--accent); font-weight: 600; }

/* ===== SCROLL ANIMATIONS ===== */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
.slide-left { animation: slideInLeft .6s ease-out forwards; }
.slide-right { animation: slideInRight .6s ease-out forwards; }

/* ===== AUTHOR BOX ===== */
.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--peach));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  flex-shrink: 0;
}
.author-info { font-size: .88rem; }
.author-name { font-weight: 600; color: var(--text-dark); }
.author-role { color: var(--text-muted); }
