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

:root {
  --mint: #a8edea;
  --lavender: #d4b8e0;
  --blush: #fed6e3;
  --ivory: rgba(255,255,248,0.72);
  --ivory-solid: #fffff8;
  --text: #2d2d2d;
  --text-light: #6b6b7b;
  --coral: #ff6b6b;
  --coral-hover: #ff5252;
  --glass: rgba(255,255,255,0.18);
  --glass-strong: rgba(255,255,255,0.35);
  --glass-border: rgba(255,255,255,0.4);
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --max-w: 1200px;
}

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

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(160deg, var(--mint) 0%, var(--lavender) 45%, var(--blush) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(168,237,234,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212,184,224,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(254,214,227,0.3) 0%, transparent 50%);
  animation: waveFloat 20s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes waveFloat {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  33% { transform: translate(30px,-20px) rotate(2deg); }
  66% { transform: translate(-20px,15px) rotate(-1deg); }
}

@keyframes fadeInUp {
  from { opacity:0; transform:translateY(30px); }
  to { opacity:1; transform:translateY(0); }
}

@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}

@keyframes slideInLeft {
  from { opacity:0; transform:translateX(-40px); }
  to { opacity:1; transform:translateX(0); }
}

@keyframes slideInRight {
  from { opacity:0; transform:translateX(40px); }
  to { opacity:1; transform:translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform:scale(1); }
  50% { transform:scale(1.05); }
}

.glass-panel {
  background: var(--ivory);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.glass-card {
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

a { color: var(--coral); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--coral-hover); }

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

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,248,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 1.25rem;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width var(--transition);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--coral); }

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

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(168,237,234,0.5) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(212,184,224,0.5) 0%, transparent 40%);
  animation: waveFloat 15s ease-in-out infinite reverse;
}

.hero-panel {
  position: relative;
  max-width: 780px;
  padding: 3rem 2.5rem;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.hero .author-line {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* ── MAIN LAYOUT ── */
.content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.main-article { animation: fadeInUp 0.8s ease-out 0.2s both; }

.sidebar { animation: slideInRight 0.8s ease-out 0.4s both; }

.article-section {
  margin-bottom: 2.5rem;
  padding: 2rem;
  animation: fadeIn 0.6s ease-out both;
}

.article-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  position: relative;
  padding-left: 1rem;
}

.article-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 1.2em;
  background: var(--coral);
  border-radius: 2px;
}

.article-section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem;
  color: var(--text);
}

.article-section p {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1rem;
}

/* ── INSIGHT CARDS ── */
.insight-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.insight-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--coral), var(--lavender));
  border-radius: 2px;
}

.insight-card .icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.insight-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.insight-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── FLOATING QUOTE ── */
.floating-quote {
  position: relative;
  margin: 2.5rem 0;
  padding: 2rem 2rem 2rem 3rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  border-left: none;
  transform: rotate(-0.5deg);
}

.floating-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.3rem;
  left: 0.5rem;
  font-size: 4rem;
  color: var(--coral);
  opacity: 0.5;
  font-family: var(--font-display);
  line-height: 1;
}

.floating-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-light);
  font-weight: 600;
  transform: rotate(0.5deg);
}

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: linear-gradient(135deg, rgba(255,107,107,0.08), rgba(212,184,224,0.15));
  border: 1px solid rgba(255,107,107,0.2);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 0.5rem;
}

/* ── SIDEBAR ── */
.sidebar-widget {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--coral);
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.92rem;
}

.sidebar-list li:last-child { border-bottom:none; }

.sidebar-list a { color: var(--text); font-weight: 500; }
.sidebar-list a:hover { color: var(--coral); }

.sidebar-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all var(--transition);
}

.tag:hover {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

/* ── ARTICLE CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.article-card {
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.article-card .card-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.article-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link::after { content: ' \2192'; transition: transform var(--transition); }
.card-link:hover::after { transform: translateX(4px); }

/* ── NEWSLETTER ── */
.newsletter-section {
  text-align: center;
  padding: 3rem 2rem;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255,107,107,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.newsletter-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
}

.newsletter-section p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

.newsletter-form input[type="email"] {
  padding: 0.9rem 1.25rem;
  border: 2px solid var(--glass-border);
  border-radius: 50px;
  background: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--coral);
}

.btn-coral {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
  min-height: 48px;
}

.btn-coral:hover {
  background: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,107,0.3);
}

/* ── CATEGORY PILLS ── */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
  justify-content: center;
}

.cat-pill {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  border: 1.5px solid var(--glass-border);
  background: var(--glass);
  transition: all var(--transition);
}

.cat-pill:hover, .cat-pill.active {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

/* ── IMAGE ── */
.article-img {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.article-img img { display:block; width:100%; }

.img-caption {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  padding: 0.75rem;
  background: var(--ivory);
  font-style: italic;
}

/* ── STAT ROW ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.25rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--coral);
  display: block;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ── STEPS ── */
.steps-list {
  counter-reset: steps;
  margin: 1.5rem 0;
}

.step-item {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.step-item::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--coral);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.step-content h4 {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ── FOOTER ── */
.site-footer {
  background: rgba(45,45,45,0.92);
  backdrop-filter: blur(20px);
  color: #ccc;
  padding: 2.5rem 1.25rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand span { color: var(--coral); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}

.footer-links a {
  color: #aaa;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--coral); }

.footer-disclaimer {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.6;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copy {
  font-size: 0.78rem;
  color: #666;
  margin-top: 1rem;
}

/* ── COOKIE BANNER ── */
#cookie-toggle { display:none; }
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: 360px;
  padding: 1.5rem;
  z-index: 999;
  background: rgba(255,255,248,0.96);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: opacity 0.4s, transform 0.4s;
}

#cookie-toggle:checked ~ .cookie-banner {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cookie-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-accept {
  background: var(--coral);
  color: #fff;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.cookie-decline {
  background: transparent;
  border: 1.5px solid var(--glass-border);
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-light);
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.cookie-banner a { font-size: 0.8rem; margin-left: 0.5rem; }

/* ── SUCCESS PAGE ── */
.success-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  text-align: center;
}

.success-box {
  max-width: 520px;
  padding: 3rem;
}

.success-icon { font-size: 3.5rem; margin-bottom: 1rem; }

.success-box h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.success-box p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ── ERROR 404 ── */
.error-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  text-align: center;
}

.error-box { max-width: 600px; padding: 3rem; }

.error-code {
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
  opacity: 0.7;
}

.error-box h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 1rem 0;
}

.error-box p { color: var(--text-light); margin-bottom: 2rem; }

.error-articles { display:grid; gap:1rem; margin-top:1.5rem; }

/* ── LEGAL ── */
.legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.legal-content {
  padding: 2.5rem;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  color: var(--text);
}

.legal-content p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.legal-date {
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2rem;
}

/* ── RESPONSIVE ── */
@media (min-width: 640px) {
  .insight-row { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 3rem; }
}

@media (min-width: 960px) {
  .main-grid { grid-template-columns: 1fr 320px; }
  .insight-row { grid-template-columns: repeat(3, 1fr); }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 3.4rem; }
  .hero-panel { padding: 4rem 3.5rem; }
  .nav-links { display: flex; }
  .burger { display: none; }
}

@media (max-width: 959px) {
  .nav-links { display:none; }
  .burger { display:block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,248,0.97);
    backdrop-filter: blur(20px);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    gap: 0.75rem;
  }
}
