/* =====================================================
   MYSTIC VYOM - GLOBAL STYLESHEET
   Premium / Spiritual / Elegant / Glassmorphism
   ===================================================== */

:root {
  --mv-purple: #7c3aed;
  --mv-purple-light: #a855f7;
  --mv-teal: #06b6d4;
  --mv-gold: #f5c04a;
  --mv-bg-light: #f6f4fc;
  --mv-bg-dark: #0d0d1f;
  --mv-text-light: #1a1330;
  --mv-text-dark: #f0eefc;
  --mv-card-light: rgba(255,255,255,0.65);
  --mv-card-dark: rgba(255,255,255,0.06);
  --mv-transition: 0.3s ease;
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: var(--mv-bg-light);
  color: var(--mv-text-light);
  transition: background var(--mv-transition), color var(--mv-transition);
  margin: 0;
  overflow-x: hidden;
}

body.dark-mode {
  background: radial-gradient(circle at top, #1b0e3a, var(--mv-bg-dark) 70%);
  color: var(--mv-text-dark);
}

a { text-decoration: none; }

/* ---------- Glass Card ---------- */
.mv-glass {
  background: var(--mv-card-light);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(90, 40, 160, 0.08);
  transition: transform var(--mv-transition), box-shadow var(--mv-transition), background var(--mv-transition);
}
body.dark-mode .mv-glass {
  background: var(--mv-card-dark);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.mv-glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.18);
}

/* ---------- Navbar ---------- */
.mv-navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background var(--mv-transition);
}
body.dark-mode .mv-navbar {
  background: rgba(13,13,31,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mv-navbar .brand {
  font-weight: 700; font-size: 1.4rem;
  background: linear-gradient(135deg, var(--mv-purple), var(--mv-teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mv-navbar .nav-link {
  color: inherit; font-weight: 500; opacity: 0.85; margin: 0 0.4rem;
}
.mv-navbar .nav-link:hover, .mv-navbar .nav-link.active { opacity: 1; color: var(--mv-purple); }
body.dark-mode .mv-navbar .nav-link:hover,
body.dark-mode .mv-navbar .nav-link.active { color: var(--mv-teal); }

/* ---------- Buttons ---------- */
.btn-mystic {
  background: linear-gradient(135deg, var(--mv-purple-light), var(--mv-purple));
  border: none; color: #fff; font-weight: 600;
  padding: 0.65rem 1.6rem; border-radius: 50px;
  transition: transform var(--mv-transition), box-shadow var(--mv-transition);
}
.btn-mystic:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(124,58,237,0.35);
}
.btn-outline-mystic {
  border: 1.5px solid var(--mv-purple); color: var(--mv-purple);
  background: transparent; font-weight: 600; border-radius: 50px;
  padding: 0.6rem 1.5rem;
}
body.dark-mode .btn-outline-mystic { color: var(--mv-teal); border-color: var(--mv-teal); }

/* ---------- Hero ---------- */
.mv-hero {
  position: relative;
  padding: 5rem 1rem 6rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(6,182,212,0.10));
  overflow: hidden;
}
.mv-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(168,85,247,0.25), transparent 40%),
              radial-gradient(circle at 80% 60%, rgba(6,182,212,0.2), transparent 40%);
  animation: mvFloat 8s ease-in-out infinite alternate;
}
@keyframes mvFloat {
  from { transform: translateY(0px); }
  to { transform: translateY(-20px); }
}
.mv-hero h1 {
  font-size: 2.6rem; font-weight: 800; position: relative; z-index: 1;
}
.mv-hero p { position: relative; z-index: 1; opacity: 0.8; max-width: 600px; margin: 1rem auto 2rem; }

/* ---------- Section title ---------- */
.mv-section-title {
  font-weight: 700; font-size: 1.6rem; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}

/* ---------- Moon Widget ---------- */
.moon-widget { text-align: center; padding: 1.8rem; }
.moon-icon { font-size: 3.2rem; filter: drop-shadow(0 0 12px rgba(245,192,74,0.5)); }

/* ---------- Card of the Day ---------- */
.tarot-card {
  perspective: 1000px; cursor: pointer; height: 260px;
}
.tarot-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.7s; transform-style: preserve-3d;
}
.tarot-card.flipped .tarot-card-inner { transform: rotateY(180deg); }
.tarot-front, .tarot-back {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--mv-purple), #4c1d95);
  color: #fff; font-weight: 600; text-align: center; padding: 1rem;
}
.tarot-back { transform: rotateY(180deg); background: #fff; color: #1a1330; }
.tarot-back img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }

/* ---------- Promo Banner ---------- */
.promo-banner {
  background: linear-gradient(135deg, var(--mv-purple), var(--mv-teal));
  border-radius: 20px; padding: 2rem; color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.promo-banner:hover { transform: scale(1.01); }

/* ---------- Decoders ---------- */
.decoder-result {
  margin-top: 1rem; padding: 1rem; border-radius: 12px;
  background: rgba(124,58,237,0.08); font-size: 0.95rem;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 2000;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
  font-size: 1.8rem; color: #fff; animation: mvPulse 2.5s infinite;
}
@keyframes mvPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Dark mode toggle ---------- */
.dark-toggle-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1); background: transparent;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
body.dark-mode .dark-toggle-btn { border-color: rgba(255,255,255,0.2); }

/* ---------- Dark mode text contrast fix ---------- */
body.dark-mode .text-muted { color: rgba(240,238,252,0.65) !important; }
body.dark-mode small,
body.dark-mode .small { color: rgba(240,238,252,0.75); }
body.dark-mode .mv-glass strong,
body.dark-mode .mv-glass h5,
body.dark-mode .mv-glass h6 { color: var(--mv-text-dark); }
body.dark-mode .form-label { color: rgba(240,238,252,0.85); }
body.dark-mode .badge.bg-light { background: rgba(255,255,255,0.1) !important; color: var(--mv-text-dark) !important; }

/* ---------- Footer ---------- */
.mv-footer {
  background: #1b0e3a; color: rgba(255,255,255,0.75); padding: 3rem 1rem 1.5rem; margin-top: 4rem;
}
.mv-footer a { color: rgba(255,255,255,0.75); }
.mv-footer a:hover { color: var(--mv-teal); }

@media (max-width: 768px) {
  .mv-hero h1 { font-size: 1.9rem; }
}
