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

:root {
  --navy: #0a0e27;
  --navy-deep: #060919;
  --violet: #6b4c9a;
  --violet-soft: #9b6dcc;
  --violet-muted: #3d2a5c;
  --ivory: #f5f0e8;
  --ivory-dim: #d9d2c6;
  --gold: #c9a84c;
  --gold-muted: #a08636;
  --gold-light: #e8d48a;
  --panel-1: linear-gradient(180deg, #0a0e27 0%, #151338 100%);
  --panel-2: linear-gradient(180deg, #151338 0%, #1a1040 100%);
  --panel-3: linear-gradient(180deg, #1a1040 0%, #0f1a3a 100%);
  --panel-4: linear-gradient(180deg, #0f1a3a 0%, #0a0e27 100%);
  --radius: 12px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  background: var(--navy);
  color: var(--ivory);
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

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

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 14, 39, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding: 0.8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
}

.site-logo {
  font-size: 1.6rem; font-weight: 700; letter-spacing: 2px;
  color: var(--gold); text-transform: uppercase;
}

.site-logo span { color: var(--violet-soft); }

.nav-links { display: none; list-style: none; gap: 1.5rem; }
.nav-links a { color: var(--ivory-dim); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--gold); }

.burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ivory); transition: var(--transition); }

.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6, 9, 25, 0.97); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-nav.active { display: flex; }
.mobile-nav a { color: var(--ivory); font-size: 1.3rem; text-transform: uppercase; letter-spacing: 2px; }
.mobile-nav a:hover { color: var(--gold); }
.nav-close { position: absolute; top: 1.2rem; right: 1.2rem; background: none; border: none; color: var(--ivory); font-size: 2rem; cursor: pointer; min-width: 44px; min-height: 44px; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .burger { display: none; }
}

/* ===== HERO ===== */
.hero-story {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: var(--panel-1); position: relative; padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-story::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(107, 76, 154, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(201, 168, 76, 0.08) 0%, transparent 50%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 3%) scale(1.05); }
}

.hero-tag {
  display: inline-block; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 4px; color: var(--gold); border: 1px solid var(--gold-muted);
  padding: 0.4rem 1.2rem; border-radius: 50px; margin-bottom: 2rem;
  position: relative; z-index: 1;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 700;
  line-height: 1.15; max-width: 800px; position: relative; z-index: 1;
  margin-bottom: 1.5rem; color: var(--ivory);
}

.hero-title em { font-style: italic; color: var(--gold); }

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--ivory-dim);
  max-width: 560px; position: relative; z-index: 1; margin-bottom: 2rem;
}

.hero-scroll {
  position: relative; z-index: 1; margin-top: 2rem;
  animation: scrollBounce 2s ease-in-out infinite;
  color: var(--gold-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== STORY PANELS ===== */
.story-panel {
  min-height: 100vh; padding: 5rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.story-panel:nth-child(odd) { background: var(--panel-2); }
.story-panel:nth-child(even) { background: var(--panel-3); }

.panel-inner {
  max-width: 900px; width: 100%;
  animation: panelFadeIn 0.8s ease-out;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 5px;
  color: var(--violet-soft); margin-bottom: 1rem;
}

.panel-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700;
  line-height: 1.2; margin-bottom: 1.5rem; color: var(--ivory);
}

.panel-heading .gold { color: var(--gold); }

.panel-text {
  font-size: 1.05rem; color: var(--ivory-dim); margin-bottom: 1.5rem;
  max-width: 700px;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin: 2rem 0;
}

@media (min-width: 600px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards-grid.three { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: var(--radius); padding: 1.8rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 12px 40px rgba(107, 76, 154, 0.12);
}

.card-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.card-title { font-size: 1.15rem; font-weight: 700; color: var(--ivory); margin-bottom: 0.5rem; }
.card-desc { font-size: 0.95rem; color: var(--ivory-dim); }

/* ===== QUOTE ===== */
.quote-block {
  background: var(--panel-4); padding: 4rem 1.5rem; text-align: center;
  position: relative;
}

.quote-block::before {
  content: '\201C'; position: absolute; top: 1rem; left: 50%;
  transform: translateX(-50%); font-size: 8rem; color: rgba(201, 168, 76, 0.08);
  font-family: Georgia, serif; line-height: 1;
}

.quote-text {
  font-size: clamp(1.2rem, 3vw, 1.6rem); font-style: italic;
  color: var(--ivory); max-width: 700px; margin: 0 auto 1rem;
  position: relative; z-index: 1;
}

.quote-author {
  font-size: 0.85rem; color: var(--gold); text-transform: uppercase;
  letter-spacing: 3px;
}

/* ===== CINEMATIC IMAGE ===== */
.cinematic-frame {
  width: 100%; padding: 0; overflow: hidden;
  position: relative;
}

.cinematic-frame img {
  width: 100%; height: 50vh; object-fit: cover;
  border-radius: 0; transition: transform 1.2s ease;
}

.cinematic-frame:hover img { transform: scale(1.03); }

.cinematic-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10, 14, 39, 0.85));
  padding: 3rem 2rem 1.5rem; font-size: 0.85rem;
  color: var(--ivory-dim); letter-spacing: 1px;
}

/* ===== SIDEBAR LAYOUT ===== */
.content-with-sidebar {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem; max-width: 1200px; margin: 0 auto;
  padding: 3rem 1.5rem;
}

@media (min-width: 900px) {
  .content-with-sidebar { grid-template-columns: 2fr 1fr; }
}

.sidebar-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(107, 76, 154, 0.2);
  border-radius: var(--radius); padding: 1.5rem;
  position: sticky; top: 5rem; align-self: start;
}

.sidebar-title {
  font-size: 1rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--gold); margin-bottom: 1rem;
  padding-bottom: 0.8rem; border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.sidebar-link {
  display: block; padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--ivory-dim); font-size: 0.95rem;
  transition: color var(--transition), padding-left var(--transition);
}

.sidebar-link:hover { color: var(--gold); padding-left: 0.5rem; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: linear-gradient(135deg, rgba(107, 76, 154, 0.12), rgba(201, 168, 76, 0.08));
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.8rem; margin: 2rem 0;
}

.highlight-box p { color: var(--ivory); font-size: 1rem; }

/* ===== SUBSCRIBE ===== */
.subscribe-section {
  background: linear-gradient(135deg, #1a1040, #0f1a3a);
  padding: 4rem 1.5rem; text-align: center;
}

.subscribe-inner { max-width: 560px; margin: 0 auto; }

.subscribe-title {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700;
  color: var(--ivory); margin-bottom: 0.8rem;
}

.subscribe-desc { color: var(--ivory-dim); margin-bottom: 1.5rem; font-size: 0.95rem; }

.subscribe-form {
  display: flex; flex-direction: column; gap: 0.8rem;
}

@media (min-width: 500px) {
  .subscribe-form { flex-direction: row; }
}

.subscribe-form input[type="email"] {
  flex: 1; padding: 0.9rem 1.2rem; border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius); background: rgba(255, 255, 255, 0.05);
  color: var(--ivory); font-size: 1rem; font-family: inherit;
  transition: border-color var(--transition);
  min-height: 44px;
}

.subscribe-form input[type="email"]:focus {
  outline: none; border-color: var(--gold);
}

.subscribe-form input[type="email"]::placeholder { color: var(--ivory-dim); }

.btn-subscribe {
  padding: 0.9rem 2rem; background: var(--gold);
  color: var(--navy); font-weight: 700; border: none;
  border-radius: var(--radius); cursor: pointer; font-size: 1rem;
  font-family: inherit; text-transform: uppercase; letter-spacing: 1px;
  transition: background var(--transition), transform var(--transition);
  min-height: 44px; min-width: 44px;
}

.btn-subscribe:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ===== ARTICLES FEED ===== */
.articles-feed {
  padding: 4rem 1.5rem; max-width: 1200px; margin: 0 auto;
}

.feed-title {
  font-size: 1.6rem; font-weight: 700; color: var(--ivory);
  margin-bottom: 2rem; text-align: center;
}

.feed-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}

@media (min-width: 600px) { .feed-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .feed-grid { grid-template-columns: 1fr 1fr 1fr; } }

.feed-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(107, 76, 154, 0.15);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feed-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(107, 76, 154, 0.15);
}

.feed-card-img { height: 200px; overflow: hidden; }
.feed-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.feed-card:hover .feed-card-img img { transform: scale(1.08); }

.feed-card-body { padding: 1.5rem; }
.feed-card-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--violet-soft); margin-bottom: 0.5rem; }
.feed-card-title { font-size: 1.15rem; font-weight: 700; color: var(--ivory); margin-bottom: 0.5rem; }
.feed-card-excerpt { font-size: 0.9rem; color: var(--ivory-dim); margin-bottom: 1rem; }
.feed-card-link { font-size: 0.85rem; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-deep); padding: 3rem 1.5rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.footer-inner {
  max-width: 900px; margin: 0 auto; text-align: center;
}

.footer-logo { font-size: 1.3rem; font-weight: 700; color: var(--gold); letter-spacing: 2px; margin-bottom: 1rem; }

.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem; margin-bottom: 1.5rem;
}

.footer-links a { color: var(--ivory-dim); font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold); }

.footer-copy { font-size: 0.8rem; color: rgba(245, 240, 232, 0.4); margin-bottom: 1rem; }

.footer-disclaimer {
  font-size: 0.75rem; color: rgba(245, 240, 232, 0.3);
  max-width: 700px; margin: 0 auto; line-height: 1.6;
}

/* ===== COOKIES BANNER ===== */
#cookie-toggle { display: none; }

.cookie-banner {
  position: fixed; bottom: 1rem; right: 1rem; left: 1rem;
  background: rgba(10, 14, 39, 0.96); backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius); padding: 1.5rem;
  z-index: 200; transition: transform 0.5s ease, opacity 0.5s ease;
  max-width: 420px; margin-left: auto;
}

#cookie-toggle:checked ~ .cookie-banner { transform: translateY(200%); opacity: 0; pointer-events: none; }

.cookie-banner p { font-size: 0.85rem; color: var(--ivory-dim); margin-bottom: 1rem; }
.cookie-banner a { color: var(--gold); }

.cookie-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.cookie-actions label,
.cookie-actions a.cookie-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.2rem; border-radius: var(--radius);
  font-size: 0.85rem; cursor: pointer; min-height: 44px; min-width: 44px;
  font-family: inherit; transition: background var(--transition);
}

.cookie-accept {
  background: var(--gold); color: var(--navy); font-weight: 700; border: none;
}
.cookie-accept:hover { background: var(--gold-light); }

.cookie-decline {
  background: transparent; color: var(--ivory-dim);
  border: 1px solid rgba(245, 240, 232, 0.2);
}
.cookie-decline:hover { border-color: var(--ivory); color: var(--ivory); }

/* ===== LEGAL PAGES ===== */
.legal-page {
  max-width: 800px; margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.legal-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700;
  color: var(--ivory); margin-bottom: 2rem;
}

.legal-section { margin-bottom: 2rem; }
.legal-section h2 {
  font-size: 1.2rem; font-weight: 700; color: var(--gold);
  margin-bottom: 0.8rem;
}
.legal-section p {
  font-size: 0.95rem; color: var(--ivory-dim); line-height: 1.8;
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 6rem 1.5rem; background: var(--panel-2);
}

.success-icon { font-size: 4rem; margin-bottom: 1.5rem; }
.success-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; color: var(--ivory); margin-bottom: 1rem; }
.success-desc { color: var(--ivory-dim); max-width: 500px; margin-bottom: 2rem; font-size: 1.05rem; }

.btn-home {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 2.5rem; background: var(--gold); color: var(--navy);
  font-weight: 700; border-radius: var(--radius); font-size: 1rem;
  text-transform: uppercase; letter-spacing: 1px;
  transition: background var(--transition), transform var(--transition);
  min-height: 44px;
}
.btn-home:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ===== 404 PAGE ===== */
.error-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 6rem 1.5rem; background: var(--panel-3);
}

.error-code {
  font-size: clamp(5rem, 15vw, 10rem); font-weight: 700;
  color: rgba(201, 168, 76, 0.15); line-height: 1;
}

.error-title { font-size: 1.5rem; font-weight: 700; color: var(--ivory); margin-bottom: 1rem; }
.error-desc { color: var(--ivory-dim); margin-bottom: 2rem; }

.error-links { display: flex; flex-direction: column; gap: 0.8rem; align-items: center; }
.error-links a { color: var(--gold); font-size: 0.95rem; }

/* ===== ARTICLE PAGE ===== */
.article-hero {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 6rem 1.5rem 3rem; background: var(--panel-1);
  position: relative;
}

.article-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px; background: linear-gradient(transparent, var(--navy));
}

.article-category {
  display: inline-block; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 4px; color: var(--violet-soft); margin-bottom: 1rem;
}

.article-h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 700;
  color: var(--ivory); max-width: 750px; line-height: 1.2; margin-bottom: 1rem;
}

.article-meta { font-size: 0.85rem; color: var(--ivory-dim); }

.article-body {
  max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4rem;
}

.article-body h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--ivory);
  margin: 2.5rem 0 1rem; position: relative; padding-left: 1rem;
  border-left: 3px solid var(--gold);
}

.article-body p {
  font-size: 1.05rem; color: var(--ivory-dim); margin-bottom: 1.2rem;
}

.article-body .inline-img {
  margin: 2rem 0; border-radius: var(--radius); overflow: hidden;
}

.article-body .inline-img img {
  width: 100%; height: 45vh; object-fit: cover;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; }
.tag-item {
  padding: 0.4rem 1rem; border: 1px solid rgba(107, 76, 154, 0.3);
  border-radius: 50px; font-size: 0.8rem; color: var(--violet-soft);
}

/* ===== UTILITY ===== */
.text-gold { color: var(--gold); }
.text-violet { color: var(--violet-soft); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

/* ===== NUMBERED LIST ===== */
.numbered-list { counter-reset: item; list-style: none; padding: 0; }
.numbered-list li {
  counter-increment: item; position: relative;
  padding: 1rem 0 1rem 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--ivory-dim); font-size: 0.95rem;
}
.numbered-list li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute; left: 0; top: 1rem;
  font-size: 1.2rem; font-weight: 700; color: var(--gold);
}

/* ===== DIVIDER ===== */
.story-divider {
  text-align: center; padding: 2rem 0;
}
.story-divider span {
  display: inline-block; width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===== STATS ROW ===== */
.stats-row {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; margin: 2rem 0; text-align: center;
}

@media (min-width: 600px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }

.stat-item {}
.stat-num { font-size: 2rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 0.8rem; color: var(--ivory-dim); text-transform: uppercase; letter-spacing: 1px; }
