/* ============================================
   NOCTURNE WELCOME PAGE STYLES
   Immersive video background with glassmorphic neon button
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Cinzel', serif;
  background: #0a0a0a;
  color: #ffffff;
}

/* ============================================
   VIDEO BACKGROUND
   ============================================ */
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

.fallback-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Dark overlay with gradient for readability */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.7) 0%,
    rgba(30, 20, 40, 0.6) 50%,
    rgba(10, 10, 10, 0.8) 100%
  );
  z-index: 2;
}

/* ============================================
   MAIN CONTENT CONTAINER
   ============================================ */
.content-container {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
}

.welcome-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: fadeInUp 1.5s ease-out;
}

/* ============================================
   MAIN ENTER BUTTON (HORIZONTAL CARD STYLE)
   ============================================ */
.enter-btn {
  /* Size & Shape - Smaller, Rectangular */
  width: clamp(280px, 40vw, 480px);
  height: clamp(60px, 8vh, 80px);
  border-radius: 12px;
  
  /* Glassmorphic Effect */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  /* Neon Glow - Purple Outer Glow */
  box-shadow: 
    0 0 30px rgba(147, 51, 234, 0.6),
    0 0 60px rgba(147, 51, 234, 0.4),
    0 0 90px rgba(147, 51, 234, 0.2),
    inset 0 0 30px rgba(147, 51, 234, 0.05);
  
  /* Typography */
  font-family: 'Cinzel', serif;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  
  /* Interaction */
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Animation */
  animation: cardPulse 3s ease-in-out infinite;
  
  /* Accessibility */
  position: relative;
}

.enter-btn:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(147, 51, 234, 0.3);
  box-shadow: 
    0 0 40px rgba(147, 51, 234, 0.8),
    0 0 80px rgba(147, 51, 234, 0.5),
    0 0 120px rgba(147, 51, 234, 0.3),
    inset 0 0 40px rgba(147, 51, 234, 0.1);
}

.enter-btn:active {
  transform: translateY(-2px);
  box-shadow: 
    0 0 35px rgba(147, 51, 234, 0.7),
    0 0 70px rgba(147, 51, 234, 0.4),
    0 0 100px rgba(147, 51, 234, 0.25),
    inset 0 0 35px rgba(147, 51, 234, 0.12);
}

.enter-btn:focus-visible {
  outline: 2px solid rgba(147, 51, 234, 0.8);
  outline-offset: 4px;
}

.btn-text {
  line-height: 1.2;
  white-space: nowrap;
  /* Glowing Text Effect */
  text-shadow: 
    0 0 10px rgba(147, 51, 234, 0.8),
    0 0 20px rgba(147, 51, 234, 0.6),
    0 0 30px rgba(147, 51, 234, 0.4),
    0 0 40px rgba(147, 51, 234, 0.2);
  animation: textGlow 3s ease-in-out infinite;
}

/* ============================================
   UNMUTE BUTTON
   ============================================ */
.unmute-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 20;
  
  width: 60px;
  height: 60px;
  border-radius: 50%;
  
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  
  font-size: 1.5rem;
  color: #ffffff;
  
  cursor: pointer;
  transition: all 0.3s ease;
  
  display: flex;
  align-items: center;
  justify-content: center;
}

.unmute-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
}

.unmute-btn:active {
  transform: scale(0.95);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Fade in and slide up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card pulsating glow - Purple Neon */
@keyframes cardPulse {
  0%, 100% {
    box-shadow: 
      0 0 30px rgba(147, 51, 234, 0.6),
      0 0 60px rgba(147, 51, 234, 0.4),
      0 0 90px rgba(147, 51, 234, 0.2),
      inset 0 0 30px rgba(147, 51, 234, 0.05);
  }
  50% {
    box-shadow: 
      0 0 40px rgba(147, 51, 234, 0.8),
      0 0 80px rgba(147, 51, 234, 0.5),
      0 0 120px rgba(147, 51, 234, 0.3),
      inset 0 0 40px rgba(147, 51, 234, 0.08);
  }
}

/* Text glowing effect */
@keyframes textGlow {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(147, 51, 234, 0.8),
      0 0 20px rgba(147, 51, 234, 0.6),
      0 0 30px rgba(147, 51, 234, 0.4),
      0 0 40px rgba(147, 51, 234, 0.2);
  }
  50% {
    text-shadow: 
      0 0 15px rgba(147, 51, 234, 1),
      0 0 30px rgba(147, 51, 234, 0.8),
      0 0 45px rgba(147, 51, 234, 0.6),
      0 0 60px rgba(147, 51, 234, 0.3);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
  .welcome-content {
    gap: 1.5rem;
  }
  
  .enter-btn {
    width: clamp(260px, 60vw, 420px);
    height: clamp(55px, 7.5vh, 70px);
    font-size: clamp(0.85rem, 1.6vw, 1.1rem);
    border-radius: 10px;
  }
  
  .unmute-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .content-container {
    padding: 1rem;
  }
  
  .welcome-content {
    gap: 1rem;
  }
  
  .enter-btn {
    width: clamp(240px, 80vw, 360px);
    height: clamp(50px, 7vh, 65px);
    font-size: clamp(0.7rem, 1.4vw, 0.95rem);
    padding: 0 1.5rem;
    border-radius: 8px;
  }
  
  .unmute-btn {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .background-video {
    display: none;
  }
  
  .fallback-image {
    display: block;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .enter-btn {
    border: 3px solid #ffffff;
    background: rgba(0, 0, 0, 0.8);
  }
  
  .video-overlay {
    background: rgba(0, 0, 0, 0.9);
  }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 3px solid rgba(147, 51, 234, 0.8);
  outline-offset: 4px;
}
