/* ====================================================
   LIVENEWS PREMIUM LOTTO FORTUNE WHEEL STYLE
   ==================================================== */

.fortune-wheel-section {
  margin: 40px auto 32px auto;
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fortune-wheel-card {
  background: rgba(30, 41, 59, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Background ambient light (amber-gold glow) */
.fortune-wheel-card::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.fortune-wheel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 767px) {
  .fortune-wheel-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* LEFT COLUMN: Canvas Wheel Container */
.wheel-outer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.wheel-canvas-container {
  position: relative;
  width: 300px;
  height: 300px;
  max-width: 90vw;
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.15), inset 0 0 15px rgba(0, 0, 0, 0.4);
  background: rgba(15, 23, 42, 0.6);
  padding: 0; /* REMOVE PADDING TO ENSURE PERFECT SYMMETRICAL ALIGNMENT */
  border: 4px double rgba(251, 191, 36, 0.3);
  overflow: hidden; /* CLIP INNER CANVAS CORNERS */
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

/* Golden Pointer Pin */
.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 32px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  border-radius: 2px;
  animation: pointer-wiggle 0.3s ease infinite alternate paused;
}

.wheel-pointer.wiggling {
  animation-play-state: running;
}

/* Center Spin Button Overlay */
.wheel-spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 3.5px solid #fbbf24;
  color: #fbbf24;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 10px rgba(251, 191, 36, 0.3);
  text-transform: uppercase;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wheel-spin-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 0 15px rgba(251, 191, 36, 0.5);
  color: #ffffff;
}

.wheel-spin-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.wheel-spin-btn:disabled {
  background: #1e293b !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

/* RIGHT COLUMN: Horoscope Result Card */
.horoscope-display-card {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
  position: relative;
}

.horoscope-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.horoscope-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.horoscope-placeholder {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.horoscope-results-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

/* Drawn Numbers Typography */
.fortune-numbers-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
}

.fortune-digit-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #fbbf24;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(217, 119, 6, 0.03) 100%);
  border: 2px solid rgba(251, 191, 36, 0.35);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  animation: bounce-digit 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

/* Horoscope Reading Box */
.horoscope-reading-box {
  background: rgba(251, 191, 36, 0.04);
  border: 1px dashed rgba(251, 191, 36, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 20px;
}

/* Lotto check integration button */
.fortune-lotto-check-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  transition: var(--transition-smooth);
  width: 100%;
}

.fortune-lotto-check-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.fortune-lotto-check-btn:active {
  transform: translateY(1px);
}

/* Keyframes animations */
@keyframes pointer-wiggle {
  0% {
    transform: translateX(-50%) rotate(-10deg);
  }
  100% {
    transform: translateX(-50%) rotate(10deg);
  }
}

@keyframes bounce-digit {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }
  50% {
    transform: scale(1.1) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Light Theme overrides */
body.light-theme .fortune-wheel-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

body.light-theme .wheel-canvas-container {
  background: rgba(241, 245, 249, 0.6);
  border-color: rgba(217, 119, 6, 0.15);
}

body.light-theme .wheel-spin-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-color: #d97706;
  color: #d97706;
}

body.light-theme .wheel-spin-btn:hover {
  color: #d97706;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 0 12px rgba(217, 119, 6, 0.3);
}

body.light-theme .horoscope-display-card {
  background: rgba(241, 245, 249, 0.5);
  border-color: rgba(15, 23, 42, 0.02);
}

body.light-theme .horoscope-title {
  color: #0f172a;
}

body.light-theme .fortune-digit-badge {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.05) 0%, rgba(217, 119, 6, 0.01) 100%);
  border-color: rgba(217, 119, 6, 0.25);
  color: #b45309;
}

body.light-theme .horoscope-reading-box {
  background: rgba(217, 119, 6, 0.02);
  border-color: rgba(217, 119, 6, 0.15);
  color: #334155;
}
