/* Code Rood - Componenten CSS (Rad, Timer, Plattegrond, Kaarten, Modals) */

/* Rad van Fortuin / Randomizer Modal & Canvas */
.wheel-container {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.4), inset 0 0 20px rgba(0,0,0,0.5);
  transition: transform 4s cubic-bezier(0.15, 0.99, 0.2, 1);
}

.wheel-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 35px solid #ffffff;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
  z-index: 10;
}

.selected-winner-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
  border: 2px solid #10b981;
  border-radius: var(--radius-md);
  text-align: center;
  animation: pulseGlow 1.5s infinite ease-in-out;
}

.winner-name {
  font-size: 2.5rem;
  font-weight: 800;
  color: #6ee7b7;
}

/* Verrassingskaarten Stapel */
.surprise-card-wrapper {
  perspective: 1000px;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

.surprise-card {
  width: 100%;
  min-height: 380px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 3px solid var(--color-warning);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(245, 158, 11, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.surprise-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px dashed rgba(245, 158, 11, 0.4);
  padding-bottom: 1rem;
}

.surprise-card-title {
  font-size: 2.2rem;
  color: #fde047;
  font-family: var(--font-heading);
}

/* Interactive SVG Plattegrond */
.floorplan-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #0f172a;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 0 auto;
}

.floorplan-svg {
  width: 100%;
  height: auto;
  min-height: 380px;
}

.hazard-marker {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hazard-marker:hover {
  transform: scale(1.2);
}

.hazard-marker.active {
  animation: pulseGlow 1s infinite alternate;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--color-surface);
  border: 2px solid var(--color-bg-card-border);
  border-radius: 24px;
  padding: 2.5rem;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  max-height: 90vh;
  overflow-y: auto;
}

/* Scorebord niveau kaarten */
.tier-card {
  padding: 1.2rem 1.8rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  border: 2px solid transparent;
}

.tier-gold { background: rgba(245, 158, 11, 0.15); border-color: #f59e0b; color: #fde047; }
.tier-silver { background: rgba(148, 163, 184, 0.15); border-color: #94a3b8; color: #f1f5f9; }
.tier-bronze { background: rgba(59, 130, 246, 0.15); border-color: #3b82f6; color: #93c5fd; }

/* Light Theme */
body.light-mode #wheelCanvas {
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.2), inset 0 0 15px rgba(0,0,0,0.1);
}
body.light-mode .surprise-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 3px solid #d97706;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 0 20px rgba(245, 158, 11, 0.15);
}
body.light-mode .surprise-card-title {
  color: #d97706;
}
body.light-mode .floorplan-wrapper {
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.1);
}
body.light-mode .modal-overlay {
  background: rgba(255, 255, 255, 0.7);
}
body.light-mode .modal-content {
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
body.light-mode .tier-gold { background: rgba(245, 158, 11, 0.1); border-color: #d97706; color: #b45309; }
body.light-mode .tier-silver { background: rgba(148, 163, 184, 0.1); border-color: #64748b; color: #475569; }
body.light-mode .tier-bronze { background: rgba(59, 130, 246, 0.1); border-color: #2563eb; color: #1d4ed8; }
