/* ============================================
   Age Verification Gate - Dark Portal Entrance
   ============================================ */

.age-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

/* Dark mystic background */
.age-gate-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at center, rgba(74, 29, 110, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at top, rgba(123, 44, 191, 0.15) 0%, transparent 40%),
    linear-gradient(180deg, #030305 0%, #0a0a12 50%, #050508 100%);
}

/* Animated portal rings */
.portal-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(157, 78, 221, 0.3);
  animation: pulse-ring 4s ease-in-out infinite;
}

.portal-ring:nth-child(1) {
  width: 300px;
  height: 300px;
  animation-delay: 0s;
}

.portal-ring:nth-child(2) {
  width: 400px;
  height: 400px;
  animation-delay: 0.5s;
  border-color: rgba(199, 125, 255, 0.2);
}

.portal-ring:nth-child(3) {
  width: 500px;
  height: 500px;
  animation-delay: 1s;
  border-color: rgba(212, 175, 55, 0.1);
}

.portal-ring:nth-child(4) {
  width: 600px;
  height: 600px;
  animation-delay: 1.5s;
}

@keyframes pulse-ring {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.6;
  }
}

/* Floating particles */
.age-gate-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-purple-glow);
  border-radius: 50%;
  animation: float-particle 10s linear infinite;
  opacity: 0;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 6s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; }
.particle:nth-child(9) { left: 90%; animation-delay: 8s; }

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* Modal container */
.age-gate-modal {
  position: relative;
  background: linear-gradient(180deg, rgba(18, 18, 26, 0.95) 0%, rgba(10, 10, 15, 0.98) 100%);
  border: 1px solid rgba(123, 44, 191, 0.4);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow:
    0 0 60px rgba(123, 44, 191, 0.3),
    0 0 100px rgba(74, 29, 110, 0.2),
    inset 0 1px 0 rgba(199, 125, 255, 0.1);
  animation: modal-appear 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.age-gate-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-purple-bright), transparent);
}

.age-gate-modal::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-purple-primary), transparent);
  opacity: 0.5;
}

@keyframes modal-appear {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Decorative corners */
.corner-decor {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--color-gold);
  opacity: 0.5;
}

.corner-decor.top-left {
  top: 10px;
  left: 10px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.corner-decor.top-right {
  top: 10px;
  right: 10px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.corner-decor.bottom-left {
  bottom: 10px;
  left: 10px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.corner-decor.bottom-right {
  bottom: 10px;
  right: 10px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

/* Logo */
.age-gate-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, var(--color-text-glow) 0%, var(--color-purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(157, 78, 221, 0.5));
}

/* Mystical icon */
.age-gate-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-purple-glow);
  text-shadow: 0 0 30px rgba(157, 78, 221, 0.8);
  animation: icon-glow 2s ease-in-out infinite alternate;
}

@keyframes icon-glow {
  0% { filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.5)); }
  100% { filter: drop-shadow(0 0 25px rgba(199, 125, 255, 0.8)); }
}

/* Warning text */
.age-gate-warning {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-dim);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* Question */
.age-gate-question {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  color: var(--color-text-glow);
  text-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
}

/* Buttons container */
.age-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Enter button - Primary mystical */
.age-gate-btn {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.age-gate-btn-enter {
  background: linear-gradient(135deg, var(--color-purple-primary) 0%, var(--color-purple-deep) 100%);
  color: var(--color-text);
  border: 1px solid var(--color-purple-bright);
  box-shadow: 0 0 20px rgba(123, 44, 191, 0.4);
}

.age-gate-btn-enter::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.age-gate-btn-enter:hover {
  background: linear-gradient(135deg, var(--color-purple-bright) 0%, var(--color-purple-primary) 100%);
  box-shadow: 0 0 40px rgba(157, 78, 221, 0.6), 0 0 60px rgba(123, 44, 191, 0.3);
  transform: translateY(-2px);
  letter-spacing: 0.25em;
}

.age-gate-btn-enter:hover::before {
  left: 100%;
}

/* Exit button - Subtle */
.age-gate-btn-exit {
  background: transparent;
  color: var(--color-text-dim);
  border: 1px solid rgba(154, 152, 169, 0.3);
}

.age-gate-btn-exit:hover {
  color: var(--color-text);
  border-color: rgba(154, 152, 169, 0.6);
  background: rgba(255, 255, 255, 0.02);
}

/* Disclaimer */
.age-gate-disclaimer {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-dim);
  opacity: 0.6;
}

/* Decorative divider */
.age-gate-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--color-gold);
  opacity: 0.5;
}

.age-gate-divider::before,
.age-gate-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* Hidden state */
.age-gate.hidden {
  display: none;
}

/* Fade out animation */
.age-gate.age-gate-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Responsive */
@media (min-width: 768px) {
  .age-gate-modal {
    padding: 4rem 3.5rem;
  }

  .age-gate-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .age-gate-btn {
    min-width: 160px;
  }
}
