/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --c-primary: #1a3a6b;
  --c-accent: #00a8a8;
  --c-bg: #f0f4ff;
  --c-bg-sec: #e8eef8;
  --c-text: #1a1a2e;
  --c-white: #ffffff;
  --c-border: #d0d8e8;
  --c-shadow: rgba(26,58,107,0.08);
  --radius: 4px;
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  --max-w: 1140px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

a { display: inline-block; text-align: center; text-decoration: none; color: var(--c-accent); transition: color var(--transition); }
a:hover { color: var(--c-primary); }

img { max-width: 100%; height: auto; border-radius: var(--radius); }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--c-primary); line-height: 1.3; }
h1 { font-size: 2.4rem; font-weight: 900; margin-bottom: 0.6em; }
h2 { font-size: 1.7rem; font-weight: 700; margin: 1.8em 0 0.6em; }
h3 { font-size: 1.3rem; font-weight: 700; margin: 1.2em 0 0.4em; }

p { margin-bottom: 1.1em; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* HEADER */
.site-header { background: var(--c-white); border-bottom: 2px solid var(--c-border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: var(--max-w); margin: 0 auto; }
.site-logo { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 900; color: var(--c-primary); text-decoration: none; letter-spacing: -0.5px; }
.site-logo:hover { color: var(--c-accent); }

.nav-list { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-list a { font-size: 0.95rem; font-weight: 600; color: var(--c-text); padding: 6px 0; position: relative; }
.nav-list a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--c-accent); transition: width var(--transition); }
.nav-list a:hover::after { width: 100%; }
.nav-list a:hover { color: var(--c-accent); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--c-primary); border-radius: 2px; transition: var(--transition); }

/* BREADCRUMBS */
.breadcrumbs { padding: 16px 0; font-size: 0.88rem; color: #6b7a94; }
.breadcrumbs a { color: var(--c-accent); font-weight: 600; }
.breadcrumbs span { margin: 0 8px; }

/* ARTICLE */
.article-layout { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 60px; }
.article-layout.with-sidebar { grid-template-columns: 1fr 320px; }

article { background: var(--c-white); border-radius: var(--radius); padding: 40px; box-shadow: 0 2px 16px var(--c-shadow); }

.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.9rem; color: #6b7a94; margin-bottom: 20px; align-items: center; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta-divider { width: 4px; height: 4px; border-radius: 50%; background: var(--c-border); }
.category-badge { background: var(--c-accent); color: var(--c-white); padding: 3px 12px; border-radius: var(--radius); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; }

.article-lead { font-size: 1.18rem; font-weight: 400; color: #3d4a60; border-left: 4px solid var(--c-accent); padding-left: 20px; margin-bottom: 2em; line-height: 1.8; }

.article-img { margin: 2em 0; border-radius: var(--radius); overflow: hidden; }
.article-img img { width: 100%; display: block; }

/* PULL QUOTE */
.pull-quote { background: var(--c-bg-sec); border-left: 4px solid var(--c-accent); padding: 28px 32px; margin: 2em 0; border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-heading); font-size: 1.15rem; font-style: italic; color: var(--c-primary); position: relative; }
.pull-quote::before { content: '\201C'; font-size: 4rem; color: var(--c-accent); opacity: 0.3; position: absolute; top: -10px; left: 12px; font-family: Georgia, serif; }
.pull-quote cite { display: block; font-size: 0.88rem; font-style: normal; color: #6b7a94; margin-top: 10px; }

/* SUMMARY BOX */
.summary-box { background: var(--c-bg-sec); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 2em; }
.summary-box h3 { margin-top: 0; color: var(--c-accent); }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget { background: var(--c-white); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 12px var(--c-shadow); }
.sidebar-widget h3 { font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--c-accent); }

/* TAG CLOUD */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { background: var(--c-bg-sec); color: var(--c-primary); padding: 5px 14px; border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; border: 1px solid var(--c-border); transition: all var(--transition); }
.tag-cloud a:hover { background: var(--c-accent); color: var(--c-white); border-color: var(--c-accent); }

/* ARCHIVE CALENDAR */
.archive-list { list-style: none; }
.archive-list li { padding: 8px 0; border-bottom: 1px solid var(--c-bg-sec); }
.archive-list li:last-child { border-bottom: none; }
.archive-list a { color: var(--c-text); font-weight: 600; font-size: 0.92rem; }
.archive-list a:hover { color: var(--c-accent); }

/* DOWNLOAD WIDGET */
.download-widget { background: linear-gradient(135deg, var(--c-primary), #2a5299); color: var(--c-white); border-radius: var(--radius); padding: 32px; text-align: center; margin: 2em 0; }
.download-widget h3 { color: var(--c-white); margin-top: 0; }
.download-widget p { color: rgba(255,255,255,0.85); margin-bottom: 1.2em; }
.download-widget .btn { background: var(--c-accent); color: var(--c-white); padding: 12px 28px; border-radius: var(--radius); font-weight: 700; font-size: 1rem; border: none; cursor: pointer; transition: all var(--transition); }
.download-widget .btn:hover { background: #00c4c4; transform: translateY(-2px); }

/* POPULAR BLOCK */
.popular-block { background: var(--c-bg-sec); border-radius: var(--radius); padding: 28px; margin: 2em 0; }
.popular-block h3 { color: var(--c-primary); margin-top: 0; }
.popular-list { list-style: none; counter-reset: popular; }
.popular-list li { counter-increment: popular; padding: 12px 0; border-bottom: 1px solid var(--c-border); display: flex; align-items: baseline; gap: 12px; }
.popular-list li::before { content: counter(popular); font-family: var(--font-heading); font-size: 1.4rem; font-weight: 900; color: var(--c-accent); min-width: 28px; }
.popular-list li:last-child { border-bottom: none; }
.popular-list a { color: var(--c-text); font-weight: 600; }
.popular-list a:hover { color: var(--c-accent); }

/* TRADITIONAL APPROACHES */
.traditional-block { background: var(--c-white); border: 2px solid var(--c-border); border-radius: var(--radius); padding: 28px; margin: 2em 0; }
.traditional-block h3 { color: var(--c-primary); margin-top: 0; border-bottom: 2px solid var(--c-accent); padding-bottom: 10px; }
.approach-item { padding: 16px 0; border-bottom: 1px solid var(--c-bg-sec); }
.approach-item:last-child { border-bottom: none; }
.approach-item h4 { color: var(--c-accent); margin-bottom: 4px; }

/* READ ALSO */
.read-also { margin: 3em 0 2em; }
.read-also h3 { font-size: 1.3rem; margin-bottom: 20px; }
.read-also-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.read-also-card { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px; transition: all var(--transition); }
.read-also-card:hover { box-shadow: 0 4px 20px var(--c-shadow); transform: translateY(-3px); border-color: var(--c-accent); }
.read-also-card h4 { margin-bottom: 8px; }
.read-also-card h4 a { color: var(--c-primary); font-weight: 700; text-align: left; }
.read-also-card p { font-size: 0.92rem; color: #6b7a94; margin: 0; }

/* SUBSCRIPTION FORM */
.subscribe-section { background: var(--c-bg-sec); border-radius: var(--radius); padding: 40px; text-align: center; margin: 2em 0; }
.subscribe-section h3 { margin-top: 0; }
.subscribe-section p { color: #6b7a94; margin-bottom: 1.4em; }
.subscribe-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.subscribe-form input[type='email'] {
  flex: 1; padding: 14px 18px; border: 2px solid var(--c-border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; outline: none; transition: border var(--transition);
}
.subscribe-form input[type='email']:focus { border-color: var(--c-accent); }
.subscribe-form button {
  background: var(--c-accent); color: var(--c-white); border: none; padding: 14px 28px;
  border-radius: var(--radius); font-weight: 700; font-size: 1rem; cursor: pointer;
  font-family: var(--font-body); transition: all var(--transition); white-space: nowrap;
}
.subscribe-form button:hover { background: #008f8f; transform: translateY(-2px); }

/* TAGS LIST */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; padding-top: 1.5em; border-top: 1px solid var(--c-border); }
.article-tags a { background: var(--c-bg); color: var(--c-primary); padding: 4px 14px; border-radius: var(--radius); font-size: 0.84rem; font-weight: 600; border: 1px solid var(--c-border); }
.article-tags a:hover { background: var(--c-accent); color: var(--c-white); border-color: var(--c-accent); }

/* DISCLAIMER */
.disclaimer { background: #fff8e6; border-left: 4px solid #e6a800; padding: 18px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 2em 0 0; font-size: 0.92rem; color: #5a5030; }

/* FOOTER */
.site-footer { background: var(--c-primary); color: rgba(255,255,255,0.8); padding: 48px 0 24px; margin-top: 60px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.footer-brand .site-logo { color: var(--c-white); font-size: 1.4rem; }
.footer-brand p { margin-top: 8px; font-size: 0.9rem; max-width: 320px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.92rem; font-weight: 600; }
.footer-links a:hover { color: var(--c-accent); }
.footer-disclaimer { font-size: 0.82rem; color: rgba(255,255,255,0.55); border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; margin-top: 20px; line-height: 1.6; }
.footer-bottom { text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 24px; }

/* COOKIE BANNER */
#cookie-dismiss { display: none; }
.cookie-banner {
  position: fixed; bottom: 20px; right: 20px; z-index: 999;
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 20px 24px; max-width: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15); font-size: 0.9rem;
  animation: cookieSlide 0.5s ease-out;
}
@keyframes cookieSlide { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner p { margin-bottom: 14px; color: var(--c-text); line-height: 1.5; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; }
.cookie-btn { padding: 8px 18px; border-radius: var(--radius); font-weight: 700; font-size: 0.88rem; cursor: pointer; transition: all var(--transition); border: none; }
.cookie-btn.accept { background: var(--c-accent); color: var(--c-white); }
.cookie-btn.accept:hover { background: #008f8f; }
.cookie-btn.decline { background: var(--c-bg-sec); color: var(--c-text); }
.cookie-btn.decline:hover { background: var(--c-border); }
#cookie-dismiss:checked ~ .cookie-banner { display: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .article-layout.with-sidebar { grid-template-columns: 1fr; }
  .nav-list { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--c-white); flex-direction: column; padding: 20px; gap: 16px; border-bottom: 2px solid var(--c-border); box-shadow: 0 8px 24px var(--c-shadow); }
  .nav-list.active { display: flex; }
  .burger { display: flex; }
  article { padding: 24px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .subscribe-form { flex-direction: column; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 1.5rem; }
  .read-also-grid { grid-template-columns: 1fr; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}


/* LEGAL PAGES */
.legal-page { background: var(--c-white); border-radius: var(--radius); padding: 48px; box-shadow: 0 2px 16px var(--c-shadow); margin: 20px 0 40px; max-width: 820px; }
.legal-page h1 { margin-bottom: 0.3em; }
.legal-updated { font-size: 0.9rem; color: #6b7a94; margin-bottom: 2em; padding-bottom: 1em; border-bottom: 1px solid var(--c-border); }
.legal-page h2 { font-size: 1.3rem; margin-top: 2em; margin-bottom: 0.6em; color: var(--c-primary); }
.legal-page p { margin-bottom: 1em; color: var(--c-text); }

/* SUCCESS PAGE */
.success-page { text-align: center; padding: 100px 20px; max-width: 560px; margin: 0 auto; }
.success-icon { margin-bottom: 28px; animation: successPulse 2s ease-in-out infinite; }
@keyframes successPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.success-page h1 { font-size: 2.2rem; margin-bottom: 0.5em; color: var(--c-primary); }
.success-page p { font-size: 1.1rem; color: #6b7a94; margin-bottom: 2em; line-height: 1.7; }
.btn-back { display: inline-block; background: var(--c-accent); color: var(--c-white); padding: 14px 32px; border-radius: var(--radius); font-weight: 700; font-size: 1rem; transition: all var(--transition); text-decoration: none; }
.btn-back:hover { background: #008f8f; transform: translateY(-2px); color: var(--c-white); }

/* ERROR PAGE */
.error-page { text-align: center; padding: 80px 20px; max-width: 560px; margin: 0 auto; }
.error-illustration { margin-bottom: 20px; }
.error-page h1 { font-size: 5rem; color: var(--c-primary); margin-bottom: 0; line-height: 1; }
.error-subtitle { font-family: var(--font-heading); font-size: 1.4rem; color: var(--c-accent); margin-bottom: 1em; font-weight: 700; }
.error-page p { font-size: 1.05rem; color: #6b7a94; margin-bottom: 2em; }

@media (max-width: 900px) {
  .legal-page { padding: 28px 20px; }
  .success-page { padding: 60px 20px; }
  .error-page h1 { font-size: 4rem; }
}