/* =============================================
   ORACLE NUSANTARA - BAZI.CSS
   Empat Pilar Takdir — Super Premium
   ============================================= */

/* ========== CSS VARIABLES ========== */
:root {
  --gold: #D4AF37;
  --gold-light: #F3E5AB;
  --bg-dark: #0A0A0C;
  --text-muted: #A0A0B0;
  --text-dim: #606070;
  --wood: #96C93D;
  --fire: #FF6B6B;
  --earth: #C7B198;
  --metal: #9B59B6;
  --water: #4ECDC4;
  --success: #64C864;
  --danger: #FF8A8A;
  --warning: #FFB347;
}

/* ========== RESET & BASE ========== */
* { box-sizing: border-box; }

body {
  background: #0A0A0C;
  background-image: 
    radial-gradient(ellipse at 30% 20%, rgba(155,89,182,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(212,175,55,0.03) 0%, transparent 50%);
  font-family: 'Inter', sans-serif;
  color: #E8E8E8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.oracle-card { max-width: 1000px; margin: 0 auto; }

/* ========== NAVBAR ========== */
.navbar {
  background: rgba(10,10,12,0.97) !important;
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--gold) !important;
  padding: 14px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
}

.navbar .logo a {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--gold) !important;
  text-decoration: none !important;
}

.nav-links {
  display: flex !important;
  gap: 16px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.nav-links a {
  color: #E8E8E8 !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  transition: color 0.2s !important;
}

.nav-links a:hover { color: var(--gold) !important; }
.nav-links a.active { color: var(--gold) !important; font-weight: 700 !important; }

/* ========== HERO SECTION ========== */
.mystic-header { text-align: center; padding: 40px 20px 20px; }

.mystic-header .header-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(155,89,182,0.3));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.mystic-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--gold-light);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.mystic-header .subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
}

.header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
  color: var(--gold);
  font-size: 0.7rem;
  opacity: 0.5;
}

.header-divider::before,
.header-divider::after {
  content: '';
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ========== FORM INPUTS ========== */
.input-field { margin-bottom: 18px; }

.input-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
}

.input-field input,
.input-field select {
  width: 100%;
  background: rgba(10,10,12,0.8);
  border: 2px solid rgba(212,175,55,0.2);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1rem;
  color: #E8E8E8;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s;
}

.input-field input:focus,
.input-field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212,175,55,0.1);
}

.input-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 4px;
  font-style: italic;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--gold), #C9A830);
  border: none;
  color: #0A0A0C;
  padding: 18px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s;
  letter-spacing: 1px;
  box-shadow: 0 8px 30px rgba(212,175,55,0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(212,175,55,0.5);
}

.btn-premium {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none;
  color: #0A0A0C;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.btn-premium:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(212,175,55,0.3);
}

.btn-pdf, .btn-share {
  background: transparent;
  border: 2px solid rgba(212,175,55,0.4);
  color: var(--gold-light);
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 0.85rem;
}

.btn-pdf:hover, .btn-share:hover {
  background: var(--gold);
  color: #0A0A0C;
  border-color: var(--gold);
}

/* ========== 4 PILARS GRID ========== */
.bazi-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.pillar-card {
  background: rgba(15,15,20,0.8);
  border-radius: 20px;
  padding: 28px 16px;
  text-align: center;
  border: 1px solid rgba(212,175,55,0.15);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  transition: width 0.3s;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.pillar-card:hover::before { width: 100%; }

.pillar-card.year::before { background: var(--wood); }
.pillar-card.month::before { background: var(--fire); }
.pillar-card.day::before { background: var(--gold); }
.pillar-card.hour::before { background: var(--water); }

.pillar-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.pillar-stem {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Cormorant Garamond', serif;
}

.pillar-branch {
  font-size: 1.5rem;
  margin-top: 4px;
  color: var(--text-muted);
}

.pillar-element {
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ========== DAY MASTER SECTION ========== */
.daymaster-section {
  background: linear-gradient(145deg, rgba(20,20,25,0.95), rgba(10,10,12,0.95));
  border-radius: 24px;
  padding: 40px 32px;
  margin: 28px 0;
  text-align: center;
  border: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.daymaster-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 3px 3px;
}

.daymaster-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.daymaster-name {
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  margin: 16px 0;
}

.daymaster-element {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.daymaster-desc {
  color: var(--text-muted);
  max-width: 550px;
  margin: 16px auto 0;
  line-height: 1.8;
  font-weight: 300;
}

/* ========== 10 GODS GRID ========== */
.tengods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.tengod-card {
  background: rgba(15,15,20,0.7);
  border-radius: 20px;
  padding: 24px 16px;
  text-align: center;
  border: 1px solid rgba(212,175,55,0.12);
  transition: all 0.3s;
}

.tengod-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tengod-pillar {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.tengod-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.tengod-name {
  font-size: 1.2rem;
  color: var(--gold-light);
  font-weight: 600;
  margin: 8px 0;
  font-family: 'Cormorant Garamond', serif;
}

.tengod-interp {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* ========== ANALYSIS CARDS ========== */
.analysis-section-card {
  background: rgba(15,15,20,0.7);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid rgba(212,175,55,0.12);
  animation: fadeIn 0.5s ease;
}

.analysis-section-card h4 {
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(212,175,55,0.15);
  padding-bottom: 12px;
}

.analysis-section-card p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

/* ========== STRENGTH BAR ========== */
.strength-container {
  background: rgba(15,15,20,0.6);
  border-radius: 16px;
  padding: 24px;
  margin: 16px 0;
  border: 1px solid rgba(212,175,55,0.15);
}

.strength-bar-bg {
  width: 100%;
  height: 14px;
  background: rgba(212,175,55,0.1);
  border-radius: 7px;
  margin: 12px 0;
  overflow: hidden;
}

.strength-bar-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 1.2s ease;
  background: linear-gradient(90deg, var(--danger), var(--warning), var(--success));
}

/* ========== TOKEN BADGE ========== */
.token-badge {
  background: rgba(212,175,55,0.15);
  border: 1.5px solid rgba(212,175,55,0.3);
  border-radius: 50px;
  padding: 10px 24px;
  display: inline-block;
  color: var(--gold-light);
  font-weight: 600;
}

/* ========== CROSS-SELL ========== */
.cross-sell {
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02));
  border-radius: 24px;
  padding: 32px;
  margin-top: 40px;
  text-align: center;
  border: 1px solid rgba(212,175,55,0.2);
}

.cross-sell h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-light);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.cross-sell .btn-link {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 12px;
}

.cross-sell .btn-link:hover {
  background: var(--gold);
  color: #0A0A0C;
}

/* ========== PREMIUM MESSAGE ========== */
.premium-message {
  margin-top: 24px;
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid rgba(212,175,55,0.15);
  padding: 32px 0;
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.2s;
}

.footer a:hover { color: var(--gold-light); }

/* ========== LOADING ========== */
#loadingOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10,10,12,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

.spinner {
  width: 50px; height: 50px;
  border: 3px solid rgba(212,175,55,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.pulse-gold {
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.6); }
  70% { box-shadow: 0 0 0 20px rgba(212,175,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
  .bazi-pillars { grid-template-columns: repeat(2, 1fr); }
  .tengods-grid { grid-template-columns: repeat(2, 1fr); }
  .daymaster-name { font-size: 2.8rem; }
  .footer { flex-direction: column; text-align: center; }
  .footer a { margin: 0 10px; }
}

@media (max-width: 400px) {
  .bazi-pillars { grid-template-columns: 1fr; }
  .tengods-grid { grid-template-columns: 1fr; }
}
