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

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

html { scroll-behavior: smooth; }
a { display: inline-block; text-align: center; }

:root {
  --primary: #111827;
  --accent: #ff6b35;
  --bg: #ffffff;
  --bg-sec: #f9fafb;
  --text: #111827;
  --r: 8px;
  --sh: 4px 4px 0 #ff6b35;
  --sh-dk: 4px 4px 0 #111827;
  --fh: 'Space Grotesk', sans-serif;
  --fb: 'Inter', sans-serif;
}

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

body {
  font-family: var(--fb);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: var(--fh); line-height: 1.2; }
img { max-width: 100%; height: auto; display: block; }

/* HEADER */
.site-header {
  background: var(--primary);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  border-bottom: 2px solid #ff6b3522;
}

.site-logo {
  font-family: var(--fh);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-block;
  text-align: center;
  padding: 0.25rem 0;
}
.site-nav a:hover { color: var(--accent); }

.burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.5rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .burger { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid #1f2937;
    z-index: 99;
  }
  .site-nav.open { display: flex; }
  .site-nav a { text-align: left; width: 100%; }
}

/* COOKIE BANNER – CSS only */
#cookieConsent { display: none; }
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 1.5rem;
  max-width: 320px;
  font-size: 0.875rem;
}
.cookie-banner p { margin-bottom: 1rem; color: var(--text); line-height: 1.5; }
.cookie-banner a { color: var(--accent); display: inline; text-align: left; }
.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.ck-accept {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--r);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.875rem;
  font-family: var(--fh);
  transition: background 0.2s;
  display: inline-block;
  text-align: center;
}
.ck-decline {
  background: transparent;
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--r);
  cursor: pointer;
  border: 1px solid #e5e7eb;
  font-size: 0.875rem;
  transition: border-color 0.2s;
  display: inline-block;
  text-align: center;
}
.ck-decline:hover { border-color: var(--primary); }
#cookieConsent:checked + .cookie-banner { display: none; }

/* HERO */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.cat-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.25rem 0.85rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
  text-decoration: none;
  text-align: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; line-height: 1.1; }
.hero-lead { color: #9ca3af; font-size: 1.1rem; line-height: 1.75; margin-bottom: 1.5rem; max-width: 720px; }
.hero-meta { display: flex; gap: 2rem; color: #6b7280; font-size: 0.85rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-meta strong { color: #d1d5db; }
.hero-img-wrap { margin-top: 2.5rem; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.hero-img-wrap img { width: 100%; max-height: 500px; object-fit: cover; }

/* ARTICLE CONTENT */
.article-content { max-width: 740px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.article-content h2 {
  font-size: 1.55rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f3f4f6;
}
.article-content p { margin-bottom: 1.25rem; color: #374151; line-height: 1.8; font-size: 1.05rem; }
.article-content ul { margin: 0.5rem 0 1.5rem 2rem; color: #374151; }
.article-content ul li { margin-bottom: 0.5rem; line-height: 1.7; }

blockquote {
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  background: var(--bg-sec);
  border-radius: 0 var(--r) var(--r) 0;
  box-shadow: -4px 0 0 var(--accent);
}
blockquote p { font-style: italic; color: var(--primary) !important; font-size: 1.2rem !important; font-family: var(--fh); margin-bottom: 0 !important; }
.pqa { font-size: 0.85rem !important; color: #9ca3af !important; margin-top: 0.5rem !important; font-style: normal !important; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2.5rem 0; }
.tag {
  background: var(--bg-sec);
  border: 1px solid #e5e7eb;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.article-disclaimer {
  background: #fff7f3;
  border: 1px solid #fcd9c6;
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  color: #92400e;
  margin-top: 2rem;
  line-height: 1.65;
}

/* POSTS SECTION */
.posts-section { padding: 5rem 1.5rem; background: var(--bg); }
.posts-inner { max-width: 1200px; margin: 0 auto; }
.section-heading {
  font-family: var(--fh);
  font-size: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}
.section-heading::after {
  content: '';
  display: block;
  height: 4px;
  width: 50%;
  background: var(--accent);
  margin-top: 0.4rem;
  border-radius: 2px;
}

.posts-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  background: var(--bg);
  border: 1.5px solid #e5e7eb;
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 2px 2px 0 #e5e7eb;
  text-decoration: none;
  color: inherit;
  display: block;
  text-align: left;
}
.post-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--accent); }
.post-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary) 0%, #1f2937 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent);
}
.post-body { padding: 1.25rem 1.5rem 1.5rem; }
.post-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 0.6rem; display: block; text-align: left; }
.post-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--primary); line-height: 1.4; }
.post-card p { font-size: 0.875rem; color: #6b7280; line-height: 1.6; }

/* SUBSCRIBE */
.subscribe-section { background: var(--primary); color: #fff; padding: 5rem 1.5rem; text-align: center; }
.subscribe-section h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
.subscribe-section > p { color: #9ca3af; margin-bottom: 2rem; font-size: 1.05rem; }
.sub-form { display: flex; max-width: 500px; margin: 0 auto; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.sub-form input[type='email'] {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.25rem;
  border: 2px solid #374151;
  border-radius: var(--r);
  background: #1f2937;
  color: #fff;
  font-family: var(--fb);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.sub-form input[type='email']:focus { outline: none; border-color: var(--accent); }
.sub-form input[type='email']::placeholder { color: #6b7280; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 2rem;
  border: 2px solid var(--accent);
  border-radius: var(--r);
  font-weight: 700;
  cursor: pointer;
  font-family: var(--fh);
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-accent:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 rgba(255,107,53,.5); }

/* ARTICLE PAGE HEADER */
.art-header { background: var(--primary); color: #fff; padding: 5rem 1.5rem 3rem; text-align: center; }
.art-header h1 { font-size: clamp(1.8rem, 5vw, 3rem); max-width: 760px; margin: 1rem auto 1.5rem; line-height: 1.15; }
.art-header .meta { display: flex; justify-content: center; gap: 2rem; color: #6b7280; font-size: 0.875rem; flex-wrap: wrap; }
.art-header .meta strong { color: #d1d5db; }
.art-hero-img { width: 100%; max-height: 480px; object-fit: cover; display: block; }

/* RELATED */
.related-section { background: var(--bg-sec); padding: 4rem 1.5rem; }
.related-inner { max-width: 1200px; margin: 0 auto; }

/* FOOTER */
footer { background: #0d1117; color: #9ca3af; padding: 3.5rem 1.5rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; gap: 3rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid #1f2937; margin-bottom: 1.5rem; }
.footer-brand { flex: 1; min-width: 200px; }
.footer-logo { font-family: var(--fh); font-size: 1.3rem; color: #fff; text-decoration: none; font-weight: 700; display: block; margin-bottom: 0.75rem; text-align: left; }
.footer-tagline { font-size: 0.875rem; line-height: 1.6; color: #6b7280; }
.footer-nav h4 { color: #e5e7eb; font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1.5px; }
.footer-nav a { display: block; color: #6b7280; text-decoration: none; font-size: 0.875rem; padding: 0.25rem 0; transition: color 0.2s; text-align: left; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; padding-top: 1rem; }
.footer-copy { font-size: 0.8rem; color: #4b5563; }
.footer-disclaimer { font-size: 0.78rem; color: #4b5563; line-height: 1.6; max-width: 600px; text-align: left; }

/* POLICY PAGES */
.policy-hero { background: var(--primary); color: #fff; padding: 4.5rem 1.5rem; text-align: center; }
.policy-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.policy-body { max-width: 800px; margin: 0 auto; padding: 4rem 1.5rem; }
.policy-body .updated { color: #6b7280; font-size: 0.875rem; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e5e7eb; }
.policy-body h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; color: var(--primary); }
.policy-body p, .policy-body li { color: #374151; line-height: 1.8; margin-bottom: 1rem; font-size: 1rem; }
.policy-body ul { margin: 0.5rem 0 1.5rem 2rem; }
.policy-body a { color: var(--accent); display: inline; text-align: left; }

/* SUCCESS PAGE */
.success-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; background: var(--bg-sec); padding: 4rem 1.5rem; text-align: center; }
.success-card { background: var(--bg); border: 2px solid var(--primary); border-radius: var(--r); box-shadow: var(--sh); padding: 4rem 3rem; max-width: 520px; }
.success-icon { width: 72px; height: 72px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2.2rem; color: #fff; font-family: var(--fh); font-weight: 700; }
.success-card h1 { font-size: 2.25rem; margin-bottom: 0.75rem; }
.success-card p { color: #6b7280; margin-bottom: 2rem; line-height: 1.65; font-size: 1.05rem; }

/* 404 PAGE */
.error-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; padding: 4rem 1.5rem; text-align: center; }
.error-inner { max-width: 600px; }
.error-code { display: block; font-family: var(--fh); font-size: clamp(6rem, 20vw, 12rem); font-weight: 700; color: var(--accent); line-height: 1; letter-spacing: -4px; }
.error-inner h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0.5rem 0 1rem; }
.error-inner p { color: #6b7280; margin-bottom: 2.5rem; font-size: 1.05rem; }
.btn-white { display: inline-block; text-align: center; padding: 0.85rem 2.5rem; border: 2px solid #fff; border-radius: var(--r); color: #fff; text-decoration: none; font-weight: 700; font-family: var(--fh); transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.15s; }
.btn-white:hover { background: var(--accent); border-color: var(--accent); transform: translate(-2px,-2px); box-shadow: 4px 4px 0 rgba(255,107,53,.5); }

/* MISC */
@media (max-width: 640px) {
  .sub-form { flex-direction: column; align-items: stretch; }
  .sub-form input[type='email'], .btn-accent { width: 100%; }
  .cookie-banner { right: 1rem; left: 1rem; max-width: none; }
  .success-card { padding: 2.5rem 1.5rem; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}
