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

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --accent: #1e5eff;
  --accent-hover: #1549cc;
  --line: #e6e6e6;
  --gray: #6b7280;
  --light-bg: #f7f8fa;
  --badge-bg: #eef2ff;
  --badge-text: #1e5eff;
  --radius: 4px;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
button, .btn { cursor: pointer; font-family: var(--font); }

/* HEADER */
.site-header { border-bottom: 2px solid var(--text); position: sticky; top: 0; background: var(--bg); z-index: 100; }
.header-top { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 12px 20px; }
.logo { font-family: var(--font-serif); font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.logo a { color: inherit; }
.header-nav { display: flex; gap: 24px; align-items: center; }
.header-nav a { color: var(--text); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; position: relative; padding-bottom: 2px; }
.header-nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width .25s; }
.header-nav a:hover::after { width: 100%; }
.header-nav a:hover { color: var(--accent); }
.search-box { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.search-box input { border: none; padding: 6px 10px; font-size: 13px; outline: none; width: 140px; }
.search-box button { background: var(--accent); border: none; color: #fff; padding: 6px 10px; font-size: 13px; }
.burger { display: none; background: none; border: none; font-size: 24px; }

/* HERO */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero img { width: 100%; height: 460px; object-fit: cover; }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); padding: 40px 20px 30px; color: #fff; }
.hero-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius); margin-bottom: 10px; letter-spacing: 0.5px; }
.hero h1 { font-family: var(--font-serif); font-size: 36px; line-height: 1.2; margin-bottom: 8px; }
.hero .lead { font-size: 16px; opacity: .9; max-width: 600px; }

/* LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 30px 0; }

/* FEED */
.feed-item { padding: 24px 0; border-bottom: 1px solid var(--line); transition: background .2s; }
.feed-item:hover { background: var(--light-bg); }
.feed-item .badge { display: inline-block; background: var(--badge-bg); color: var(--badge-text); font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius); margin-bottom: 6px; }
.feed-item h3 { font-family: var(--font-serif); font-size: 22px; margin-bottom: 6px; }
.feed-item h3 a { color: var(--text); }
.feed-item h3 a:hover { color: var(--accent); }
.feed-item .excerpt { font-size: 14px; color: var(--gray); margin-bottom: 4px; }
.feed-item .meta { font-size: 12px; color: var(--gray); }

/* SIDEBAR */
.sidebar { position: sticky; top: 80px; align-self: start; }
.sidebar-block { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sidebar-block h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 12px; color: var(--accent); }
.sidebar-block ul { list-style: none; }
.sidebar-block li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sidebar-block li:last-child { border-bottom: none; }
.sidebar-block li a { color: var(--text); }
.sidebar-block li a:hover { color: var(--accent); }
.sidebar-block .number { font-weight: 700; color: var(--accent); margin-right: 8px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud span { background: var(--light-bg); padding: 4px 10px; font-size: 12px; border-radius: var(--radius); border: 1px solid var(--line); }

/* NEWSLETTER */
.newsletter { background: var(--light-bg); border: 1px solid var(--line); padding: 24px; border-radius: var(--radius); }
.newsletter h4 { font-family: var(--font-serif); font-size: 18px; margin-bottom: 8px; }
.newsletter p { font-size: 13px; color: var(--gray); margin-bottom: 12px; }
.newsletter input[type=email] { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; font-size: 14px; }
.newsletter .btn { width: 100%; background: var(--accent); color: #fff; border: none; padding: 10px; font-weight: 600; font-size: 14px; border-radius: var(--radius); transition: background .2s; }
.newsletter .btn:hover { background: var(--accent-hover); }

/* SECTIONS */
.section-title { font-family: var(--font-serif); font-size: 26px; border-bottom: 2px solid var(--text); padding-bottom: 8px; margin-bottom: 20px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.feature-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .25s, transform .25s; }
.feature-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.feature-card h3 { font-family: var(--font-serif); font-size: 20px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray); }

/* ARTICLE PAGE */
.article-page { max-width: 760px; margin: 0 auto; padding: 40px 20px; }
.article-page h1 { font-family: var(--font-serif); font-size: 36px; line-height: 1.25; margin-bottom: 10px; }
.article-page .article-meta { font-size: 13px; color: var(--gray); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article-page p { margin-bottom: 18px; }
.article-page h2 { font-family: var(--font-serif); font-size: 24px; margin: 30px 0 12px; }
.article-page h3 { font-size: 18px; margin: 24px 0 10px; }
.article-page ul, .article-page ol { margin: 0 0 18px 24px; }
.article-page li { margin-bottom: 6px; }
.article-page blockquote { border-left: 3px solid var(--accent); padding: 16px 20px; margin: 24px 0; background: var(--light-bg); font-style: italic; font-family: var(--font-serif); font-size: 18px; color: var(--gray); }
.article-page .tip-box { background: var(--badge-bg); border-left: 3px solid var(--accent); padding: 16px 20px; margin: 20px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.article-page .tip-box strong { color: var(--accent); }
.article-page .disclaimer { background: var(--light-bg); padding: 16px; border-radius: var(--radius); margin-top: 30px; font-size: 13px; color: var(--gray); border: 1px solid var(--line); }
.article-page img { border-radius: var(--radius); margin: 24px 0; }
.read-more { display: inline-block; background: var(--accent); color: #fff; padding: 10px 24px; border-radius: var(--radius); font-weight: 600; font-size: 14px; transition: background .2s; }
.read-more:hover { background: var(--accent-hover); color: #fff; }

/* ABOUT SECTION */
.about-section { background: var(--light-bg); padding: 40px 0; margin: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-inner { max-width: 760px; margin: 0 auto; text-align: center; padding: 0 20px; }
.about-inner h2 { font-family: var(--font-serif); font-size: 26px; margin-bottom: 12px; }
.about-inner p { color: var(--gray); font-size: 15px; max-width: 600px; margin: 0 auto; }

/* HERO ARTICLE */
.hero-article { padding: 30px 0; border-bottom: 1px solid var(--line); }
.hero-article h2 { font-family: var(--font-serif); font-size: 24px; margin: 20px 0 10px; }
.hero-article p { margin-bottom: 14px; }
.hero-article blockquote { border-left: 3px solid var(--accent); padding: 14px 18px; margin: 20px 0; background: var(--light-bg); font-style: italic; font-family: var(--font-serif); font-size: 17px; color: var(--gray); }

/* LEGAL */
.legal-page { max-width: 760px; margin: 0 auto; padding: 40px 20px; }
.legal-page h1 { font-family: var(--font-serif); font-size: 30px; margin-bottom: 20px; }
.legal-page h2 { font-size: 20px; margin: 24px 0 10px; }
.legal-page p { margin-bottom: 14px; font-size: 15px; color: #444; }

/* SUCCESS & 404 */
.page-message { text-align: center; padding: 80px 20px; }
.page-message h1 { font-family: var(--font-serif); font-size: 42px; margin-bottom: 14px; }
.page-message p { color: var(--gray); margin-bottom: 20px; font-size: 16px; }

/* FOOTER */
.site-footer { border-top: 2px solid var(--text); padding: 30px 0; margin-top: 40px; background: var(--light-bg); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-serif); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.footer-copy { font-size: 12px; color: var(--gray); }
.footer-links { display: flex; gap: 16px; font-size: 13px; }
.footer-links a { color: var(--gray); }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer { font-size: 11px; color: var(--gray); max-width: 400px; line-height: 1.5; }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 20px; right: 20px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.12); padding: 20px; border-radius: var(--radius); max-width: 360px; z-index: 200; font-size: 13px; transition: opacity .3s, transform .3s; }
#cookie-toggle { display: none; }
#cookie-toggle:checked ~ .cookie-banner { display: none; }
.cookie-banner p { margin-bottom: 10px; color: var(--gray); }
.cookie-btns { display: flex; gap: 8px; }
.cookie-btns label, .cookie-btns a { padding: 8px 14px; border-radius: var(--radius); font-size: 12px; font-weight: 600; text-align: center; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.cookie-accept { background: var(--accent); color: #fff; border: none; cursor: pointer; }
.cookie-decline { background: var(--light-bg); color: var(--text); border: 1px solid var(--line); cursor: pointer; }

/* MOBILE */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .burger { display: block; }
  .search-box { display: none; }
  .main-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .hero img { height: 280px; }
  .footer-inner { flex-direction: column; }
}

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.feed-item, .feature-card, .sidebar-block { animation: fadeUp .5s ease both; }
.feed-item:nth-child(2) { animation-delay: .1s; }
.feed-item:nth-child(3) { animation-delay: .2s; }
.feature-card:nth-child(2) { animation-delay: .1s; }
.feature-card:nth-child(3) { animation-delay: .2s; }
