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

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

:root {
  --cream: #FFF5EB;
  --cream-dark: #F5EADC;
  --burgundy: #7B2D3B;
  --burgundy-light: #9E4A5A;
  --burgundy-dark: #5C1F2B;
  --gold: #D4A574;
  --gold-light: #E8C9A0;
  --charcoal: #2C2C2C;
  --text: #3D3330;
  --text-light: #6B5E59;
  --border: #E0D5CA;
  --white: #FFFFFF;
  --shadow: 0 2px 16px rgba(123,45,59,0.08);
  --shadow-lg: 0 8px 32px rgba(123,45,59,0.12);
  --radius: 6px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
a { display: inline-block; text-align: center; }

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

body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.78;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--charcoal);
  line-height: 1.25;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 0.6em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 600; margin: 1.8em 0 0.6em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 600; margin: 1.4em 0 0.5em; }

img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* ─── HEADER / NAV ─── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.5rem;
}
.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem; font-weight: 700;
  color: var(--burgundy); text-decoration: none;
  letter-spacing: -0.02em;
}
.site-logo:hover { color: var(--burgundy-dark); }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a {
  color: var(--text); text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: var(--burgundy);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--burgundy); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--charcoal); margin: 5px 0;
  transition: var(--transition);
}

/* ─── BREADCRUMBS ─── */
.breadcrumbs {
  max-width: 1140px; margin: 1.2rem auto 0; padding: 0 1.5rem;
  font-size: 0.82rem; color: var(--text-light);
}
.breadcrumbs a { color: var(--burgundy); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 0.4rem; opacity: 0.5; }

/* ─── ARTICLE LAYOUT ─── */
.article-container {
  max-width: 1140px; margin: 0 auto; padding: 2rem 1.5rem 3rem;
  display: grid; grid-template-columns: 1fr 60px; gap: 2rem;
}
.article-main { max-width: 780px; }
.article-meta {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.85rem; color: var(--text-light);
  margin-bottom: 1.8rem; flex-wrap: wrap;
}
.reading-time {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--cream-dark); padding: 0.3rem 0.75rem;
  border-radius: 20px; font-size: 0.8rem; font-weight: 500;
}
.reading-time svg { width: 14px; height: 14px; }
.category-badge {
  background: var(--burgundy); color: var(--white);
  padding: 0.25rem 0.7rem; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.article-content p { margin-bottom: 1.3em; }
.article-content blockquote {
  border-left: 3px solid var(--burgundy);
  margin: 2rem 0; padding: 1.2rem 1.5rem;
  background: var(--cream-dark); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text-light);
  font-size: 1.05rem;
}
.article-content .highlight-box {
  background: linear-gradient(135deg, var(--cream-dark), var(--white));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; margin: 2rem 0;
}
.article-content .highlight-box h3 { margin-top: 0; color: var(--burgundy); }
.article-content .tip-card {
  background: var(--white); border: 1px solid var(--gold-light);
  border-radius: var(--radius); padding: 1.2rem 1.5rem;
  margin: 1.5rem 0; position: relative;
  box-shadow: var(--shadow);
}
.article-content .tip-card::before {
  content: '\2728'; position: absolute; top: -12px; left: 16px;
  font-size: 1.3rem;
}
.article-hero-img {
  width: 100%; height: auto; margin: 0 0 2rem;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ─── SHARE SIDEBAR ─── */
.share-sidebar {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 0.7rem;
  padding-top: 1rem;
}
.share-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  color: var(--text-light);
}
.share-btn:hover {
  background: var(--burgundy); color: var(--white);
  border-color: var(--burgundy); transform: scale(1.1);
}
.share-btn svg { width: 18px; height: 18px; }

/* ─── READ ALSO ─── */
.read-also {
  max-width: 1140px; margin: 0 auto 3rem; padding: 0 1.5rem;
}
.read-also h2 {
  font-size: 1.4rem; margin-bottom: 1.2rem;
  padding-bottom: 0.6rem; border-bottom: 2px solid var(--burgundy);
  display: inline-block;
}
.read-also-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.read-also-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: var(--transition); text-decoration: none;
}
.read-also-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.read-also-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 0; }
.read-also-card .card-body { padding: 1rem 1.2rem; }
.read-also-card .card-cat {
  font-size: 0.7rem; text-transform: uppercase;
  color: var(--burgundy); font-weight: 600; letter-spacing: 0.05em;
}
.read-also-card .card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; color: var(--charcoal);
  margin: 0.4rem 0 0.3rem; line-height: 1.3; text-align: left;
}
.read-also-card .card-time { font-size: 0.78rem; color: var(--text-light); }

/* ─── SUBSCRIBE ─── */
.subscribe-section {
  max-width: 1140px; margin: 0 auto 3rem; padding: 0 1.5rem;
}
.subscribe-box {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
  border-radius: var(--radius); padding: 2.5rem;
  color: var(--white); text-align: center;
}
.subscribe-box h2 {
  color: var(--white); font-size: 1.5rem; margin: 0 0 0.5rem;
}
.subscribe-box p { opacity: 0.9; margin-bottom: 1.5rem; font-size: 0.95rem; }
.subscribe-form {
  display: flex; gap: 0.8rem; max-width: 480px;
  margin: 0 auto; flex-wrap: wrap; justify-content: center;
}
.subscribe-form input[type="email"] {
  flex: 1; min-width: 220px; padding: 0.75rem 1rem;
  border: 2px solid rgba(255,255,255,0.3); border-radius: var(--radius);
  background: rgba(255,255,255,0.12); color: var(--white);
  font-family: 'Lora', serif; font-size: 0.92rem;
  outline: none; transition: var(--transition);
}
.subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }
.subscribe-form input[type="email"]:focus { border-color: var(--gold); background: rgba(255,255,255,0.18); }
.subscribe-form button {
  padding: 0.75rem 1.8rem; background: var(--gold);
  color: var(--charcoal); border: none; border-radius: var(--radius);
  font-family: 'Lora', serif; font-weight: 600;
  font-size: 0.92rem; cursor: pointer; transition: var(--transition);
}
.subscribe-form button:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--charcoal); color: rgba(255,255,255,0.75);
  padding: 2.5rem 1.5rem 1.5rem; font-size: 0.85rem;
}
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: flex-start;
}
.footer-brand .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: var(--white); font-weight: 700;
  text-decoration: none; margin-bottom: 0.4rem;
}
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.83rem; }
.footer-links a:hover { color: var(--gold); }
.footer-disclaimer {
  width: 100%; border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 1.2rem; padding-top: 1.2rem;
  font-size: 0.78rem; opacity: 0.6; line-height: 1.6;
  text-align: center;
}
.footer-copy { text-align: center; width: 100%; margin-top: 0.6rem; font-size: 0.78rem; opacity: 0.5; }

/* ─── COOKIE MODAL ─── */
.cookie-modal {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-lg); z-index: 9999;
  max-width: 360px; width: calc(100% - 40px);
  animation: slideUp 0.5s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cookie-modal h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.cookie-modal p { font-size: 0.82rem; color: var(--text-light); margin-bottom: 1rem; line-height: 1.5; }
.cookie-btns { display: flex; gap: 0.6rem; }
.cookie-btns button {
  flex: 1; padding: 0.5rem; border-radius: var(--radius);
  font-family: 'Lora', serif; font-size: 0.82rem;
  cursor: pointer; transition: var(--transition); border: 1px solid var(--border);
}
.cookie-accept { background: var(--burgundy); color: var(--white); border-color: var(--burgundy) !important; }
.cookie-accept:hover { background: var(--burgundy-dark); }
.cookie-decline { background: var(--white); color: var(--text); }
.cookie-decline:hover { background: var(--cream-dark); }
.cookie-modal.hidden { display: none; }

/* ─── POLICY / TERMS / COOKIES PAGES ─── */
.legal-page { max-width: 780px; margin: 2rem auto 3rem; padding: 0 1.5rem; }
.legal-page h1 { margin-bottom: 1rem; }
.legal-page h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal-page p { margin-bottom: 1rem; }

/* ─── SUCCESS / 404 ─── */
.success-page, .error-page {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1.5rem;
}
.success-page h1 { color: var(--burgundy); font-size: 2.2rem; }
.success-page p { font-size: 1.1rem; color: var(--text-light); margin: 0.8rem 0 2rem; }
.error-page h1 { font-size: 5rem; color: var(--burgundy); opacity: 0.3; }
.error-page h2 { margin-top: 0.5rem; }
.error-page p { color: var(--text-light); margin: 0.8rem 0 2rem; }
.btn-primary {
  background: var(--burgundy); color: var(--white);
  padding: 0.8rem 2rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: var(--transition);
}
.btn-primary:hover { background: var(--burgundy-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ─── HOME HERO ─── */
.home-hero {
  max-width: 1140px; margin: 0 auto; padding: 2.5rem 1.5rem 1rem;
}
.home-hero h1 { text-align: center; max-width: 700px; margin: 0 auto 0.4rem; }
.home-hero .hero-sub {
  text-align: center; color: var(--text-light);
  font-size: 1.05rem; max-width: 560px; margin: 0 auto;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 1rem; gap: 0.8rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .article-container { grid-template-columns: 1fr; }
  .share-sidebar {
    position: static; flex-direction: row;
    justify-content: center; padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
  }
  .read-also-grid { grid-template-columns: 1fr; }
  .subscribe-box { padding: 1.8rem 1.2rem; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
