/* ═══════════════════════════════════════════
   PRIME CALENDAR — Global Widgets CSS
   Today Banner + Gate Countdown + Moon Phase
   ═══════════════════════════════════════════ */

/* ── TODAY BANNER ── */
.today-banner {
  max-width: 900px;
  margin: 0 auto 20px;
  padding: 0 32px;
}
.today-inner {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.02));
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 8px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.today-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim, #5A5850);
}
.today-day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold, #C9A84C);
}
.today-info {
  font-size: 12px;
  color: var(--text, #9A968E);
}
.today-type {
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.today-type.prime {
  background: rgba(201,168,76,0.1);
  color: var(--gold, #C9A84C);
  border: 1px solid rgba(201,168,76,0.2);
}
.today-type.twin {
  background: rgba(74,201,176,0.1);
  color: var(--teal, #4AC9B0);
  border: 1px solid rgba(74,201,176,0.2);
}
.today-type.gate {
  background: rgba(224,90,58,0.1);
  color: var(--vermillion, #E05A3A);
  border: 1px solid rgba(224,90,58,0.2);
}
.today-type.composite {
  background: rgba(90,88,80,0.1);
  color: var(--text-dim, #5A5850);
  border: 1px solid rgba(90,88,80,0.2);
}

/* ── GATE COUNTDOWN ── */
.gate-countdown {
  max-width: 900px;
  margin: 0 auto 24px;
  padding: 0 32px;
}
.gate-countdown-inner {
  background: var(--bg-card, #0C0C14);
  border: 1px solid rgba(224,90,58,0.15);
  border-radius: 8px;
  padding: 16px 20px;
}
.gate-countdown-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.gate-next-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim, #5A5850);
}
.gate-next-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--vermillion, #E05A3A);
}
.gate-next-info {
  font-size: 12px;
  color: var(--text, #9A968E);
  margin-left: auto;
}
.gate-progress-wrap {
  height: 4px;
  background: rgba(224,90,58,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.gate-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--vermillion, #E05A3A), var(--gold, #C9A84C));
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* ── MOON WIDGET (TOP LEFT, VISUAL) ── */
.moon-widget {
  position: fixed;
  top: 80px;
  left: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: rgba(10,10,15,0.85);
  border: 1px solid rgba(180,175,160,0.15);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  cursor: default;
  transition: all 0.3s;
}
.moon-widget:hover {
  border-color: rgba(180,175,160,0.3);
  background: rgba(10,10,15,0.95);
}
.moon-visual {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(200,195,180,0.15);
}
.moon-light {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8E4D9, #D4CFC2, #C8C3B6);
}
.moon-shadow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #15151A;
  transition: transform 0.5s ease;
}
.moon-phase-name {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #B4AFA0;
}
.moon-illumination {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: #8A8578;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .today-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 14px 16px;
  }
  .today-day {
    font-size: 28px;
  }
  
  .gate-countdown-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .gate-next-info {
    margin-left: 0;
  }
  
  .moon-widget {
    top: 74px;
    left: 12px;
    padding: 8px;
  }
  .moon-visual {
    width: 36px;
    height: 36px;
  }
  .moon-phase-name { font-size: 8px; }
  .moon-illumination { font-size: 11px; }
}

/* ── HIDE MOON ON VERY SMALL SCREENS ── */
@media (max-width: 600px) {
  .moon-widget {
    display: none;
  }
}
