/*
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,700;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --cream: #faf7f2;
  --white: #ffffff;
  --green-soft: #a8c49a;
  --green-dark: #4a6741;
  --green-pale: #e8f0e4;
  --green-muted: #7a9a6e;
  --text: #3a3a3a;
  --text-light: #6b6b6b;
  --shadow: 0 2px 20px rgba(74,103,65,0.07);
  --shadow-hover: 0 6px 30px rgba(74,103,65,0.13);
  --radius: 18px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--green-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

a { color: var(--green-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-muted); }

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

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168,196,154,0.2);
  padding: 0.9rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem; font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.5px;
}

.logo span { color: var(--green-soft); }

.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  font-size: 0.92rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-light);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: var(--green-soft);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--green-dark); }
.nav-links a:hover::after { width: 100%; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--green-dark); margin: 5px 0;
  transition: var(--transition);
}

/* LAYOUT */
.page-wrap { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.5rem; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.main-col { min-width: 0; }

/* SIDEBAR */
.sidebar { position: sticky; top: 80px; }

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  transition: box-shadow var(--transition);
}
.sidebar-card:hover { box-shadow: var(--shadow-hover); }

.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--green-pale);
}

.sidebar-card ul { list-style: none; }
.sidebar-card li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(168,196,154,0.15);
  font-size: 0.92rem;
}
.sidebar-card li:last-child { border-bottom: none; }
.sidebar-card li a { color: var(--text); }
.sidebar-card li a:hover { color: var(--green-dark); }

/* CARDS */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* HERO ARTICLE */
.hero-article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.8rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}

.hero-article h1 { margin-bottom: 1rem; }

.hero-meta {
  display: flex; gap: 1.2rem; align-items: center;
  font-size: 0.85rem; color: var(--text-light);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--green-pale);
}

.meta-tag {
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-article p { margin-bottom: 1rem; font-size: 1.05rem; }

blockquote {
  border-left: 3px solid var(--green-soft);
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
  background: var(--green-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--green-dark);
}

/* SECTION DIVIDER */
.section-title {
  text-align: center;
  margin: 3rem 0 1.8rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px; height: 3px;
  background: var(--green-soft);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* FEATURES */
.feature-icon {
  width: 48px; height: 48px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* CTA */
.btn {
  display: inline-block;
  background: var(--green-dark);
  color: var(--white);
  padding: 0.75rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--green-muted); color: var(--white); transform: translateY(-2px); }

/* SUBSCRIBE */
.subscribe-section {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin: 2.5rem 0;
}

.subscribe-form {
  display: flex; gap: 0.8rem;
  max-width: 440px; margin: 1.2rem auto 0;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1.2rem;
  border: 2px solid rgba(74,103,65,0.2);
  border-radius: 30px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.subscribe-form input[type="email"]:focus { border-color: var(--green-dark); }

/* ARTICLE PAGE */
.article-page { max-width: 760px; }
.article-page h1 { margin-bottom: 0.8rem; }
.article-page h2 { margin: 2rem 0 0.8rem; font-size: 1.4rem; }
.article-page p { margin-bottom: 1rem; }
.article-page ul, .article-page ol {
  margin: 1rem 0 1rem 1.5rem;
}
.article-page li { margin-bottom: 0.5rem; }

.tip-box {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin: 1.5rem 0;
}
.tip-box h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }

.article-img {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-disclaimer {
  margin-top: 2rem;
  padding: 1.2rem;
  background: rgba(168,196,154,0.12);
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
}

/* FOOTER */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 2.5rem 2rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.8;
}
.site-footer a { color: var(--green-soft); }
.site-footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin: 0.8rem 0; flex-wrap: wrap; }
.footer-disclaimer { max-width: 600px; margin: 1rem auto 0; font-size: 0.78rem; opacity: 0.7; }

/* COOKIE */
#cookie-toggle { display: none; }
.cookie-banner {
  position: fixed; bottom: 1.2rem; right: 1.2rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
  max-width: 360px;
  font-size: 0.85rem;
  z-index: 999;
  transition: opacity var(--transition), transform var(--transition);
}
#cookie-toggle:checked ~ .cookie-banner { display: none; }
.cookie-banner p { margin-bottom: 0.8rem; }
.cookie-btns { display: flex; gap: 0.6rem; }
.cookie-btns .btn { font-size: 0.8rem; padding: 0.5rem 1.2rem; }
.cookie-btns .btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green-dark);
}
.cookie-btns .btn-outline:hover { background: var(--green-pale); }

/* LEGAL */
.legal-page { max-width: 760px; }
.legal-page h1 { margin-bottom: 1.5rem; }
.legal-page h2 { margin: 1.8rem 0 0.6rem; font-size: 1.3rem; }
.legal-page p { margin-bottom: 0.8rem; font-size: 0.95rem; }

/* SUCCESS / 404 */
.center-page {
  text-align: center;
  padding: 5rem 1.5rem;
  min-height: 50vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.center-page h1 { margin-bottom: 1rem; }
.center-page p { margin-bottom: 2rem; color: var(--text-light); max-width: 480px; }

/* DAILY SECTION */
.daily-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.daily-item {
  background: var(--white);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.daily-item:hover { transform: translateY(-3px); }
.daily-item h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.daily-item p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--green-pale);
    box-shadow: var(--shadow);
  }
  .burger { display: block; }
  .hero-article { padding: 1.8rem; }
  .daily-grid { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
}

@media (max-width: 480px) {
  .site-header { padding: 0.7rem 1rem; }
  .page-wrap { padding: 1.5rem 1rem; }
  .hero-article { padding: 1.3rem; }
  .card { padding: 1.3rem; }
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-article, .card, .sidebar-card, .subscribe-section, .daily-item {
  animation: fadeUp 0.6s ease both;
}
.cards-row .card:nth-child(2) { animation-delay: 0.1s; }
.cards-row .card:nth-child(3) { animation-delay: 0.2s; }

.insight-block { padding: 2.5rem 0; border-top: 1px solid #eee; }
.insight-block-inner { max-width: 660px; }
.insight-num { display: inline-block; font-size: 0.75rem; font-weight: 800; color: #bbb; letter-spacing: 0.1em; margin-bottom: 0.6rem; }
.insight-block h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.9rem; }
.insight-block p { font-size: 0.95rem; line-height: 1.85; color: #555; margin-bottom: 0.8rem; }
.insight-block p:last-child { margin-bottom: 0; }