/* =======================================================
   ANKANTRA – Cosmic Sapphire + Gold Theme
   ======================================================= */

:root {
  --bg-dark: #070b14;           /* cosmic midnight blue */
  --bg-panel: #0e1524;          /* slightly lighter panels */
  --gold: #e2b858;              /* warm gold */
  --gold-light: #ffdf7f;
  --text-main: #f5f5f7;         /* near white text */
  --text-soft: #d0d0d5;
  --green: #5fffa3;             /* friendly numbers */
  --red: #ff6b6b;               /* challenging numbers */
  --accent: #88aaff;            /* soft sapphire accent */
}

/* ---------- Global Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at center, #101a35 0%, #05070e 100%);
  color: var(--gold-light);
  text-align: center;
  padding: 5rem 1rem 4rem;
}
.hero h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 3rem;
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(255,220,130,0.3);
}
.invocation { color: var(--accent); font-style: italic; margin-top: .5rem; }
.tagline { color: var(--gold); margin-top: .3rem; }

/* ---------- Form ---------- */
.container { width: 90%; max-width: 900px; margin: 0 auto; }
.form-box {
  background: var(--bg-panel);
  padding: 2rem;
  border-radius: 10px;
  margin-top: 2rem;
  box-shadow: 0 0 20px rgba(136,170,255,0.15);
}
label { display:block; margin-top:1rem; font-weight:600; color:var(--gold); }
input, select {
  width:100%; padding:0.7rem; border:1px solid #2c3247;
  border-radius:6px; background:#121b30; color:#fff; font-size:1rem;
}
input:focus, select:focus {
  outline:none; border-color:var(--gold); box-shadow:0 0 8px rgba(226,184,88,0.5);
}

/* ---------- Buttons ---------- */
.btn {
  background: var(--gold);
  color: #000;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 6px;
  margin-top: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
}
.btn:hover { background: var(--gold-light); }

/* ---------- Results ---------- */
.results { margin-top:3rem; padding-bottom:4rem; }
.results.hidden { display:none; }
.results h2 { text-align:center; color:var(--gold-light); margin-bottom:2rem; }

/* ---------- Grid ---------- */
.grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:1rem; margin-bottom:2rem;
}
.grid div {
  background: var(--bg-panel);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #1c2338;
  box-shadow: 0 0 10px rgba(136,170,255,0.08);
}
.grid h4 { color: var(--gold-light); margin-bottom: .3rem; }

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  color: var(--text-soft);
  background: var(--bg-panel);
}
table th {
  background: #18203a;
  color: var(--gold-light);
  font-weight: 600;
}
table td, table th {
  border: 1px solid #28324f;
  padding: 8px 12px;
}
/* Stronger dark-theme striping for readability */
tr:nth-child(even) td {
  background-color: #18181d !important;
  color: var(--text-light);
}
tr:nth-child(odd) td {
  background-color: #222229 !important;
  color: var(--text-light);
}

/* Make sure no inherited white sneaks in */
table td, table th {
  background-color: transparent;
}


/* Numerology highlights */
table td[style*="color:#9f9"],
table td[style*="color:#080"],
.green-text { color: var(--green) !important; font-weight: 500; }
table td[style*="color:var(--gold)"],
table td[style*="color:#c7a008"],
.gold-text { color: var(--gold-light) !important; font-weight: 600; }
table td[style*="color:#f99"],
.red-text { color: var(--red) !important; font-weight: 500; }

/* ---------- Headings ---------- */
h3, h4 {
  color: var(--gold-light);
  text-shadow: 0 0 8px rgba(255,220,130,0.25);
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

/* ---------- Animations ---------- */
.fade-slide {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}
.fade-slide.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer ---------- */
footer {
  background:#0a0f1c;
  color:#80889c;
  text-align:center;
  padding:1.5rem;
  font-size:0.9rem;
  border-top:1px solid #1a2035;
}

/* ---------- Floating Numbers ---------- */
.num-sky {
  position:fixed; top:0; left:0; width:100%; height:100%;
  overflow:hidden; z-index:-1;
}
.num-sky span {
  position:absolute; color:rgba(226,184,88,0.12);
  animation: drift linear infinite;
}
@keyframes drift {
  0% { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(360deg); }
}

/* ---- Planetary & Chakra Guide ---- */
.chakra-section {
  margin: 80px auto;
  text-align: center;
  color: #f6e8b1;
  background: radial-gradient(circle at top, #1a181f 0%, #0d0d0e 100%);
  padding: 60px 20px;
  border-top: 1px solid rgba(212,175,55,0.4);
  border-bottom: 1px solid rgba(212,175,55,0.4);
}
.chakra-section h2 {
  color: #d4af37;
  font-size: 2rem;
  margin-bottom: 0.5em;
  text-shadow: 0 0 12px rgba(212,175,55,0.4);
}
.chakra-section .intro-text {
  max-width: 700px;
  margin: 0 auto 2em;
  font-size: 1rem;
  line-height: 1.6;
  color: #ddd3a0;
}
.chakra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-items: center;
}
.chakra-card {
  background: rgba(20,20,25,0.9);
  border: 1px solid rgba(212,175,55,0.5);
  border-radius: 10px;
  padding: 25px 15px;
  width: 90%;
  max-width: 240px;
  box-shadow: 0 0 20px rgba(212,175,55,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.chakra-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(212,175,55,0.35);
}
.chakra-card h3 {
  color: #d4af37;
  font-size: 2rem;
  margin-bottom: 0.3em;
}
.chakra-card p {
  font-size: 0.95rem;
  color: #f6e8b1;
  line-height: 1.4;
}

/* ===== UNDER-CONSTRUCTION BANNER ===== */
#uc-banner {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1000;
}
body {
  padding-top:40px; /* prevent content overlap */
}


/* ===== PLANET-CHAKRA GUIDE ===== */
.chakra-section {
  margin:80px auto;
  text-align:center;
  color:#f6e8b1;
  background:radial-gradient(circle at top,#1a181f 0%,#0d0d0e 100%);
  padding:60px 20px;
  border-top:1px solid rgba(212,175,55,0.4);
  border-bottom:1px solid rgba(212,175,55,0.4);
}
.chakra-section h2 {
  color:#d4af37;
  font-size:2rem;
  margin-bottom:.5em;
  text-shadow:0 0 12px rgba(212,175,55,0.4);
}
.chakra-section .intro-text {
  max-width:700px;
  margin:0 auto 2em;
  font-size:1rem;
  line-height:1.6;
  color:#ddd3a0;
}
.chakra-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:25px;
  justify-items:center;
}
.chakra-card {
  background:rgba(20,20,25,0.9);
  border:1px solid rgba(212,175,55,0.5);
  border-radius:10px;
  padding:25px 15px;
  width:90%;
  max-width:240px;
  box-shadow:0 0 20px rgba(212,175,55,0.15);
  transition:transform .3s ease, box-shadow .3s ease;
}
.chakra-card:hover {
  transform:translateY(-6px);
  box-shadow:0 0 25px rgba(212,175,55,0.35);
}
.chakra-card h3 {
  color:#d4af37;
  font-size:2rem;
  margin-bottom:.3em;
}
.chakra-card p {
  font-size:.95rem;
  color:#f6e8b1;
  line-height:1.4;
}

/* ---- Lucky & Avoid Numbers ---- */
.luck-grid {
  display:flex;
  justify-content:center;
  gap:40px;
  flex-wrap:wrap;
  margin:40px auto;
  text-align:center;
}
.luck-card {
  background:rgba(20,20,25,0.9);
  border:1px solid rgba(212,175,55,0.6);
  border-radius:12px;
  padding:25px 40px;
  color:#f6e8b1;
  box-shadow:0 0 20px rgba(212,175,55,0.15);
}
.luck-card h4 {
  color:#d4af37;
  margin-bottom:10px;
  font-size:1.2rem;
}
.luck-card p {
  font-size:1.4rem;
  font-weight:bold;
  letter-spacing:2px;
}
.luck-card.avoid {
  border-color:#b53b3b;
  box-shadow:0 0 15px rgba(181,59,59,0.3);
}
.luck-card.avoid h4 {
  color:#ff5c5c;
}
/* ---- Animated Number Auras ---- */
.num-bubble {
  display: inline-block;
  margin: 4px 6px;
  padding: 8px 12px;
  border-radius: 50%;
  font-weight: 600;
  color: #fff;
  font-size: 1.1rem;
  text-shadow: 0 0 4px rgba(0,0,0,0.5);
  transition: transform 0.4s ease;
  position: relative;
}

/* Lucky aura (gold pulse) */
.luck-card:not(.avoid) .num-bubble {
  background: radial-gradient(circle at center,#d4af37 0%,#7b5f1d 100%);
  box-shadow: 0 0 12px rgba(212,175,55,0.7);
  animation: goldPulse 3s infinite ease-in-out;
}
@keyframes goldPulse {
  0%,100% { box-shadow: 0 0 8px rgba(212,175,55,0.6); transform: scale(1);}
  50% { box-shadow: 0 0 18px rgba(255,215,100,0.9); transform: scale(1.15);}
}

/* Avoid aura (red flicker) */
.luck-card.avoid .num-bubble {
  background: radial-gradient(circle at center,#b33 0%,#400 100%);
  box-shadow: 0 0 10px rgba(255,80,80,0.6);
  animation: redFlicker 2s infinite ease-in-out;
}
@keyframes redFlicker {
  0%,100% { opacity:1; transform: scale(1);}
  40% { opacity:0.75; transform: scale(1.05);}
  70% { opacity:0.9; transform: scale(0.98);}
}

/* Tooltip on hover */
.num-bubble:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,20,25,0.95);
  color: #f6e8b1;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid rgba(212,175,55,0.5);
  box-shadow: 0 0 10px rgba(212,175,55,0.2);
  font-size: 0.85rem;
  opacity: 0;
  animation: fadeTooltip 0.3s forwards;
}
@keyframes fadeTooltip {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
/* Layout refinement */
.centered {
  margin: 0 auto;
  text-align: center;
}
.styled-table.centered {
  width: 60%;
  margin-top: 1rem;
  border-collapse: collapse;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Lucky/Avoid container on top */
#energy-field {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

/* Soft floating energy particles */
#energy-field::before, #energy-field::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 200%;
  top: -50%;
  left: 0;
  background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, transparent 60%),
              radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  animation: drift 30s linear infinite;
}
@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

/* Table polish */
.styled-table th, .styled-table td {
  padding: 10px 14px;
  text-align: center;
}
.styled-table th {
  background: #3a2f15;
  color: #f5d98b;
  letter-spacing: 0.5px;
}
.styled-table tr:nth-child(even) {
  background: rgba(255,255,255,0.03);
}
.styled-table tr:hover {
  background: rgba(212,175,55,0.1);
  transition: background 0.3s ease;
}
