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

:root {
  --bg-primary: #0A0A1A;
  --bg-secondary: #12122B;
  --bg-card: rgba(255,255,255,0.04);
  --crimson: #C41E3A;
  --crimson-light: #E63946;
  --gold: #D4A843;
  --gold-light: #F5D061;
  --jade: #3D9970;
  --text-primary: #F0EDE6;
  --text-secondary: #A8A3B3;
  --text-muted: #6B6580;
  --border: rgba(212,168,67,0.15);
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.1);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 20% 0%, rgba(196,30,58,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 100%, rgba(212,168,67,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', Georgia, serif; color: var(--text-primary); line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }

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

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.8rem; }
.logo span { background: linear-gradient(135deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; padding: 8px 0; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gold); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* HERO */
.hero {
  text-align: center;
  padding: 80px 0 40px;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  padding: 8px 20px; border-radius: 50px;
  font-size: 0.85rem; color: var(--gold); margin-bottom: 24px;
  animation: fadeInDown 0.6s ease;
}
.hero h1 { margin-bottom: 20px; animation: fadeInUp 0.6s ease 0.1s both; }
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto;
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* CALCULATOR */
.calculator-section { padding: 40px 0 80px; }
.calculator-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow), 0 0 60px rgba(196,30,58,0.05);
  position: relative;
  overflow: hidden;
}
.calculator-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--gold), var(--jade));
}

.form-group { margin-bottom: 24px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }

.date-inputs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-select, .form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  appearance: none;
  cursor: pointer;
}
.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
}
.form-select option { background: var(--bg-secondary); color: var(--text-primary); }

.btn-calculate {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-light));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}
.btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196,30,58,0.4);
}
.btn-calculate:active { transform: translateY(0); }

/* RESULTS */
.results-container {
  margin-top: 40px;
  display: none;
  animation: fadeInUp 0.5s ease;
}
.results-container.visible { display: block; }

.result-header {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, rgba(196,30,58,0.1), rgba(212,168,67,0.1));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.result-animal-icon { font-size: 4rem; margin-bottom: 12px; animation: bounceIn 0.6s ease; }
.result-animal-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.result-year-element { color: var(--text-secondary); margin-top: 4px; font-size: 1rem; }

.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.result-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}
.result-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.result-card-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; }
.result-card-value { font-size: 1.1rem; font-weight: 600; color: var(--gold); }

.traits-section { margin-top: 24px; }
.traits-section h3 { margin-bottom: 16px; font-size: 1.2rem; }
.traits-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.traits-list li {
  background: rgba(212,168,67,0.1);
  border: 1px solid rgba(212,168,67,0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--gold-light);
}

.compatibility-section { margin-top: 24px; }
.compat-row { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.compat-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}
.compat-best { background: rgba(61,153,112,0.15); border: 1px solid rgba(61,153,112,0.3); color: var(--jade); }
.compat-worst { background: rgba(196,30,58,0.1); border: 1px solid rgba(196,30,58,0.25); color: var(--crimson-light); }

/* ZODIAC WHEEL */
.zodiac-wheel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 60px 0;
}
.zodiac-wheel-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.zodiac-wheel-item:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.zodiac-wheel-item .emoji { font-size: 2.2rem; margin-bottom: 8px; }
.zodiac-wheel-item .name { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1rem; }
.zodiac-wheel-item .years { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* FAQ */
.faq-section { padding: 60px 0; }
.faq-section h2 { text-align: center; margin-bottom: 40px; }
.faq-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%; padding: 20px 24px;
  background: none; border: none;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
}
.faq-question:hover { color: var(--gold); }
.faq-question .icon { transition: var(--transition); font-size: 1.2rem; }
.faq-item.active .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 20px; }

/* RELATED ARTICLES */
.related-section { padding: 60px 0; }
.related-section h2 { text-align: center; margin-bottom: 40px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.blog-card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(196,30,58,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative;
}
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.blog-card-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; color: var(--text-primary); line-height: 1.4; }
.blog-card-excerpt { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; flex: 1; }
.blog-card-link { color: var(--gold); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.blog-card-link:hover { gap: 10px; }

/* BLOG PAGE */
.blog-hero { text-align: center; padding: 80px 0 40px; }
.blog-hero h1 { margin-bottom: 16px; }
.blog-hero p { color: var(--text-secondary); font-size: 1.1rem; }

/* BLOG POST */
.post-header { padding: 80px 0 40px; text-align: center; max-width: 800px; margin: 0 auto; }
.post-meta { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--text-muted); font-size: 0.9rem; margin-top: 16px; }
.post-meta span { display: flex; align-items: center; gap: 6px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; justify-content: center; list-style: none; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }

.post-content {
  max-width: 800px; margin: 0 auto; padding: 40px 24px 80px;
}
.post-content h2 { margin: 40px 0 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.post-content h3 { margin: 28px 0 12px; }
.post-content p { margin-bottom: 18px; color: var(--text-secondary); }
.post-content ul, .post-content ol { margin: 0 0 18px 24px; color: var(--text-secondary); }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--glass);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.cta-box {
  background: linear-gradient(135deg, rgba(196,30,58,0.12), rgba(212,168,67,0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}
.cta-box h3 { margin-bottom: 12px; }
.cta-box p { color: var(--text-secondary); margin-bottom: 20px; }
.cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-light));
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(196,30,58,0.4); color: #fff; }

.toc {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.toc h4 { margin-bottom: 12px; font-family: 'Inter', sans-serif; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text-secondary); font-size: 0.95rem; }
.toc a:hover { color: var(--gold); }

/* FOOTER */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounceIn { 0% { opacity: 0; transform: scale(0.3); } 50% { transform: scale(1.05); } 70% { transform: scale(0.95); } 100% { opacity: 1; transform: scale(1); } }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* 404 */
.error-page { text-align: center; padding: 120px 0; }
.error-page h1 { font-size: 6rem; background: linear-gradient(135deg, var(--crimson), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.error-page p { color: var(--text-secondary); margin: 16px 0 32px; font-size: 1.1rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .zodiac-wheel { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: rgba(10,10,26,0.98); flex-direction: column; padding: 20px; gap: 0; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--glass-border); }
  .mobile-toggle { display: block; }
  .calculator-card { padding: 28px 20px; }
  .date-inputs { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .zodiac-wheel { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .compat-row { flex-direction: column; }
}
@media (max-width: 480px) {
  .zodiac-wheel { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .result-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
}
