/* ═══════════════════════════════════════════════════
   horoscope-epic.css — Neon Zodiac Parallax Design
   ═══════════════════════════════════════════════════ */

/* ── PARALLAX BACKGROUND ── */
.horo-parallax-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(10,0,28,1) 0%, rgba(2,0,10,1) 100%);
}
.hpb-nebula {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
  animation: hpb-drift 20s ease-in-out infinite;
}
.hpb-nebula.n1 { width: 700px; height: 500px; top: -100px; left: -200px; background: radial-gradient(ellipse, rgba(119,51,255,.22) 0%, transparent 70%); animation-duration: 22s; }
.hpb-nebula.n2 { width: 600px; height: 600px; bottom: -200px; right: -100px; background: radial-gradient(ellipse, rgba(204,68,255,.16) 0%, transparent 70%); animation-duration: 28s; animation-delay: -8s; }
.hpb-nebula.n3 { width: 400px; height: 400px; top: 40%; left: 40%; background: radial-gradient(ellipse, rgba(255,68,221,.08) 0%, transparent 70%); animation-duration: 16s; animation-delay: -4s; }
@keyframes hpb-drift {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(20px,-15px); }
  66% { transform: translate(-15px,20px); }
}

/* ── PAGE HERO ── */
.horo-hero {
  padding: calc(68px + 3rem) 0 3.5rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(192,0,255,.12), transparent 60%);
  position: relative; z-index: 1;
}
.horo-date {
  font-size: .82rem; color: rgba(204,68,255,.8);
  letter-spacing: .12em; font-weight: 700; margin: .4rem 0;
  text-transform: uppercase;
}

/* ── SIGN ORBIT WHEEL ── */
.sign-selector-section { position: relative; z-index: 1; }
.sign-orbit-wrap {
  position: relative;
  width: 340px; height: 340px;
  margin: 0 auto 3rem;
}
@media(min-width: 768px) {
  .sign-orbit-wrap { width: 420px; height: 420px; }
}

/* Outer ring of sign buttons */
.orbit-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(204,68,255,.2);
}
.orbit-btn {
  position: absolute;
  width: 44px; height: 44px;
  background: rgba(10,0,28,.85);
  border: 1.5px solid rgba(204,68,255,.35);
  border-radius: 50%;
  font-size: 1.3rem;
  color: #e8d8ff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  transform: translate(-50%, -50%);
  /* position set via JS */
  will-change: transform;
}
.orbit-btn:hover, .orbit-btn.active {
  background: rgba(204,68,255,.25);
  border-color: #cc44ff;
  color: #fff;
  box-shadow: 0 0 20px rgba(204,68,255,.6), 0 0 40px rgba(204,68,255,.2);
  transform: translate(-50%,-50%) scale(1.25);
}
.orbit-btn.active {
  background: rgba(204,68,255,.35);
  animation: orbit-pulse 2s ease-in-out infinite;
}
@keyframes orbit-pulse {
  0%,100% { box-shadow: 0 0 16px rgba(204,68,255,.7); }
  50% { box-shadow: 0 0 30px rgba(204,68,255,1), 0 0 60px rgba(204,68,255,.3); }
}

/* Center of orbit */
.orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 180px; height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: #0a0014;
  border: 2px solid rgba(204,68,255,.5);
  box-shadow: 0 0 40px rgba(204,68,255,.3), inset 0 0 30px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
@media(min-width:768px) { .orbit-center { width: 220px; height: 220px; } }

.oc-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  transition: opacity .4s ease, transform .5s ease;
  opacity: 0;
  transform: scale(1.05);
}
.oc-img.loaded { opacity: 1; transform: scale(1); }
.oc-sym {
  font-size: 3.5rem;
  color: #fff;
  text-shadow: 0 0 20px rgba(204,68,255,.8);
  animation: sym-float 3s ease-in-out infinite;
  position: relative; z-index: 2;
  transition: opacity .3s;
}
.oc-sym.hidden { opacity: 0; }
.oc-pulse {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(204,68,255,.4);
  animation: oc-pulse 3s ease-in-out infinite;
}
@keyframes oc-pulse {
  0%,100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.05); opacity: 1; }
}
@keyframes sym-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ── HORO PANEL ── */
.horo-panel {
  background: rgba(10,0,28,.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(204,68,255,.3);
  border-radius: 24px;
  padding: 2rem;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  box-shadow: 0 0 60px rgba(204,68,255,.1);
  position: relative; overflow: hidden;
}
.horo-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #cc44ff, #ff44dd, transparent);
}
@media(min-width:768px) { .horo-panel { grid-template-columns: 220px 1fr; } }
@media(min-width:1024px) { .horo-panel { grid-template-columns: 260px 1fr; } }

/* LEFT */
.hp-left {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem;
}
.hp-zodiac-img {
  width: 180px; height: 180px;
  border-radius: 50%;
  background-size: cover; background-position: center;
  border: 2px solid rgba(204,68,255,.5);
  box-shadow: 0 0 30px rgba(204,68,255,.35), 0 0 60px rgba(204,68,255,.15);
  transition: all .5s cubic-bezier(.4,0,.2,1);
  animation: img-glow 4s ease-in-out infinite;
  flex-shrink: 0;
  position: relative;
}
.hp-zodiac-img::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(255,68,221,.4);
  animation: oc-pulse 4s ease-in-out infinite reverse;
}
@keyframes img-glow {
  0%,100% { box-shadow: 0 0 30px rgba(204,68,255,.35), 0 0 60px rgba(204,68,255,.15); }
  50% { box-shadow: 0 0 50px rgba(204,68,255,.6), 0 0 100px rgba(204,68,255,.25); }
}

.hp-sym { font-size: 2.5rem; text-shadow: 0 0 20px rgba(204,68,255,.6); }
.hp-name { font-family: var(--f-display); font-size: 1.3rem; color: #fff; font-weight: 700; }
.hp-dates { font-size: .75rem; color: #c4aae8; letter-spacing: .04em; }
.hp-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: .3rem; }
.hp-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .7rem; border-radius: 9999px;
  background: rgba(204,68,255,.15); border: 1px solid rgba(204,68,255,.4); color: #e8d8ff;
}
.hp-tag.fire { background: rgba(255,80,0,.15); border-color: rgba(255,80,0,.4); color: #ff9060; }
.hp-tag.earth { background: rgba(80,200,0,.12); border-color: rgba(80,200,0,.35); color: #90d050; }
.hp-tag.air { background: rgba(0,200,255,.12); border-color: rgba(0,200,255,.35); color: #50d0ff; }
.hp-tag.water { background: rgba(40,100,255,.15); border-color: rgba(40,100,255,.4); color: #70a0ff; }
.hp-tag.ruler { background: rgba(119,51,255,.15); border-color: rgba(119,51,255,.4); color: #cc88ff; }

/* RIGHT */
.hp-right { display: flex; flex-direction: column; gap: 1rem; }
.hp-reading {
  font-family: var(--f-serif); font-style: italic;
  font-size: 1rem; color: #e8d8ff; line-height: 1.9;
  min-height: 90px;
  padding: 1.2rem;
  background: rgba(204,68,255,.06); border-radius: 12px;
  border-left: 2px solid rgba(204,68,255,.4);
  transition: opacity .3s ease;
}
.hp-reading.fade { opacity: 0; }

/* Meters */
.hp-meters { display: flex; flex-direction: column; gap: .65rem; }
.meter-wrap {
  display: grid; grid-template-columns: 80px 1fr 44px;
  align-items: center; gap: .7rem; font-size: .78rem; color: #e8d8ff;
}
.meter { height: 6px; background: rgba(204,68,255,.15); border-radius: 999px; overflow: hidden; }
.meter-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--c-neon2), var(--c-neon));
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(204,68,255,.5);
  width: 0; transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* Lucky */
.hp-lucky {
  display: flex; flex-wrap: wrap; gap: 1rem;
  font-size: .78rem; color: #c4aae8; padding-top: .5rem;
  border-top: 1px solid rgba(204,68,255,.2);
}
.hp-lucky strong { color: #fff; }

/* ── ZODIAC IMG GRID ── */
.all-signs-section { position: relative; z-index: 1; }
.zodiac-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
@media(min-width:1024px) { .zodiac-img-grid { grid-template-columns: repeat(4, 1fr); } }

.zimg-card {
  background: rgba(10,0,28,.75);
  border: 1px solid rgba(204,68,255,.25);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative;
  display: flex; flex-direction: column;
}
.zimg-card:hover {
  border-color: rgba(204,68,255,.7);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(204,68,255,.25);
}
.zimg-card:hover .zimg-overlay { opacity: 1; }
.zimg-card:focus { outline: 3px solid var(--c-cyan); outline-offset: 2px; }

.zimg-thumb {
  width: 100%; aspect-ratio: 1;
  background-size: cover; background-position: center;
  position: relative;
}
.zimg-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(204,68,255,.08) 0%, transparent 60%);
  transition: opacity .3s;
}
.zimg-card:hover .zimg-glow { opacity: 2; }
.zimg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,0,28,.9) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end;
  padding: 1rem;
}
.zimg-overlay span {
  font-size: .72rem; font-weight: 700; color: #cc44ff;
  letter-spacing: .08em; text-transform: uppercase;
}

.zimg-info {
  padding: .9rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.zimg-name {
  font-family: var(--f-display); font-size: .82rem;
  color: #fff; font-weight: 700;
}
.zimg-sym { font-size: 1.4rem; color: #cc44ff; text-shadow: 0 0 10px rgba(204,68,255,.6); }
.zimg-date { font-size: .64rem; color: #c4aae8; padding: 0 1rem .7rem; }
.zimg-el {
  margin: 0 1rem .9rem;
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .18rem .65rem; border-radius: 999px; display: inline-block;
}
.el-fire { background: rgba(255,80,0,.15); color: #ff9060; border: 1px solid rgba(255,80,0,.3); }
.el-earth { background: rgba(80,200,0,.12); color: #90d050; border: 1px solid rgba(80,200,0,.25); }
.el-air { background: rgba(0,200,255,.12); color: #50d0ff; border: 1px solid rgba(0,200,255,.25); }
.el-water { background: rgba(40,100,255,.15); color: #70a0ff; border: 1px solid rgba(40,100,255,.3); }

/* Scroll reveal */
.scroll-reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.scroll-reveal.in { opacity: 1; transform: none; }
.zimg-card.scroll-reveal:nth-child(1) { transition-delay: .04s }
.zimg-card.scroll-reveal:nth-child(2) { transition-delay: .08s }
.zimg-card.scroll-reveal:nth-child(3) { transition-delay: .12s }
.zimg-card.scroll-reveal:nth-child(4) { transition-delay: .16s }
.zimg-card.scroll-reveal:nth-child(5) { transition-delay: .2s }
.zimg-card.scroll-reveal:nth-child(6) { transition-delay: .24s }
.zimg-card.scroll-reveal:nth-child(7) { transition-delay: .28s }
.zimg-card.scroll-reveal:nth-child(8) { transition-delay: .32s }
.zimg-card.scroll-reveal:nth-child(9) { transition-delay: .36s }
.zimg-card.scroll-reveal:nth-child(10) { transition-delay: .4s }
.zimg-card.scroll-reveal:nth-child(11) { transition-delay: .44s }
.zimg-card.scroll-reveal:nth-child(12) { transition-delay: .48s }

/* ── PARALLAX scroll effect on bg nebulas ── */
@media (prefers-reduced-motion: reduce) {
  .hpb-nebula, .orbit-btn.active, .hp-zodiac-img { animation: none !important; }
}

/* ── SIGN PILLS (zodiac selector) ── */
.sign-tabs-section { position:relative;z-index:1;padding:1.5rem 0 0; }
.sign-pills {
  display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;
  margin-bottom:0;
}
.sign-pill {
  position:relative;width:70px;height:70px;
  border-radius:12px;
  border:2px solid rgba(204,68,255,.3);
  cursor:pointer;
  overflow:hidden;
  transition:all .25s cubic-bezier(.34,1.56,.64,1);
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  padding-bottom:.4rem;
  background:rgba(10,0,28,.7);
  font-family:var(--f-body);
}
.sign-pill::before {
  content:'';
  position:absolute;inset:0;
  background:linear-gradient(to top,rgba(10,0,28,.85) 30%,transparent 100%);
  z-index:1;
}
.sign-pill:hover,.sign-pill.active {
  border-color:#cc44ff;
  transform:translateY(-4px) scale(1.08);
  box-shadow:0 0 20px rgba(204,68,255,.6);
}
.sign-pill.active { border-color:#cc44ff;box-shadow:0 0 24px rgba(204,68,255,.7); }
.pill-sym {
  position:relative;z-index:2;
  font-size:1.2rem;color:#fff;
  text-shadow:0 0 10px rgba(204,68,255,.8);
  line-height:1;
}
.pill-name {
  position:relative;z-index:2;
  font-size:.58rem;font-weight:700;color:rgba(232,216,255,.9);
  letter-spacing:.04em;
  line-height:1;margin-top:.1rem;
}
.sign-pill.has-img .pill-sym { text-shadow:0 0 12px rgba(204,68,255,1),0 1px 3px rgba(0,0,0,.9); }

@media(max-width:640px) {
  .sign-pill { width:56px;height:56px; }
  .pill-sym { font-size:1rem; }
  .pill-name { font-size:.52rem; }
}
