/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/
:root {
  --frost: #e8ecf1;
  --frost-dark: #d0d6e0;
  --glass: rgba(255,255,255,0.22);
  --glass-strong: rgba(255,255,255,0.55);
  --glass-border: rgba(255,255,255,0.45);
  --cobalt: #0047AB;
  --cobalt-light: #2563eb;
  --coral: #FF4757;
  --coral-soft: #ff6b7a;
  --black: #0a0a0a;
  --text: #1a1a2e;
  --text-light: #4a4a6a;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
}

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--frost);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(0,71,171,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(255,71,87,0.05) 0%, transparent 50%);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', serif;
  color: var(--black);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1rem; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.glass-strong {
  background: var(--glass-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.8rem 1.2rem;
  background: rgba(232,236,241,0.85);
  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: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cobalt);
  letter-spacing: -0.03em;
}

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

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(232,236,241,0.97);
  backdrop-filter: blur(20px);
  padding: 1rem;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 2px solid var(--cobalt);
}

.nav-menu.active { display: flex; }

.nav-menu a {
  display: block;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.3s, color 0.3s;
}

.nav-menu a:hover {
  background: var(--glass);
  color: var(--cobalt);
}

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 101;
}

.burger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  padding: 2rem 1.2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-panel {
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,71,171,0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-label {
  display: inline-block;
  background: var(--cobalt);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.2rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  max-width: 600px;
}

.hero-title em {
  font-style: normal;
  color: var(--coral);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 520px;
  margin-bottom: 1.2rem;
}

.hero-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== MAIN LAYOUT ===== */
.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ===== SECTIONS ===== */
.section {
  margin-bottom: 2rem;
}

.section-label {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cobalt);
  border: 1.5px solid var(--cobalt);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.8rem;
}

.section-title {
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  padding: 1.3rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-number {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--coral);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.card p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 0; }

/* ===== QUOTE ===== */
.quote-block {
  position: relative;
  padding: 1.8rem 1.5rem 1.8rem 2.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--coral);
}

.quote-block::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 0.6rem;
  font-family: Georgia, serif;
  font-size: 3rem;
  color: var(--coral);
  opacity: 0.3;
  line-height: 1;
}

.quote-block p {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.quote-block cite {
  font-size: 0.82rem;
  font-style: normal;
  color: var(--text-light);
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== FLOATING NOTE ===== */
.float-note {
  padding: 1.2rem;
  border-left: 3px solid var(--cobalt);
  font-size: 0.9rem;
  position: relative;
}

.float-note::before {
  content: '\2139';
  position: absolute;
  top: -8px;
  left: -12px;
  background: var(--cobalt);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ===== IMAGE BLOCKS ===== */
.img-block {
  position: relative;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

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

.img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 0.82rem;
  font-style: italic;
}

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: linear-gradient(135deg, rgba(0,71,171,0.08), rgba(255,71,87,0.06));
  border: 1px solid rgba(0,71,171,0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box h3 { color: var(--cobalt); }

/* ===== OVERLAP PANELS ===== */
.overlap-section {
  position: relative;
  margin: 2rem 0;
}

.overlap-bg {
  background: var(--cobalt);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  color: #fff;
}

.overlap-bg h2, .overlap-bg h3 { color: #fff; }
.overlap-bg p { color: rgba(255,255,255,0.85); }

.overlap-float {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: -1rem 0.8rem 0;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

/* ===== NEWSLETTER ===== */
.newsletter {
  padding: 2rem 1.5rem;
  text-align: center;
  border: 2px dashed var(--coral);
}

.newsletter h2 { color: var(--cobalt); }

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 400px;
  margin: 1rem auto 0;
}

.newsletter-form input[type="email"] {
  padding: 0.85rem 1rem;
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: rgba(255,255,255,0.7);
  outline: none;
  transition: border-color 0.3s;
}

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

.newsletter-form button {
  padding: 0.85rem;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.3s, transform 0.2s;
}

.newsletter-form button:hover {
  background: var(--cobalt);
  transform: translateY(-2px);
}

/* ===== RELATED ARTICLES ===== */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.related-card {
  display: block;
  padding: 1.2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

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

.related-card .cat-label {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  font-weight: 700;
}

.related-card h3 {
  font-size: 1rem;
  margin: 0.4rem 0;
  color: var(--text);
}

.related-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== ARTICLE PAGE ===== */
.article-hero {
  padding: 2rem 1.2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.2rem 2rem;
}

.article-body h2 { margin-top: 2rem; }

.article-body ul, .article-body ol {
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.2rem;
}

.legal-page h1 { margin-bottom: 1.5rem; }

.legal-section {
  margin-bottom: 1.5rem;
  padding: 1.2rem;
}

.legal-section h2 { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--cobalt); }

/* ===== SUCCESS PAGE ===== */
.success-page {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

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

.success-page h1 { color: var(--cobalt); }

.btn-home {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--cobalt);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-top: 1.5rem;
  min-height: 44px;
  transition: background 0.3s, transform 0.2s;
}

.btn-home:hover {
  background: var(--coral);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== 404 PAGE ===== */
.error-page {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.error-code {
  font-family: Georgia, serif;
  font-size: 6rem;
  font-weight: 700;
  color: var(--coral);
  opacity: 0.3;
  line-height: 1;
}

/* ===== COOKIE BANNER ===== */
#cookie-toggle { display: none; }

#cookie-toggle:checked ~ .cookie-banner { display: flex; }

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: 1rem;
  z-index: 999;
  padding: 1.2rem;
  background: rgba(26,26,46,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  color: #fff;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  max-width: 380px;
  animation: slideUp 0.5s ease-out;
}

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

.cookie-banner p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0;
  color: rgba(255,255,255,0.85);
}

.cookie-banner a { color: var(--coral-soft); }

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

.cookie-btns label {
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.cookie-accept {
  background: var(--coral);
  color: #fff;
  flex: 1;
}

.cookie-accept:hover { background: var(--cobalt); }

.cookie-reject {
  background: rgba(255,255,255,0.15);
  color: #fff;
  flex: 1;
}

.cookie-reject:hover { background: rgba(255,255,255,0.25); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 2rem 1.2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

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

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

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color 0.3s;
}

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

.footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  margin-top: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===== BRUTAL ACCENTS ===== */
.brutal-line {
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--cobalt) 0 8px, transparent 8px 14px);
  margin: 1.5rem 0;
}

.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0;
}

.tag {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  background: rgba(0,71,171,0.08);
  color: var(--cobalt);
  border: 1px solid rgba(0,71,171,0.15);
}

/* ===== SIDEBAR WIDGETS ===== */
.widget {
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.widget h3 {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--coral);
}

.widget-list {
  list-style: none;
  padding: 0;
}

.widget-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.9rem;
}

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

.widget-list a {
  color: var(--text);
  display: block;
  transition: color 0.3s, padding-left 0.3s;
}

.widget-list a:hover {
  color: var(--cobalt);
  padding-left: 0.5rem;
}

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

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

.stat-num {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cobalt);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== TABLET ===== */
@media (min-width: 640px) {
  h1 { font-size: 2.5rem; }
  .hero-title { font-size: 2.8rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .cookie-banner { left: auto; }
  .newsletter-form { flex-direction: row; }
  .newsletter-form input[type="email"] { flex: 1; }
  .newsletter-form button { white-space: nowrap; }
}

/* ===== DESKTOP ===== */
@media (min-width: 960px) {
  h1 { font-size: 3rem; }
  .hero-title { font-size: 3.4rem; }

  .nav-menu {
    display: flex !important;
    position: static;
    background: none;
    backdrop-filter: none;
    padding: 0;
    flex-direction: row;
    gap: 0.3rem;
    border: none;
  }

  .nav-menu a { padding: 0.5rem 0.8rem; font-size: 0.9rem; }

  .burger { display: none; }

  .content-grid {
    grid-template-columns: 1fr 300px;
    gap: 2rem;
  }

  .card-grid { grid-template-columns: repeat(3, 1fr); }

  .hero-panel { padding: 3rem 2.5rem; }

  .overlap-float {
    margin: -2rem 2rem 0;
    width: calc(100% - 4rem);
  }

  /* brutal overlap effect for desktop */
  .brutal-overlap {
    position: relative;
  }

  .brutal-overlap .card:nth-child(2) {
    transform: translateY(-10px) rotate(-0.5deg);
    z-index: 2;
  }

  .brutal-overlap .card:nth-child(3) {
    transform: translateY(-5px) rotate(0.3deg);
  }

  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== LARGE DESKTOP ===== */
@media (min-width: 1200px) {
  .hero-title { font-size: 3.8rem; }
  .content-grid { grid-template-columns: 1fr 320px; }
}