/**
 * Guest Gate Modal Styles
 * Breaking Point - Intense Red/White Theme
 */

.guest-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.guest-gate-overlay.active {
  opacity: 1;
  visibility: visible;
}

.guest-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
}

.guest-gate-modal {
  position: relative;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a0a0a 100%);
  border: 2px solid rgba(255, 0, 0, 0.6);
  border-radius: 12px;
  padding: 40px 36px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 0 0 1px rgba(255, 0, 0, 0.3),
    0 0 60px rgba(255, 0, 0, 0.3),
    0 25px 50px -12px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: modalPulse 2s ease-in-out infinite;
}

@keyframes modalPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 0, 0, 0.3),
      0 0 40px rgba(255, 0, 0, 0.2),
      0 25px 50px -12px rgba(0, 0, 0, 0.8),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 0, 0, 0.5),
      0 0 80px rgba(255, 0, 0, 0.4),
      0 25px 50px -12px rgba(0, 0, 0, 0.8),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

/* Corner accents - tactical HUD style */
.guest-gate-modal::before,
.guest-gate-modal::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(255, 0, 0, 0.8);
  border-style: solid;
}

.guest-gate-modal::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.guest-gate-modal::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.guest-gate-overlay.active .guest-gate-modal {
  transform: scale(1);
}

.guest-gate-paused {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.5);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ff4444;
  margin-bottom: 20px;
  text-transform: uppercase;
  animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.guest-gate-headline {
  font-family: 'Barlow', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.guest-gate-subheadline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 28px 0;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.guest-gate-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow:
    0 4px 20px rgba(255, 255, 255, 0.15),
    0 0 0 1px rgba(255, 0, 0, 0.3);
}

.guest-gate-google-btn:hover {
  transform: translateY(-2px);
  background: #f5f5f5;
  box-shadow:
    0 6px 30px rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(255, 0, 0, 0.5);
}

.guest-gate-google-btn:active {
  transform: translateY(0);
}

.guest-gate-google-btn svg {
  flex-shrink: 0;
}

/* Email link */
.guest-gate-email-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.guest-gate-email-link:hover {
  color: #ff6666;
  text-decoration: underline;
}

.guest-gate-terms {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 20px 0 0 0;
}

.guest-gate-terms a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

.guest-gate-terms a:hover {
  color: #fff;
}

/* Game area styling when gate is active */
body.guest-gate-active .game-container,
body.guest-gate-active .game-content,
body.guest-gate-active #game-wrapper,
body.guest-gate-active .container,
body.guest-gate-active .dialogue-area,
body.guest-gate-active .controls {
  filter: blur(0.3px);
  pointer-events: none;
}

/* Pulsing red vignette overlay when gate is active */
body.guest-gate-active::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  box-shadow: inset 0 0 300px rgba(255, 0, 0, 0.7);
  animation: redPulse 1.2s ease-in-out infinite;
}

@keyframes redPulse {
  0%, 100% {
    box-shadow: inset 0 0 250px rgba(255, 0, 0, 0.6);
  }
  50% {
    box-shadow: inset 0 0 350px rgba(255, 0, 0, 0.85);
  }
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .guest-gate-modal {
    padding: 36px 28px;
    max-width: 340px;
    width: 88%;
  }

  .guest-gate-headline {
    font-size: 24px;
    letter-spacing: 1.5px;
  }

  .guest-gate-subheadline {
    font-size: 14px;
    margin-bottom: 24px;
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .guest-gate-overlay {
    padding: 16px;
  }

  .guest-gate-modal {
    padding: 28px 20px;
    border-radius: 16px;
    max-width: 320px;
    width: 92%;
    margin: 0 auto;
  }

  .guest-gate-modal::before,
  .guest-gate-modal::after {
    width: 16px;
    height: 16px;
  }

  .guest-gate-paused {
    padding: 6px 16px;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 16px;
  }

  .guest-gate-headline {
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }

  .guest-gate-subheadline {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 260px;
  }

  .guest-gate-google-btn {
    padding: 14px 18px;
    font-size: 14px;
    border-radius: 10px;
    gap: 10px;
  }

  .guest-gate-google-btn svg {
    width: 18px;
    height: 18px;
  }

  .guest-gate-email-link {
    font-size: 12px;
    margin-top: 16px;
  }

  .guest-gate-terms {
    font-size: 11px;
    margin-top: 16px;
    line-height: 1.4;
  }
}

/* Small mobile adjustments */
@media (max-width: 360px) {
  .guest-gate-modal {
    padding: 24px 16px;
    width: 94%;
  }

  .guest-gate-headline {
    font-size: 20px;
  }

  .guest-gate-subheadline {
    font-size: 12px;
    max-width: 240px;
  }

  .guest-gate-google-btn {
    padding: 12px 16px;
    font-size: 13px;
  }
}
