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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --q-bg: #0a0a12;
  --q-surface: #111119;
  --q-card: #16161f;
  --q-card-hover: #1c1c28;
  --q-border: #23232f;
  --q-border-light: #2d2d3a;
  --q-text: #e2e2ea;
  --q-text-muted: #7c7c96;
  --q-text-dim: #55556a;
  --q-accent: #0088ff;
  --q-accent-dim: rgba(0,136,255,0.12);
  --q-accent-glow: rgba(0,136,255,0.25);
  --q-white: #ffffff;
  --q-font-head: 'Syne', sans-serif;
  --q-font-body: 'Work Sans', sans-serif;
  --q-font-mono: 'JetBrains Mono', monospace;
  --q-radius: 8px;
  --q-radius-lg: 14px;
}

body {
  font-family: var(--q-font-body);
  background: var(--q-bg);
  color: var(--q-text);
  line-height: 1.72;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* TOPBAR */
.q-topbar {
  background: var(--q-accent);
  padding: 6px 20px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--q-bg);
  text-align: center;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--q-font-mono);
}

/* HEADER */
.q-header {
  background: var(--q-surface);
  border-bottom: 1px solid var(--q-border);
  position: sticky; top: 0; z-index: 200;
}
.q-header-inner {
  max-width: 1340px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.q-logo {
  font-family: var(--q-font-head); font-size: 1.7rem; font-weight: 800;
  color: var(--q-white); letter-spacing: -.02em;
}
.q-logo span { color: var(--q-accent); }
.q-nav { display: flex; gap: 6px; align-items: center; }
.q-nav a {
  font-size: .8rem; font-weight: 500; color: var(--q-text-muted);
  padding: 6px 14px; border-radius: 6px; transition: all .25s;
  font-family: var(--q-font-body); letter-spacing: .02em;
}
.q-nav a:hover, .q-nav a.q-active {
  color: var(--q-accent); background: var(--q-accent-dim);
}
.q-burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
.q-burger span { width: 22px; height: 2px; background: var(--q-white); border-radius: 2px; }
.q-mobile-menu {
  display: none; background: var(--q-surface); border-top: 1px solid var(--q-border);
  padding: 16px 24px;
}
.q-mobile-menu.q-open { display: block; }
.q-mobile-menu a {
  display: block; padding: 10px 0; color: var(--q-text); font-weight: 500;
  border-bottom: 1px solid var(--q-border); font-size: .92rem;
}

/* LAYOUT WITH LEFT SIDEBAR */
.q-layout {
  max-width: 1340px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 200px 1fr; gap: 0;
  min-height: 80vh;
}
.q-rail {
  border-right: 1px solid var(--q-border);
  padding: 32px 20px 32px 0;
  position: sticky; top: 60px; height: calc(100vh - 60px);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px;
}
.q-rail-label {
  font-family: var(--q-font-mono); font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--q-accent);
  margin-bottom: 10px;
}
.q-rail-link {
  display: block; padding: 7px 12px; font-size: .82rem; color: var(--q-text-muted);
  border-left: 2px solid transparent; margin-left: -1px; transition: all .2s;
  font-weight: 500;
}
.q-rail-link:hover, .q-rail-link.q-active {
  color: var(--q-accent); border-left-color: var(--q-accent); background: var(--q-accent-dim);
}
.q-rail-divider { height: 1px; background: var(--q-border); margin: 4px 0; }

/* MAIN CONTENT */
.q-content { padding: 40px 0 60px 40px; }

/* HERO */
.q-hero { margin-bottom: 40px; }
.q-hero-tag {
  display: inline-block; font-family: var(--q-font-mono); font-size: .68rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--q-accent); background: var(--q-accent-dim);
  padding: 5px 14px; border-radius: 4px; margin-bottom: 18px;
}
.q-hero h1 {
  font-family: var(--q-font-head); font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800; color: var(--q-white); line-height: 1.12;
  margin-bottom: 20px; letter-spacing: -.03em;
}
.q-hero-lead {
  font-size: 1.08rem; color: var(--q-text-muted); max-width: 700px;
  line-height: 1.8; margin-bottom: 20px;
}
.q-hero-meta {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font-size: .78rem; color: var(--q-text-dim);
  padding-top: 16px; border-top: 1px solid var(--q-border);
}
.q-hero-meta strong { color: var(--q-text-muted); }

/* TWO COLUMN CONTENT */
.q-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-bottom: 36px;
}
.q-two-col p { font-size: .95rem; color: var(--q-text); margin-bottom: 14px; }

/* SECTION HEADERS */
.q-section-tag {
  font-family: var(--q-font-mono); font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--q-accent);
  margin-bottom: 8px;
}
.q-section-title {
  font-family: var(--q-font-head); font-size: 1.6rem; font-weight: 700;
  color: var(--q-white); margin-bottom: 10px; letter-spacing: -.02em;
}
.q-section-sub {
  font-size: .9rem; color: var(--q-text-muted); margin-bottom: 24px;
  max-width: 640px;
}

/* ACCENT CARDS (inline between columns) */
.q-accent-card {
  background: var(--q-card); border: 1px solid var(--q-border);
  border-left: 3px solid var(--q-accent); border-radius: var(--q-radius);
  padding: 20px 22px; margin-bottom: 28px;
  transition: transform .25s, border-color .25s;
}
.q-accent-card:hover { transform: translateX(4px); border-color: var(--q-accent); }
.q-accent-card h4 {
  font-family: var(--q-font-head); font-size: .95rem; color: var(--q-accent);
  margin-bottom: 8px; font-weight: 700;
}
.q-accent-card p { font-size: .85rem; color: var(--q-text-muted); line-height: 1.6; }

/* QUICK NOTE */
.q-quick-note {
  background: var(--q-accent-dim); border-radius: var(--q-radius);
  padding: 16px 20px; margin-bottom: 24px;
  display: flex; gap: 12px; align-items: flex-start;
}
.q-quick-note-icon {
  font-size: 1.2rem; flex-shrink: 0; width: 32px; height: 32px;
  background: var(--q-accent); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--q-bg); font-weight: 700; font-size: .8rem;
  font-family: var(--q-font-mono);
}
.q-quick-note p { font-size: .84rem; color: var(--q-text); }

/* FACT STRIP */
.q-fact-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 36px;
}
.q-fact-item {
  background: var(--q-card); border: 1px solid var(--q-border);
  border-radius: var(--q-radius); padding: 20px; text-align: center;
  transition: border-color .3s;
}
.q-fact-item:hover { border-color: var(--q-accent); }
.q-fact-num {
  font-family: var(--q-font-head); font-size: 2rem; font-weight: 800;
  color: var(--q-accent); line-height: 1;
}
.q-fact-label { font-size: .78rem; color: var(--q-text-muted); margin-top: 6px; }

/* IMAGE BLOCK */
.q-img-block {
  border-radius: var(--q-radius-lg); overflow: hidden;
  margin-bottom: 32px; border: 1px solid var(--q-border);
  position: relative;
}
.q-img-block img { width: 100%; height: 320px; object-fit: cover; }
.q-img-block figcaption {
  padding: 10px 16px; font-size: .74rem; color: var(--q-text-dim);
  background: var(--q-card); font-style: italic;
  font-family: var(--q-font-mono);
}

/* HIGHLIGHT BOX */
.q-highlight {
  background: linear-gradient(135deg, #0a1628 0%, #0d1a30 100%);
  border: 1px solid rgba(0,136,255,0.2); border-radius: var(--q-radius-lg);
  padding: 28px 30px; margin-bottom: 32px; position: relative; overflow: hidden;
}
.q-highlight::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, var(--q-accent-glow) 0%, transparent 70%);
}
.q-highlight h3 {
  font-family: var(--q-font-head); font-size: 1.15rem;
  color: var(--q-accent); margin-bottom: 12px; font-weight: 700;
}
.q-highlight p { font-size: .92rem; color: var(--q-text-muted); line-height: 1.7; }
.q-highlight ul { margin: 12px 0 0 16px; }
.q-highlight ul li {
  font-size: .88rem; color: var(--q-text-muted); margin-bottom: 6px;
  position: relative; padding-left: 18px;
}
.q-highlight ul li::before {
  content: '—'; position: absolute; left: 0; color: var(--q-accent); font-weight: 700;
}

/* QUOTE */
.q-quote {
  border-left: 3px solid var(--q-accent); padding: 20px 24px;
  margin: 28px 0; background: var(--q-card); border-radius: 0 var(--q-radius) var(--q-radius) 0;
}
.q-quote blockquote {
  font-family: var(--q-font-head); font-size: 1.08rem; font-style: italic;
  color: var(--q-text); line-height: 1.55; margin-bottom: 8px;
}
.q-quote cite { font-size: .75rem; color: var(--q-text-dim); font-style: normal; font-family: var(--q-font-mono); }

/* TREND CARDS */
.q-trend-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px;
}
.q-trend-card {
  background: var(--q-card); border: 1px solid var(--q-border);
  border-radius: var(--q-radius); padding: 22px;
  transition: transform .25s, border-color .3s;
}
.q-trend-card:hover { transform: translateY(-4px); border-color: var(--q-accent); }
.q-trend-card h4 {
  font-family: var(--q-font-head); font-size: .95rem;
  color: var(--q-white); margin-bottom: 8px;
}
.q-trend-card p { font-size: .84rem; color: var(--q-text-muted); }
.q-trend-tag {
  display: inline-block; font-family: var(--q-font-mono); font-size: .62rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--q-accent); background: var(--q-accent-dim);
  padding: 3px 8px; border-radius: 3px; margin-top: 10px;
}

/* SIDEBAR (right, for articles) */
.q-aside-grid { display: grid; grid-template-columns: 1fr 300px; gap: 36px; }
.q-sidebar { display: flex; flex-direction: column; gap: 24px; }
.q-sidebar-block {
  background: var(--q-card); border: 1px solid var(--q-border);
  border-radius: var(--q-radius); padding: 20px;
}
.q-sidebar-block h4 {
  font-family: var(--q-font-head); font-size: .95rem; color: var(--q-white);
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--q-border);
}
.q-sb-item {
  padding: 10px 0; border-bottom: 1px solid var(--q-border); display: block;
  transition: all .2s;
}
.q-sb-item:last-child { border-bottom: none; }
.q-sb-item:hover { padding-left: 6px; }
.q-sb-item span {
  display: block; font-family: var(--q-font-mono); font-size: .6rem;
  text-transform: uppercase; letter-spacing: .1em; color: var(--q-accent); margin-bottom: 3px;
}
.q-sb-item strong { display: block; font-size: .85rem; color: var(--q-text); font-weight: 500; line-height: 1.4; }
.q-sb-item p { font-size: .76rem; color: var(--q-text-dim); margin-top: 3px; }

/* NEWSLETTER */
.q-newsletter {
  background: linear-gradient(135deg, var(--q-accent), #0055cc);
  border-radius: var(--q-radius-lg); padding: 28px 24px; text-align: center;
  margin-bottom: 32px;
}
.q-newsletter h4 {
  font-family: var(--q-font-head); font-size: 1.1rem; color: var(--q-white); margin-bottom: 8px;
}
.q-newsletter p { font-size: .82rem; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.q-nl-form { display: flex; gap: 8px; }
.q-nl-input {
  flex: 1; padding: 10px 14px; border-radius: 6px; border: none;
  font-family: var(--q-font-body); font-size: .85rem; background: rgba(255,255,255,.15);
  color: var(--q-white); outline: none;
}
.q-nl-input::placeholder { color: rgba(255,255,255,.5); }
.q-nl-btn {
  padding: 10px 20px; background: var(--q-white); color: var(--q-bg);
  font-weight: 700; font-size: .82rem; border: none; border-radius: 6px;
  cursor: pointer; transition: opacity .2s; font-family: var(--q-font-body);
  min-height: 44px;
}
.q-nl-btn:hover { opacity: .88; }

/* CONCLUSION BOX */
.q-conclusion {
  background: var(--q-card); border: 1px solid var(--q-border);
  border-top: 3px solid var(--q-accent);
  border-radius: var(--q-radius-lg); padding: 30px; margin-bottom: 32px;
}
.q-conclusion h3 {
  font-family: var(--q-font-head); font-size: 1.3rem; color: var(--q-white);
  margin-bottom: 14px;
}
.q-conclusion p { font-size: .92rem; color: var(--q-text-muted); margin-bottom: 10px; }

/* TAGS */
.q-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.q-tag {
  font-family: var(--q-font-mono); font-size: .7rem; background: var(--q-card);
  border: 1px solid var(--q-border); color: var(--q-text-muted);
  padding: 4px 12px; border-radius: 4px; transition: all .2s; cursor: default;
}
.q-tag:hover { border-color: var(--q-accent); color: var(--q-accent); }

/* COOKIE BANNER */
#q-cookie-toggle { display: none; }
.q-cookie-banner {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  background: var(--q-surface); border: 1px solid var(--q-border);
  border-radius: var(--q-radius-lg); padding: 20px 24px;
  max-width: 380px; box-shadow: 0 8px 40px rgba(0,0,0,.5);
  transition: transform .3s, opacity .3s;
}
#q-cookie-toggle:checked ~ .q-cookie-banner { transform: translateY(200%); opacity: 0; pointer-events: none; }
.q-cookie-banner p { font-size: .82rem; color: var(--q-text-muted); margin-bottom: 14px; line-height: 1.5; }
.q-cookie-banner a { color: var(--q-accent); text-decoration: underline; }
.q-cookie-actions { display: flex; gap: 8px; }
.q-cookie-accept {
  padding: 8px 18px; background: var(--q-accent); color: var(--q-white);
  border: none; border-radius: 6px; font-size: .8rem; font-weight: 600;
  cursor: pointer; font-family: var(--q-font-body); min-height: 44px;
}
.q-cookie-decline {
  padding: 8px 18px; background: transparent; color: var(--q-text-muted);
  border: 1px solid var(--q-border); border-radius: 6px; font-size: .8rem;
  cursor: pointer; font-family: var(--q-font-body); min-height: 44px;
}

/* FOOTER */
.q-footer { background: var(--q-surface); border-top: 1px solid var(--q-border); padding: 48px 24px 24px; margin-top: 40px; }
.q-footer-inner { max-width: 1340px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.q-footer h5 {
  font-family: var(--q-font-mono); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--q-accent); margin-bottom: 14px;
}
.q-footer p { font-size: .82rem; color: var(--q-text-dim); line-height: 1.7; }
.q-footer a { display: block; font-size: .82rem; color: var(--q-text-muted); margin-bottom: 8px; transition: color .2s; }
.q-footer a:hover { color: var(--q-accent); }
.q-footer-bottom {
  max-width: 1340px; margin: 0 auto; padding-top: 20px;
  border-top: 1px solid var(--q-border); display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.q-footer-copy { font-size: .74rem; color: var(--q-text-dim); }
.q-footer-links { display: flex; gap: 16px; }
.q-footer-links a { font-size: .74rem; color: var(--q-text-dim); margin-bottom: 0; }
.q-footer-disclaimer {
  max-width: 1340px; margin: 16px auto 0; font-size: .72rem;
  color: var(--q-text-dim); line-height: 1.6; opacity: .7;
}

/* LEGAL PAGES */
.q-legal { max-width: 800px; margin: 0 auto; padding: 48px 24px 60px; }
.q-legal h1 {
  font-family: var(--q-font-head); font-size: 2rem; color: var(--q-white);
  margin-bottom: 24px; font-weight: 800;
}
.q-legal h2 {
  font-family: var(--q-font-head); font-size: 1.15rem; color: var(--q-accent);
  margin: 28px 0 12px; font-weight: 700;
}
.q-legal p { font-size: .9rem; color: var(--q-text-muted); margin-bottom: 12px; }

/* SUCCESS PAGE */
.q-success {
  text-align: center; padding: 120px 24px 80px; max-width: 600px; margin: 0 auto;
}
.q-success h1 {
  font-family: var(--q-font-head); font-size: 2.4rem; color: var(--q-white);
  margin-bottom: 16px; font-weight: 800;
}
.q-success p { font-size: 1.05rem; color: var(--q-text-muted); margin-bottom: 24px; }
.q-success-btn {
  display: inline-block; padding: 12px 32px; background: var(--q-accent);
  color: var(--q-white); border-radius: 8px; font-weight: 700;
  font-size: .9rem; transition: opacity .2s;
}
.q-success-btn:hover { opacity: .85; }

/* 404 */
.q-404 { text-align: center; padding: 100px 24px 60px; max-width: 700px; margin: 0 auto; }
.q-404 h1 {
  font-family: var(--q-font-head); font-size: 6rem; color: var(--q-accent);
  font-weight: 900; letter-spacing: -.04em; margin-bottom: 10px;
}
.q-404 h2 {
  font-family: var(--q-font-head); font-size: 1.5rem; color: var(--q-white);
  margin-bottom: 16px;
}
.q-404 p { color: var(--q-text-muted); margin-bottom: 28px; }
.q-404-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.q-404-links a {
  padding: 10px 20px; background: var(--q-card); border: 1px solid var(--q-border);
  border-radius: 6px; font-size: .85rem; color: var(--q-text); transition: all .2s;
}
.q-404-links a:hover { border-color: var(--q-accent); color: var(--q-accent); }

/* ANIMATIONS */
@keyframes q-fade-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.q-anim { animation: q-fade-in .6s ease forwards; }
.q-anim-d1 { animation-delay: .1s; opacity: 0; }
.q-anim-d2 { animation-delay: .2s; opacity: 0; }
.q-anim-d3 { animation-delay: .3s; opacity: 0; }

/* ARTICLE PAGE */
.q-article-single { max-width: 780px; }
.q-article-single h2 {
  font-family: var(--q-font-head); font-size: 1.4rem; color: var(--q-white);
  margin: 32px 0 14px; padding-left: 16px; border-left: 3px solid var(--q-accent);
  font-weight: 700;
}
.q-article-single p { font-size: .95rem; color: var(--q-text); margin-bottom: 14px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .q-layout { grid-template-columns: 1fr; }
  .q-rail { display: none; }
  .q-content { padding: 28px 0 40px; }
  .q-aside-grid { grid-template-columns: 1fr; }
  .q-footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .q-nav { display: none; }
  .q-burger { display: flex; }
  .q-two-col { grid-template-columns: 1fr; }
  .q-fact-strip { grid-template-columns: 1fr; }
  .q-trend-grid { grid-template-columns: 1fr; }
  .q-hero h1 { font-size: 1.8rem; }
  .q-nl-form { flex-direction: column; }
  .q-footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .q-hero h1 { font-size: 1.5rem; }
  .q-topbar { font-size: .65rem; }
}
