/* LumaAPI Modern Astrology Platform - Core Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');
@import url('./responsive.css');
@import url('./animations.css');

:root {
  --bg-dark: #090d16;
  --bg-card: #111827;
  --bg-card-hover: #1e293b;
  --bg-input: #0f172a;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #38bdf8;
  --primary-gold: #f59e0b;
  --primary-gold-hover: #d97706;
  --primary-gold-soft: rgba(245, 158, 11, 0.12);
  --accent-cyan: #38bdf8;
  --accent-cyan-soft: rgba(56, 189, 248, 0.12);
  --accent-indigo: #818cf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px -5px rgba(245, 158, 11, 0.15);
  --container-max: 1200px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #151d30 0%, #090d16 65%);
  background-attachment: fixed;
  color: var(--text-main);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.section-heading h2,
.brand-logo,
.brand-badge,
.hero-tagline,
.card h3,
.form-header h3,
.legal-content h1,
.legal-content h2,
.legal-content h3,
.zodiac-name,
.cookie-title,
.modal-header h3,
.footer-brand h4,
.footer-col h5 {
  font-family: var(--font-heading);
}

button, input, select, textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
}

textarea.form-control {
  resize: vertical;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--primary-gold-soft);
  color: var(--primary-gold);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 4px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary-gold);
  color: #090d16;
  border: 1px solid #f59e0b;
}

.btn-primary:hover {
  background: var(--primary-gold-hover);
  color: #090d16;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 6px 14px;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  padding: 6px;
  border-radius: var(--radius-sm);
}

/* Page Layouts */
main {
  flex: 1;
}

.hero-section {
  padding: 64px 0 48px;
  text-align: center;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-cyan-soft);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 4vw + 1rem, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 840px;
  margin: 0 auto 18px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw + 0.8rem, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* Cards & Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.card-highlight {
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, rgba(17, 24, 39, 0.95) 100%);
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.section-heading p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Astrology Form */
.form-container {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.form-header {
  text-align: center;
  margin-bottom: 24px;
}

.form-header h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 6px;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.form-group .form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-error {
  color: #f87171;
  font-size: 0.82rem;
  margin-top: 4px;
  display: none;
}

.form-error.active {
  display: block;
}

/* Trust / Transparency Box */
.trust-banner {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 40px 0;
}

.trust-banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-icon {
  font-size: 1.3rem;
  color: var(--primary-gold);
  flex-shrink: 0;
  line-height: 1;
}

.trust-item h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
  width: 100%;
  background: transparent;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--accent-cyan);
  transition: transform 0.2s ease;
}

.faq-answer {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Legal Document Styles */
.legal-content {
  max-width: 860px;
  margin: 40px auto 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.legal-content h1 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content h2 {
  font-size: 1.35rem;
  color: #f1f5f9;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-content p, .legal-content li {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.96rem;
  line-height: 1.65;
}

.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.placeholder-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px dashed rgba(245, 158, 11, 0.45);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.9em;
}

/* Zodiac Grid & Badges */
.zodiac-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zodiac-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.zodiac-symbol {
  font-size: 2.4rem;
  margin-bottom: 8px;
  display: inline-block;
}

.zodiac-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.zodiac-dates {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.zodiac-element {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.element-fire { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.element-earth { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.element-air { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.element-water { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

/* Reading Result Box */
.reading-result {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 32px;
  box-shadow: var(--shadow-glow);
  display: none;
}

.reading-result.visible {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 860px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 100;
  display: none;
}

.cookie-banner.visible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content {
  flex: 1;
  min-width: 280px;
}

.cookie-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.cookie-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Cookie Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 110;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 1.3rem;
  color: #fff;
}

.modal-close {
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  padding: 4px;
}

.cookie-category {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cookie-category-header h4 {
  font-size: 1rem;
  color: #fff;
}

.cookie-category p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: 0.2s;
  border-radius: 24px;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary-gold);
}

input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer */
.site-footer {
  background: #080c14;
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 32px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 16px;
}

.footer-col h5 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-disclaimer-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 28px;
}

.footer-disclaimer-box p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}
