/* Escape Animations - Prison Theme */

/* Fade In Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page Load Animation */
.escape-main {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Hover Effects for Interactive Elements */
.play-button {
  position: relative;
  overflow: hidden;
}

.play-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.play-button:hover::before {
  left: 100%;
}

/* Navigation Hover Effects */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--steel-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(52, 152, 219, 0.2),
    transparent
  );
  transition: left 0.3s ease;
}

.mobile-nav-link:hover::before {
  left: 100%;
}

/* Burger Menu Animation */
.burger-button.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-button.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-button.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Form Hover Effects */
.submit-button {
  position: relative;
  overflow: hidden;
}

.submit-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.submit-button:hover::after {
  width: 300px;
  height: 300px;
}

/* Footer Hover Effects */
.footer-link {
  position: relative;
}

.footer-link::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--steel-blue);
  transition: width 0.3s ease;
}

.footer-link:hover::before {
  width: 100%;
}

/* Responsive Animation Adjustments */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .hero-cell {
    animation: none;
  }

  .game-title {
    animation: none;
  }

  .security-camera,
  .laser-grid {
    animation: none;
  }
}

/* Dynamic Effects Styles */
.escape-mode {
  background: linear-gradient(45deg, #27ae60, #2ecc71);
  transition: background 0.3s ease;
}

.stealth-mode {
  background: linear-gradient(45deg, #34495e, #2c3e50);
  transition: background 0.3s ease;
}

.escaping {
  background: rgba(39, 174, 96, 0.2);
  transition: background 0.3s ease;
}

.escape-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-align: center;
}

.upgrade-effect {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

/* Form Submission Status Styles */
.submission-status {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: bold;
}

.submission-status.sending {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--steel-blue);
  border: 1px solid var(--steel-blue);
}

.submission-status.success {
  background-color: rgba(39, 174, 96, 0.1);
  color: var(--success-green);
  border: 1px solid var(--success-green);
}

.submission-status.error {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--alarm-red);
  border: 1px solid var(--alarm-red);
}

/* Print Styles */
@media print {
  * {
    animation: none !important;
    transition: none !important;
  }

  .warden-header,
  .prison-footer {
    display: none;
  }
}
