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

:root {
  --peach: #FFCDB2;
  --peach-light: #FFE8D6;
  --peach-pale: #FFF3EC;
  --coral: #E8735A;
  --coral-dark: #D4614A;
  --coral-light: #F4A394;
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.35);
  --glass-bg-strong: rgba(255, 255, 255, 0.6);
  --glass-bg-subtle: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-shadow: rgba(232, 115, 90, 0.08);
  --text-dark: #2D2D2D;
  --text-body: #3A3A3A;
  --text-muted: #7A7A7A;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --font-display: 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-body: Georgia, 'Times New Roman', serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: linear-gradient(160deg, var(--peach) 0%, var(--peach-light) 25%, var(--peach-pale) 50%, var(--white) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ===== GLASS UTILITY ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px var(--glass-shadow);
}
.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px var(--glass-shadow);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--coral);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--text-dark); font-weight: 300; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
.nav-links a:hover { border-color: var(--coral); color: var(--coral); }

/* Burger */
.burger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text-dark); margin: 5px 0; transition: 0.3s; border-radius: 2px; }

@media (max-width: 768px) {
  .burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0; font-size: 1rem; }
}

/* ===== HERO ===== */
.hero {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 1.2rem;
}
.hero-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(232,115,90,0.1);
  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, rgba(232,115,90,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--coral);
  background: rgba(232,115,90,0.1);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 550px;
  line-height: 1.7;
}
.hero-meta {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== MAIN LAYOUT ===== */
.main-content { max-width: 1200px; margin: 2.5rem auto; padding: 0 1.2rem; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
}

/* ===== ARTICLE BODY ===== */
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 2rem 0 0.8rem;
}
.article-body p { margin-bottom: 1.2rem; }

/* ===== GLASS QUOTE ===== */
.glass-quote {
  background: var(--glass-bg-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dark);
  position: relative;
}
.glass-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--coral-light);
  position: absolute;
  top: -10px;
  left: 12px;
  font-style: normal;
  line-height: 1;
  opacity: 0.5;
}
.glass-quote cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-style: normal;
  color: var(--text-muted);
}

/* ===== INSIGHT STRIP ===== */
.insight-strip {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}
.insight-strip::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.insight-strip h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: white;
}
.insight-strip p { opacity: 0.92; line-height: 1.7; }

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0 2rem;
}
.tip-card {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(232,115,90,0.12);
}
.tip-card .card-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
}
.tip-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.tip-card p { font-size: 0.92rem; color: var(--text-muted); }

/* ===== SIDEBAR ===== */
.sidebar { position: sticky; top: 5rem; }
.sidebar-block {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-block h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--coral-light);
}
.sidebar-link {
  display: block;
  padding: 0.7rem 0;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: color 0.2s, padding-left 0.2s;
}
.sidebar-link:hover { color: var(--coral); padding-left: 6px; }
.sidebar-link:last-child { border-bottom: none; }

.sidebar-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  background: rgba(232,115,90,0.08);
  color: var(--coral);
  border-radius: 50px;
  margin: 0.25rem 0.2rem;
  text-decoration: none;
  transition: background 0.2s;
}
.sidebar-tag:hover { background: rgba(232,115,90,0.18); }

/* ===== IMAGE BLOCK ===== */
.article-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 2rem 0;
  position: relative;
}
.article-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}
.image-caption {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.8rem 0 0;
  text-align: center;
}

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: linear-gradient(135deg, rgba(255,205,178,0.25), rgba(255,232,214,0.35));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,205,178,0.4);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.highlight-box h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--coral-dark);
  margin-bottom: 0.6rem;
}
.highlight-box ul {
  list-style: none;
  padding: 0;
}
.highlight-box li {
  padding: 0.4rem 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.95rem;
}
.highlight-box li::before {
  content: '\2714';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-size: 0.85rem;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
}
.newsletter-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}
.newsletter-section p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  gap: 0.8rem;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.6);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--coral); }
.newsletter-form button {
  padding: 0.85rem 1.8rem;
  background: var(--coral);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  min-height: 48px;
  min-width: 44px;
}
.newsletter-form button:hover { background: var(--coral-dark); transform: scale(1.02); }
@media (max-width: 500px) {
  .newsletter-form { flex-direction: column; }
}

/* ===== RELATED ARTICLES ===== */
.related-section { margin: 3rem 0; }
.related-section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.related-card {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(232,115,90,0.1);
}
.related-card .card-cat {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--coral);
  font-weight: 600;
}
.related-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0.5rem 0;
  line-height: 1.35;
}
.related-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 1.2rem;
  background: rgba(45,45,45,0.95);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-display);
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
}
.footer-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.4rem;
}
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.85rem;
}
.footer-links a:hover { color: var(--coral-light); }
.footer-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 800px;
  grid-column: 1 / -1;
}

/* ===== COOKIE BANNER ===== */
#cookie-toggle { display: none; }
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: 1rem;
  max-width: 420px;
  margin-left: auto;
  background: rgba(45,45,45,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.85rem;
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  transition: transform 0.4s, opacity 0.4s;
}
#cookie-toggle:checked ~ .cookie-banner { transform: translateY(200%); opacity: 0; pointer-events: none; }
.cookie-banner p { margin-bottom: 1rem; line-height: 1.6; color: rgba(255,255,255,0.85); }
.cookie-banner a { color: var(--coral-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-actions label,
.cookie-actions a.cookie-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.cookie-accept { background: var(--coral); color: white; }
.cookie-decline { background: rgba(255,255,255,0.15); color: white; }

/* ===== PAGE SPECIFIC ===== */
.page-wrap {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.2rem;
}
.page-glass {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 12px 40px var(--glass-shadow);
}
@media (max-width: 600px) {
  .page-glass { padding: 2rem 1.5rem; }
}
.page-glass h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.page-glass h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 2rem 0 0.8rem;
}
.page-glass p, .page-glass li {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  line-height: 1.7;
}
.page-glass ol { padding-left: 1.5rem; }

/* Success page */
.success-wrap { text-align: center; padding: 4rem 1.2rem; }
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.success-wrap h1 { font-family: var(--font-display); font-size: 2rem; color: var(--text-dark); margin-bottom: 0.8rem; }
.success-wrap p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.btn-home {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--coral);
  color: white;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  transition: background 0.3s;
  min-height: 48px;
}
.btn-home:hover { background: var(--coral-dark); }

/* 404 */
.error-wrap { text-align: center; padding: 4rem 1.2rem; }
.error-code { font-family: var(--font-display); font-size: 7rem; font-weight: 800; color: var(--coral-light); line-height: 1; opacity: 0.7; }
.error-wrap h1 { font-family: var(--font-display); font-size: 1.8rem; color: var(--text-dark); margin: 1rem 0 0.6rem; }
.error-wrap p { color: var(--text-muted); margin-bottom: 2rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-glass { animation: fadeInUp 0.8s ease-out; }
.tip-card { animation: fadeInUp 0.6s ease-out both; }
.tip-card:nth-child(2) { animation-delay: 0.1s; }
.tip-card:nth-child(3) { animation-delay: 0.2s; }
.tip-card:nth-child(4) { animation-delay: 0.3s; }

/* ===== ARTICLE PAGE HERO ===== */
.article-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.article-hero-body {
  padding: 2.5rem;
}
@media (max-width: 600px) {
  .article-hero-body { padding: 1.5rem; }
  .article-hero-img { height: 200px; }
  .hero-glass { padding: 2rem 1.5rem; }
}

/* ===== NUMBERED LIST CARDS ===== */
.step-list { counter-reset: step-counter; margin: 1.5rem 0; }
.step-item {
  counter-increment: step-counter;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem 1.2rem 3.8rem;
  margin-bottom: 0.8rem;
  position: relative;
  transition: transform 0.2s;
}
.step-item:hover { transform: translateX(4px); }
.step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 1.2rem;
  top: 1.2rem;
  width: 28px;
  height: 28px;
  background: var(--coral);
  color: white;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Full width section */
.full-width-section {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.2rem;
}

/* Tags in articles */
.article-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
