/* ==========================================================================
   VIKRAANTWORLD — ASTRONOMICAL LIVE VEDIC WATCH WIDGET
   Real-Time Vedic Clock • Live Tithi/Nakshatra • Active Choghadiya & Hora
   ========================================================================== */

/* HEADER WATCH CHIP (TOP-RIGHT CORNER) */
.vedic-watch-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 28, 63, 0.85);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 9999px;
  padding: 5px 14px 5px 8px;
  color: #f8fafc;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(2, 6, 17, 0.4), 0 0 12px rgba(245, 158, 11, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.vedic-watch-chip:hover {
  background: rgba(22, 37, 82, 0.95);
  border-color: #f59e0b;
  box-shadow: 0 6px 20px rgba(2, 6, 17, 0.6), 0 0 18px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

/* WATCH DIAL ANIMATED ICON */
.watch-dial-emblem {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97706, #b45309);
  border: 1px solid #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
  position: relative;
}

.watch-dial-emblem::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px dashed rgba(251, 191, 36, 0.5);
  animation: spin-watch-dial 20s linear infinite;
}

@keyframes spin-watch-dial {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* TIME & VEDIC TEXT IN CHIP */
.watch-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.watch-time-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.watch-digital-time {
  font-family: 'Outfit', monospace, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.watch-blink-colon {
  animation: blink-colon 1s infinite steps(1);
  color: #fbbf24;
}

@keyframes blink-colon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.watch-seconds-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fde68a;
}

.watch-status-pill {
  font-size: 0.73rem;
  font-weight: 800;
  border-radius: 4px;
  padding: 1px 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.status-shubh {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.status-madhyam {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.status-ashubh {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.watch-tithi-nakshatra {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  white-space: nowrap;
}

.watch-tithi-nakshatra strong {
  color: #cbd5e1;
}

/* ==========================================================================
   INTERACTIVE QUICK VEDIC TIME MODAL / POPUP
   ========================================================================== */
.watch-quick-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 17, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.watch-quick-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.watch-quick-modal {
  position: fixed;
  top: 75px;
  right: 20px;
  width: 380px;
  max-width: calc(100vw - 30px);
  background: #0b1530;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.15);
  z-index: 9999;
  padding: 1.4rem;
  color: #e2e8f0;
  transform: translateY(-10px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.watch-quick-modal.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.watch-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.watch-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-watch-modal {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-close-watch-modal:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.watch-modal-now-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.now-time-large {
  font-family: 'Outfit', monospace, sans-serif;
  font-size: 2.1rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1.1;
  letter-spacing: 1px;
}

.now-date-line {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-top: 4px;
}

.watch-grid-timings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.timing-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
}

.timing-cell-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.timing-cell-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 2px;
}

.timing-cell.shubh-timing {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}
.timing-cell.shubh-timing .timing-cell-val {
  color: #34d399;
}

.timing-cell.ashubh-timing {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}
.timing-cell.ashubh-timing .timing-cell-val {
  color: #f87171;
}

.watch-modal-actions {
  display: flex;
  gap: 8px;
}

.btn-full-panchang-view {
  flex: 1;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-full-panchang-view:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

@media (max-width: 600px) {
  .watch-tithi-nakshatra {
    display: none;
  }
  .watch-quick-modal {
    top: auto;
    bottom: 20px;
    right: 15px;
    left: 15px;
    width: auto;
  }
}
