/* ========================================
   VERJAARDAG MODAL STYLING
   ======================================== */

#birthday-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#birthday-modal.show {
  display: flex;
}

.birthday-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.5s ease-out;
  position: relative;
}

@keyframes scaleIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.birthday-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.birthday-card h2 {
  color: white;
  font-size: 2.5em;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.birthday-card .birthday-name {
  color: #FFD700;
  font-size: 3em;
  font-weight: bold;
  margin: 10px 0;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.birthday-card p {
  color: white;
  font-size: 1.3em;
  margin: 20px 0;
}

.birthday-card button {
  background-color: #FFD700;
  color: #333;
  border: none;
  padding: 15px 40px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.birthday-card button:hover {
  background-color: #FFC700;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* ========================================
   CONFETTI ANIMATIE
   ======================================== */

#confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  opacity: 0;
  animation: fall linear forwards;
}

@keyframes fall {
  0% {
    top: -10%;
    opacity: 1;
    transform: rotate(0deg);
  }
  100% {
    top: 100%;
    opacity: 0;
    transform: rotate(720deg);
  }
}

/* ========================================
   VERJAARDAG KNOP (rechtsonder)
   ======================================== */

#show-birthday-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 3px solid #FFD700;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

/* ========================================
   DARK MODE TOGGLE KNOP (linksboven)
   ======================================== */

#dark-mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  border: 3px solid #cbd5e0;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#dark-mode-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode #dark-mode-toggle {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-color: #fef3c7;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

body.dark-mode #dark-mode-toggle:hover {
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
}

#show-birthday-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 215, 0, 0.6);
  }
}

/* Responsive aanpassingen */
@media (max-width: 600px) {
  .birthday-card {
    padding: 30px 20px;
    max-width: 90%;
  }
  
  .birthday-card h2 {
    font-size: 2em;
  }
  
  .birthday-card .birthday-name {
    font-size: 2.5em;
  }
  
  .birthday-card p {
    font-size: 1.1em;
  }
  
  #show-birthday-btn {
    width: 50px;
    height: 50px;
    font-size: 25px;
    bottom: 15px;
    right: 15px;
  }
  
  #dark-mode-toggle {
    width: 50px;
    height: 50px;
    font-size: 24px;
    top: 15px;
    right: 15px;
  }
  
  .birthday-countdown {
    bottom: 15px;
    right: 15px;
    font-size: 13px;
    padding: 12px 18px;
    max-width: calc(100vw - 30px);
  }

  .countdown-text {
    font-size: 13px;
  }

  .countdown-hint {
    display: block;
    font-size: 11px;
  }
}

/* ========================================
   AFTELKLOK STYLING
   ======================================== */

.birthday-countdown {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--blue-metallic);
  color: #fff;
  padding: 15px 25px;
  border-radius: 50px;
  border: 2px solid var(--gold-border);
  box-shadow: 0 4px 15px rgba(0, 74, 127, 0.45), 0 0 0 1px rgba(201, 162, 39, 0.25);
  z-index: 999;
  animation: fadeInSlide 0.5s ease-out, gentlePulse 3s infinite;
  transition: box-shadow 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.birthday-countdown.hidden {
  display: none;
}

.birthday-countdown:hover {
  border-color: var(--gold-shine);
  box-shadow: 0 6px 22px rgba(0, 105, 180, 0.5), 0 0 18px rgba(201, 162, 39, 0.35);
}

.birthday-countdown:focus-visible {
  outline: 3px solid var(--gold-shine);
  outline-offset: 3px;
}

.birthday-countdown.revealed {
  animation: fadeInSlide 0.5s ease-out;
  border-color: var(--gold);
}

.countdown-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown-text {
  font-size: 15px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

#countdown-days,
.countdown-name {
  font-weight: bold;
  font-size: 16px;
  background-image: var(--gold-metallic-text);
  background-size: 100% 160%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-shine);
}

.countdown-hint {
  font-size: 12px;
  color: var(--gold-shine);
  opacity: 0.85;
  font-weight: 400;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gentlePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 74, 127, 0.45), 0 0 0 1px rgba(201, 162, 39, 0.25);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 105, 180, 0.5), 0 0 14px rgba(201, 162, 39, 0.3);
  }
}
