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

html {scroll-behavior: smooth;}
html, body {overflow-x:hidden;}
a {display: inline-block; text-align: center;}

:root {
  --bg: #FAFAFA;
  --bg-alt: #F0F0F0;
  --text: #1A1A1A;
  --text-muted: #5A5A5A;
  --accent: #2C5F7C;
  --accent-light: #3A7CA5;
  --accent-bg: #E8F0F5;
  --border: #D0D0D0;
  --white: #FFFFFF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --max-w: 780px;
  --radius: 4px;
  --transition: 0.25s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600&display=swap');

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95);
}
.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-logo:hover { color: var(--accent); }
.site-nav { display: flex; gap: 20px; align-items: center; }
.site-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  transition: color var(--transition);
}
.site-nav a:hover { color: var(--accent); }

/* ── BREADCRUMBS ── */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--accent); text-decoration: none; font-size: 0.8rem; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; }

/* ── HERO IMAGE ── */
.hero-image {
  max-width: 100%;
  margin: 20px auto 0;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  filter: grayscale(15%) contrast(1.05);
  transition: filter var(--transition);
}
.hero-image img:hover { filter: grayscale(0%) contrast(1); }

/* ── ARTICLE ── */
.article-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 28px 0 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article-meta .dot { width: 4px; height: 4px; background: var(--border); border-radius: 50%; }
.article-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.article-body { margin-bottom: 40px; }
.article-body p { margin-bottom: 18px; color: var(--text); }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 36px 0 14px;
  color: var(--text);
  letter-spacing: -0.01em;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text);
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--accent-bg);
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body ul, .article-body ol {
  margin: 16px 0 16px 24px;
  color: var(--text);
}
.article-body li { margin-bottom: 8px; }

/* ── TAGS ── */
.article-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.article-tags a {
  font-size: 0.78rem;
  padding: 5px 14px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 20px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.article-tags a:hover { background: var(--accent); color: var(--white); }

/* ── RELATED ── */
.related-section {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  padding: 0 24px;
}
.related-section h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
}
.related-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.related-card .rc-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.related-card .rc-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

/* ── SUBSCRIBE ── */
.subscribe-section {
  max-width: var(--max-w);
  margin: 0 auto 50px;
  padding: 36px 32px;
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.subscribe-section h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.subscribe-section p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.subscribe-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.subscribe-form input[type="email"] {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  width: 280px;
  max-width: 100%;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}
.subscribe-form input[type="email"]:focus { border-color: var(--accent); }
.subscribe-form button {
  padding: 10px 24px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition);
}
.subscribe-form button:hover { background: var(--accent-light); }

/* ── FOOTER ── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 40px 24px;
  font-size: 0.82rem;
  line-height: 1.7;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.footer-inner a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color var(--transition);
  font-size: 0.82rem;
}
.footer-inner a:hover { color: var(--white); }
.footer-links { display: flex; gap: 20px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.footer-disclaimer {
  margin-top: 16px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── LEGAL PAGES ── */
.legal-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 60px;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text);
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text);
}
.legal-page p { margin-bottom: 14px; color: var(--text-muted); }
.legal-page ul { margin: 12px 0 12px 24px; color: var(--text-muted); }
.legal-page li { margin-bottom: 6px; }

/* ── SUCCESS ── */
.success-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}
.success-page h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.success-page p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.success-page a.btn-home {
  padding: 14px 32px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition);
}
.success-page a.btn-home:hover { background: var(--accent-light); }

/* ── 404 ── */
.page-404 {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}
.page-404 .code-404 {
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  opacity: 0.2;
  margin-bottom: 12px;
}
.page-404 h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.page-404 p {
  color: var(--text-muted);
  margin-bottom: 28px;
}
.page-404 a.btn-home {
  padding: 14px 32px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition);
}
.page-404 a.btn-home:hover { background: var(--accent-light); }

/* ── COOKIE MODAL ── */
.cookie-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  max-width: calc(100vw - 40px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 9999;
  display: none;
  animation: slideUp 0.35s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.cookie-modal p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.cookie-modal .cookie-btns { display: flex; gap: 10px; }
.cookie-modal .cookie-btns button {
  flex: 1;
  padding: 9px 14px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.cookie-modal .cookie-btns button.accept {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.cookie-modal .cookie-btns button.accept:hover { background: var(--accent-light); }
.cookie-modal .cookie-btns button.decline:hover { background: var(--bg-alt); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .article-title { font-size: 1.7rem; }
  .hero-image img { height: 240px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 0.75rem; }
  .related-grid { grid-template-columns: 1fr; }
  .subscribe-form input[type="email"] { width: 100%; }
  .page-404 .code-404 { font-size: 4.5rem; }
  .success-page h1 { font-size: 2rem; }
}
