/* ==========================================================================
   PickerWheel CSS - Wheel Canvas Section (Nubel Huxley Theme)
   ========================================================================== */

.wheel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.wheel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.wheel-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: background 0.2s ease;
}

.wheel-title:hover {
  background: rgba(255, 255, 255, 0.08);
}

.wheel-title:focus {
  background: rgba(255, 255, 255, 0.12);
  -webkit-text-fill-color: var(--text-primary) !important;
  color: var(--text-primary) !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

.title-edit-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
}

.title-edit-btn:hover {
  color: var(--secondary);
}

/* Wheel Wrapper & Canvas */
.wheel-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

.canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 
    0 0 40px rgba(0, 0, 0, 0.7),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

#wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: pointer;
}

/* Wheel Pointer / Ticker Indicator */
.wheel-pointer-container {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  pointer-events: none;
}

.wheel-pointer {
  transform-origin: top center;
  transition: transform 0.05s ease-out;
}

.wheel-pointer.tick-bump {
  animation: pointerBump 0.1s ease-out;
}

@keyframes pointerBump {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(-12deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Central Spin Button (Nubel Gradient) */
.center-spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--spin-gradient);
  border: 4px solid #ffffff;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: var(--spin-shadow), 0 0 0 6px rgba(255, 255, 255, 0.15);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.center-spin-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(79, 70, 229, 0.6), 0 0 0 8px rgba(255, 255, 255, 0.25);
}

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

/* Bottom Controls */
.wheel-footer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
}

.btn-spin-large {
  background: var(--spin-gradient);
  color: white;
  padding: 0.85rem 2.6rem;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  box-shadow: var(--spin-shadow);
  letter-spacing: 0.5px;
  font-family: var(--font-display);
}

.btn-spin-large:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.6);
}

.btn-utility {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display);
}

.btn-utility:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary);
}

/* Mobile size optimizations for Wheel Section */
@media (max-width: 600px) {
  .wheel-section {
    padding: 1rem;
  }
  
  .wheel-title {
    font-size: 1.25rem;
  }
}
