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

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-elevated: #1a1a1a;
  --bg-sidebar: #111111;
  --text: #e8e8e8;
  --text-dim: #aaa;
  --text-muted: #777;
  --gold: #c4a35a;
  --gold-dim: #9a7d3f;
  --red: #8b2020;
  --red-glow: #b83030;
  --border: #222;
  --border-light: #2a2a2a;
  --font-head: Georgia, 'Palatino Linotype', 'Book Antiqua', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w: 1280px;
  --gap: 1.5rem;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--red-glow); }

/* NAV */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(10,10,10,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0.8rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a { color: var(--text-dim); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.3s; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.burger { display: none; background: none; border: none; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* HERO */
.hero { position: relative; padding: 6rem 1.5rem 4rem; max-width: var(--max-w); margin: 0 auto; border-bottom: 1px solid var(--border); }
.hero-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 4px; color: var(--gold); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; }
.hero-tag::before { content: ''; width: 40px; height: 2px; background: var(--red); }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.1; font-weight: 700; color: #fff; margin-bottom: 1.2rem; max-width: 800px; }
.hero-sub { font-size: 1.15rem; color: var(--text-dim); max-width: 600px; line-height: 1.6; margin-bottom: 1.5rem; }
.hero-author { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }
.hero-author strong { color: var(--gold); }
.hero-img { margin-top: 2rem; border-radius: 4px; width: 100%; max-height: 450px; object-fit: cover; filter: brightness(0.85) contrast(1.1); }

/* ARTICLE LAYOUT — 2.5 columns */
.article-layout { max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.main-col { }
.side-col { }
.accent-col { display: none; }

/* SECTION STYLES */
.sec-title { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; margin-bottom: 1.2rem; line-height: 1.2; position: relative; padding-left: 1.2rem; }
.sec-title::before { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: linear-gradient(to bottom, var(--gold), var(--red)); border-radius: 2px; }
.sec-text { margin-bottom: 1.5rem; color: var(--text-dim); font-size: 1rem; }
.sec-text strong { color: var(--gold); font-weight: 600; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin: 2rem 0; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-4px); border-color: var(--gold-dim); box-shadow: 0 8px 30px rgba(139,32,32,0.15); }
.card-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.card h3 { font-family: var(--font-head); font-size: 1.1rem; color: #fff; margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* QUOTE */
.quote-block { position: relative; margin: 3rem 0; padding: 2.5rem 2rem 2rem 3rem; background: var(--bg-elevated); border-left: 4px solid var(--gold); border-radius: 0 6px 6px 0; }
.quote-block::before { content: '\201C'; position: absolute; top: -0.5rem; left: 0.8rem; font-size: 4rem; color: var(--gold-dim); font-family: var(--font-head); line-height: 1; }
.quote-block p { font-family: var(--font-head); font-size: 1.15rem; font-style: italic; color: var(--text); line-height: 1.6; }
.quote-block cite { display: block; margin-top: 1rem; font-size: 0.8rem; color: var(--gold); font-style: normal; text-transform: uppercase; letter-spacing: 1.5px; }

/* HIGHLIGHT BOX */
.highlight-box { background: linear-gradient(135deg, rgba(196,163,90,0.08), rgba(139,32,32,0.08)); border: 1px solid var(--border-light); border-radius: 8px; padding: 2rem; margin: 2rem 0; }
.highlight-box h3 { font-family: var(--font-head); color: var(--gold); font-size: 1.2rem; margin-bottom: 1rem; }
.highlight-box ul { list-style: none; }
.highlight-box li { padding: 0.5rem 0; padding-left: 1.5rem; position: relative; color: var(--text-dim); font-size: 0.95rem; }
.highlight-box li::before { content: '\2022'; position: absolute; left: 0; color: var(--red); font-size: 1.2rem; }

/* SIDEBAR */
.sidebar-insight { background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-insight h4 { font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 0.8rem; }
.sidebar-insight p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.sidebar-stat { text-align: center; padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; margin-bottom: 1.5rem; }
.sidebar-stat .stat-num { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--gold); line-height: 1; }
.sidebar-stat .stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 0.4rem; }

/* ACCENT STRIP */
.accent-line { padding: 1rem 0; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); font-style: italic; }
.accent-line strong { color: var(--gold); display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.3rem; font-style: normal; }

/* IMAGE SECTION */
.img-section { margin: 2.5rem 0; position: relative; border-radius: 6px; overflow: hidden; }
.img-section img { width: 100%; height: auto; filter: brightness(0.8) contrast(1.1); transition: filter 0.5s; }
.img-section:hover img { filter: brightness(0.9) contrast(1.05); }
.img-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; background: linear-gradient(transparent, rgba(10,10,10,0.9)); font-size: 0.85rem; color: var(--text-dim); }

/* NEWSLETTER */
.newsletter { background: linear-gradient(135deg, #141414, #1a1a1a); border: 1px solid var(--border); border-radius: 8px; padding: 3rem 2rem; text-align: center; margin: 3rem 0; }
.newsletter h3 { font-family: var(--font-head); font-size: 1.6rem; color: #fff; margin-bottom: 0.8rem; }
.newsletter p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.newsletter-form { display: flex; gap: 0.8rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input[type="email"] { flex: 1; min-width: 220px; padding: 0.9rem 1.2rem; background: var(--bg); border: 1px solid var(--border-light); border-radius: 4px; color: var(--text); font-size: 0.95rem; outline: none; transition: border-color 0.3s; }
.newsletter-form input[type="email"]:focus { border-color: var(--gold); }
.newsletter-form button { padding: 0.9rem 2rem; background: var(--gold); color: var(--bg); border: none; border-radius: 4px; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background 0.3s, transform 0.2s; min-height: 44px; }
.newsletter-form button:hover { background: var(--red-glow); transform: translateY(-1px); }

/* RELATED ARTICLES */
.related { max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem; border-top: 1px solid var(--border); }
.related h2 { font-family: var(--font-head); font-size: 1.8rem; color: #fff; margin-bottom: 2rem; text-align: center; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.related-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: transform 0.3s, border-color 0.3s; }
.related-card:hover { transform: translateY(-4px); border-color: var(--gold-dim); }
.related-card img { width: 100%; height: 180px; object-fit: cover; filter: brightness(0.8); }
.related-card-body { padding: 1.5rem; }
.related-card-body span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); }
.related-card-body h3 { font-family: var(--font-head); font-size: 1.1rem; color: #fff; margin: 0.5rem 0; line-height: 1.3; }
.related-card-body p { font-size: 0.85rem; color: var(--text-muted); }

/* DIVIDER */
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--border-light), var(--gold-dim), var(--border-light), transparent); margin: 2.5rem 0; }
.divider-gold { height: 2px; background: linear-gradient(to right, var(--gold), var(--red), var(--gold)); margin: 3rem auto; max-width: 200px; border-radius: 2px; }

/* FOOTER */
.site-footer { background: #060606; border-top: 1px solid var(--border); padding: 3rem 1.5rem 2rem; margin-top: 3rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.footer-brand { font-family: var(--font-head); font-size: 1.4rem; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1rem; }
.footer-disclaimer { font-size: 0.72rem; color: #555; line-height: 1.6; max-width: 700px; }

/* LEGAL PAGES */
.legal-page { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.legal-page h1 { font-family: var(--font-head); font-size: 2rem; color: #fff; margin-bottom: 2rem; }
.legal-page h2 { font-family: var(--font-head); font-size: 1.2rem; color: var(--gold); margin: 2rem 0 0.8rem; }
.legal-page p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1rem; line-height: 1.7; }

/* SUCCESS PAGE */
.success-page { max-width: 600px; margin: 0 auto; padding: 6rem 1.5rem; text-align: center; }
.success-page h1 { font-family: var(--font-head); font-size: 2.5rem; color: var(--gold); margin-bottom: 1rem; }
.success-page p { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 2rem; }
.btn-home { display: inline-block; padding: 1rem 2.5rem; background: var(--gold); color: var(--bg); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; font-size: 0.9rem; transition: background 0.3s; min-height: 44px; }
.btn-home:hover { background: var(--red-glow); color: #fff; }

/* 404 PAGE */
.error-page { max-width: 600px; margin: 0 auto; padding: 6rem 1.5rem; text-align: center; }
.error-page .error-num { font-family: var(--font-head); font-size: 8rem; font-weight: 700; color: var(--red); line-height: 1; }
.error-page h1 { font-family: var(--font-head); font-size: 1.8rem; color: #fff; margin: 1rem 0; }
.error-page p { color: var(--text-muted); margin-bottom: 2rem; }
.error-links { display: flex; flex-direction: column; gap: 0.8rem; align-items: center; }
.error-links a { color: var(--gold); font-size: 0.95rem; }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 1rem; right: 1rem; left: 1rem; max-width: 420px; margin-left: auto; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; z-index: 200; box-shadow: 0 10px 40px rgba(0,0,0,0.5); transition: opacity 0.3s, transform 0.3s; }
#cookie-close:checked ~ .cookie-banner { display: none; }
.cookie-banner p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 1rem; line-height: 1.5; }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.cookie-actions label,
.cookie-actions a.cookie-link { padding: 0.6rem 1.2rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; min-height: 44px; display: inline-flex; align-items: center; transition: background 0.3s; }
.cookie-accept { background: var(--gold); color: var(--bg); border: none; }
.cookie-accept:hover { background: #d4b468; }
.cookie-decline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.cookie-decline:hover { border-color: var(--text-muted); }
.cookie-link { color: var(--text-muted) !important; font-size: 0.75rem !important; text-decoration: underline !important; }
#cookie-close { display: none; }

/* FULL-WIDTH BANNER SECTION */
.fw-banner { position: relative; padding: 4rem 1.5rem; background: linear-gradient(135deg, rgba(139,32,32,0.12), rgba(196,163,90,0.06)); margin: 2rem 0; overflow: hidden; }
.fw-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, var(--red), var(--gold)); }
.fw-banner-inner { max-width: var(--max-w); margin: 0 auto; }
.fw-banner h2 { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; margin-bottom: 1rem; }
.fw-banner p { color: var(--text-dim); max-width: 600px; font-size: 1rem; }

/* INLINE STATS ROW */
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2rem 0; }
.stat-item { text-align: center; padding: 1.5rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; }
.stat-item .stat-big { font-family: var(--font-head); font-size: 2rem; color: var(--gold); font-weight: 700; }
.stat-item .stat-desc { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 0.3rem; }

/* ARTICLE PAGES */
.article-hero { max-width: var(--max-w); margin: 0 auto; padding: 4rem 1.5rem 2rem; }
.article-hero .art-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; color: var(--red-glow); margin-bottom: 1rem; }
.article-hero h1 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; line-height: 1.15; margin-bottom: 1rem; max-width: 750px; }
.article-hero .art-meta { font-size: 0.8rem; color: var(--text-muted); }
.article-body { max-width: 750px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.article-body h2 { font-family: var(--font-head); font-size: 1.6rem; color: #fff; margin: 2.5rem 0 1rem; position: relative; padding-left: 1rem; }
.article-body h2::before { content: ''; position: absolute; left: 0; top: 0.15em; bottom: 0.15em; width: 3px; background: var(--gold); border-radius: 2px; }
.article-body p { color: var(--text-dim); margin-bottom: 1.2rem; font-size: 1rem; line-height: 1.75; }

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

/* TABLET */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .cookie-banner { left: auto; }
}

/* DESKTOP */
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .burger { display: none; }
  .article-layout { grid-template-columns: 5fr 2fr; }
  .accent-col { display: block; position: sticky; top: 5rem; align-self: start; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1100px) {
  .article-layout { grid-template-columns: 5fr 2fr 1fr; }
  .accent-col { display: block; }
}
@media (max-width: 639px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,10,10,0.98); flex-direction: column; padding: 1.5rem; gap: 1rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .burger { display: block; }
}
