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

:root {
  --black: #0d0d0d;
  --black-light: #141414;
  --black-card: #1a1a1a;
  --black-border: #2a2a2a;
  --white: #ffffff;
  --white-dim: #cccccc;
  --white-muted: #999999;
  --red: #C8102E;
  --red-dark: #9b0c22;
  --gold: #B8960C;
  --gold-dim: rgba(184,150,12,0.25);
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  --gap: 1.2rem;
  --radius: 6px;
  --max-w: 1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--black); color: var(--white-dim); font-family: var(--font-body); line-height: 1.7; }
a { color: var(--gold); text-decoration: none; transition: color .3s; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(13,13,13,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--black-border); }
.header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0.8rem 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--white); letter-spacing: -1px; }
.logo span { color: var(--red); }
.nav-list { display: flex; gap: 1.5rem; list-style: none; }
.nav-list a { color: var(--white-dim); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: color .3s; }
.nav-list a:hover { color: var(--red); }
.burger { display: none; background: none; border: none; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: flex-end; background: var(--black); position: relative; overflow: hidden; padding: 2rem 1.2rem 4rem; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--black) 100%); z-index: 1; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; filter: grayscale(40%); }
.hero-content { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; width: 100%; }
.hero-tag { display: inline-block; background: var(--red); color: var(--white); padding: 0.3rem 1rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.2rem; border-radius: 2px; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.8rem); color: var(--white); line-height: 1.15; margin-bottom: 1.5rem; max-width: 700px; }
.hero-lead { font-size: 1.1rem; color: var(--white-dim); max-width: 600px; line-height: 1.8; }
.hero-lead p { margin-bottom: 1rem; }

/* MAIN LAYOUT */
.main-wrap { max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.2rem; }
.content-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media(min-width: 900px) {
  .content-grid { grid-template-columns: 2fr 0.85fr; gap: 2.5rem; }
}
.main-col {}
.side-col { display: flex; flex-direction: column; gap: 1.5rem; }

/* SECTION */
.section { margin-bottom: 3rem; }
.section h2 { font-family: var(--font-head); font-size: 1.8rem; color: var(--white); margin-bottom: 1rem; line-height: 1.3; border-left: 4px solid var(--red); padding-left: 0.8rem; }
.section h3 { font-family: var(--font-head); font-size: 1.3rem; color: var(--white); margin: 1.5rem 0 0.8rem; }
.section p { margin-bottom: 1rem; }

/* CARDS */
.card-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.5rem 0; }
@media(min-width: 600px) { .card-row { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 900px) { .card-row.triple { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--black-card); border: 1px solid var(--black-border); border-radius: var(--radius); padding: 1.3rem; transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: var(--red); }
.card-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }
.card h4 { font-family: var(--font-head); color: var(--white); margin-bottom: 0.5rem; font-size: 1.05rem; }
.card p { font-size: 0.92rem; color: var(--white-muted); }

/* QUOTE */
.quote-block { border-left: 4px solid var(--gold); background: var(--gold-dim); padding: 1.2rem 1.5rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0; }
.quote-block p { font-family: var(--font-head); font-style: italic; color: var(--white); font-size: 1.1rem; line-height: 1.6; }
.quote-block cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: 0.85rem; color: var(--gold); }

/* STAT */
.stat-bar { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.stat-item { flex: 1; min-width: 120px; background: var(--black-card); border: 1px solid var(--black-border); border-radius: var(--radius); padding: 1rem; text-align: center; }
.stat-num { font-family: var(--font-mono); font-size: 2rem; color: var(--red); font-weight: 700; }
.stat-label { font-size: 0.8rem; color: var(--white-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 0.3rem; }

/* SIDEBAR */
.side-box { background: var(--black-card); border: 1px solid var(--black-border); border-radius: var(--radius); padding: 1.2rem; }
.side-box h4 { font-family: var(--font-head); color: var(--white); margin-bottom: 0.8rem; font-size: 1rem; border-bottom: 2px solid var(--red); padding-bottom: 0.5rem; }
.side-box ul { list-style: none; }
.side-box li { padding: 0.5rem 0; border-bottom: 1px solid var(--black-border); font-size: 0.9rem; color: var(--white-dim); }
.side-box li:last-child { border: none; }
.side-box li::before { content: '▸ '; color: var(--red); }

.side-insight { background: linear-gradient(135deg, var(--red-dark), var(--black-card)); border: none; }
.side-insight p { font-size: 0.95rem; color: var(--white-dim); }
.side-insight strong { color: var(--white); }

/* HIGHLIGHT */
.highlight-strip { background: var(--red); color: var(--white); padding: 1.5rem; border-radius: var(--radius); margin: 2rem 0; text-align: center; }
.highlight-strip h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 0.5rem; }
.highlight-strip p { font-size: 0.95rem; max-width: 600px; margin: 0 auto; }

/* IMAGE BLOCK */
.img-block { margin: 2rem 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.img-block img { width: 100%; transition: transform .5s; }
.img-block:hover img { transform: scale(1.03); }
.img-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.85)); padding: 1rem 1.2rem; font-size: 0.85rem; color: var(--white-dim); }

/* FORM */
.subscribe-form { display: flex; gap: 0.6rem; margin: 1rem 0; flex-wrap: wrap; }
.subscribe-form input[type="email"] { flex: 1; min-width: 200px; padding: 0.8rem 1rem; background: var(--black-card); border: 1px solid var(--black-border); border-radius: var(--radius); color: var(--white); font-size: 0.95rem; }
.subscribe-form input[type="email"]:focus { outline: none; border-color: var(--red); }
.subscribe-form button { padding: 0.8rem 1.8rem; background: var(--red); color: var(--white); border: none; border-radius: var(--radius); font-weight: 600; cursor: pointer; font-size: 0.95rem; min-height: 44px; transition: background .3s; }
.subscribe-form button:hover { background: var(--red-dark); }

/* ARTICLE LIST */
.article-list { display: grid; gap: 1.5rem; margin: 2rem 0; }
.article-preview { display: grid; grid-template-columns: 1fr; gap: 1rem; background: var(--black-card); border: 1px solid var(--black-border); border-radius: var(--radius); overflow: hidden; transition: border-color .3s; }
@media(min-width: 600px) { .article-preview { grid-template-columns: 200px 1fr; } }
.article-preview:hover { border-color: var(--gold); }
.article-preview img { width: 100%; height: 100%; object-fit: cover; min-height: 150px; }
.article-preview-body { padding: 1.2rem; }
.article-preview-body h3 { font-family: var(--font-head); color: var(--white); margin-bottom: 0.5rem; font-size: 1.1rem; }
.article-preview-body p { font-size: 0.9rem; color: var(--white-muted); margin-bottom: 0.8rem; }
.read-more { color: var(--red); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* FOOTER */
.site-footer { background: var(--black-light); border-top: 1px solid var(--black-border); padding: 2.5rem 1.2rem 1.5rem; margin-top: 3rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.footer-brand { font-family: var(--font-head); font-size: 1.4rem; color: var(--white); }
.footer-brand span { color: var(--red); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; }
.footer-links a { color: var(--white-muted); font-size: 0.85rem; transition: color .3s; }
.footer-links a:hover { color: var(--white); }
.footer-disclaimer { font-size: 0.78rem; color: var(--white-muted); line-height: 1.6; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--black-border); }
.footer-copy { text-align: center; font-size: 0.78rem; color: var(--white-muted); margin-top: 1rem; }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 1rem; right: 1rem; max-width: 380px; background: var(--black-card); border: 1px solid var(--black-border); border-radius: var(--radius); padding: 1.2rem; z-index: 200; box-shadow: 0 8px 30px rgba(0,0,0,0.6); transition: opacity .3s, transform .3s; }
#cookie-close:checked ~ .cookie-banner { display: none; }
.cookie-banner p { font-size: 0.85rem; color: var(--white-dim); margin-bottom: 0.8rem; }
.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.cookie-btn { padding: 0.5rem 1.2rem; border-radius: var(--radius); font-size: 0.85rem; cursor: pointer; border: none; min-height: 44px; font-weight: 600; transition: background .3s; }
.cookie-accept { background: var(--red); color: var(--white); }
.cookie-accept:hover { background: var(--red-dark); }
.cookie-decline { background: var(--black-border); color: var(--white-dim); }
.cookie-decline:hover { background: #333; }
.cookie-link { font-size: 0.8rem; color: var(--gold); }
#cookie-close { display: none; }

/* LEGAL */
.legal-page { max-width: 800px; margin: 0 auto; padding: 3rem 1.2rem; }
.legal-page h1 { font-family: var(--font-head); font-size: 2rem; color: var(--white); margin-bottom: 0.5rem; }
.legal-page .legal-date { font-size: 0.85rem; color: var(--white-muted); margin-bottom: 2rem; }
.legal-page h2 { font-family: var(--font-head); font-size: 1.2rem; color: var(--white); margin: 1.8rem 0 0.6rem; }
.legal-page p { margin-bottom: 0.8rem; font-size: 0.95rem; }

/* SUCCESS & 404 */
.status-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 3rem 1.2rem; }
.status-page h1 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white); margin-bottom: 1rem; }
.status-page p { color: var(--white-dim); max-width: 500px; margin: 0 auto 1.5rem; }
.status-btn { display: inline-block; padding: 0.8rem 2rem; background: var(--red); color: var(--white); border-radius: var(--radius); font-weight: 600; min-height: 44px; transition: background .3s; }
.status-btn:hover { background: var(--red-dark); color: var(--white); }

/* ANIMATION */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.6s ease-out both; }
.fade-up-d1 { animation-delay: .1s; }
.fade-up-d2 { animation-delay: .2s; }
.fade-up-d3 { animation-delay: .3s; }
.fade-up-d4 { animation-delay: .4s; }

/* RESPONSIVE */
@media(max-width: 768px) {
  .nav-list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--black); padding: 1rem; border-bottom: 1px solid var(--black-border); }
  .nav-list.open { display: flex; }
  .burger { display: block; }
  .hero { min-height: 80vh; padding-bottom: 3rem; }
  .hero h1 { font-size: 1.8rem; }
  .stat-bar { flex-direction: column; }
}
@media(min-width: 769px) and (max-width: 899px) {
  .content-grid { grid-template-columns: 1fr; }
}
