/* 성인 인증 모달 스타일 */
.age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.5s ease;
}

.age-gate-modal {
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(30, 25, 20, 0.95));
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 25px;
  padding: 50px 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8),
              0 0 100px rgba(212, 175, 55, 0.1) inset;
  text-align: center;
  animation: slideDown 0.6s ease;
  position: relative;
  overflow: hidden;
}

.age-gate-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(212, 175, 55, 0.8), 
    transparent);
  animation: shimmer 3s infinite;
}

.age-gate-logo {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.age-gate-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.age-gate-subtitle {
  font-size: 1rem;
  color: #a0a0a0;
  margin-bottom: 30px;
  line-height: 1.6;
}

.age-gate-form {
  margin: 30px 0;
}

.age-gate-input-group {
  margin-bottom: 25px;
}

.age-gate-label {
  display: block;
  font-size: 0.95rem;
  color: #d4af37;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.age-gate-input {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  color: #f5f5f5;
  text-align: center;
  transition: all 0.3s ease;
  font-weight: 600;
}

.age-gate-input:focus {
  outline: none;
  border-color: #d4af37;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.age-gate-input::placeholder {
  color: rgba(160, 160, 160, 0.6);
}

.age-gate-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.age-gate-btn {
  flex: 1;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.age-gate-btn-enter {
  background: linear-gradient(135deg, #d4af37, #8b4513);
  color: white;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.age-gate-btn-enter:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.age-gate-btn-enter:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.age-gate-btn-exit {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: #a0a0a0;
}

.age-gate-btn-exit:hover {
  background: rgba(255, 100, 100, 0.1);
  border-color: rgba(255, 100, 100, 0.3);
  color: #ff6b6b;
}

.age-gate-warning {
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: 10px;
  padding: 15px;
  font-size: 0.8rem;
  color: #c0c0c0;
  line-height: 1.7;
  text-align: left;
}

.age-gate-warning strong {
  color: #ff9999;
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.age-gate-error {
  background: rgba(255, 100, 100, 0.15);
  border: 1px solid rgba(255, 100, 100, 0.4);
  border-radius: 8px;
  padding: 12px;
  color: #ff9999;
  font-size: 0.9rem;
  margin-top: 15px;
  animation: shake 0.5s ease;
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes shimmer {
  0%, 100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .age-gate-overlay {
    padding: 10px;
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 50px;
  }

  .age-gate-modal {
    padding: 40px 30px;
    margin: 0 auto;
    max-height: 90vh;
    overflow-y: auto;
  }

  .age-gate-title {
    font-size: 1.8rem;
  }

  .age-gate-logo {
    font-size: 3.5rem;
  }

  .age-gate-subtitle {
    font-size: 0.95rem;
  }

  .age-gate-input {
    font-size: 1rem;
    padding: 14px 18px;
  }

  .age-gate-btn {
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .age-gate-warning {
    font-size: 0.75rem;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .age-gate-overlay {
    padding-top: 30px;
  }

  .age-gate-modal {
    padding: 30px 20px;
    max-width: 95%;
  }

  .age-gate-title {
    font-size: 1.5rem;
  }

  .age-gate-logo {
    font-size: 3rem;
    margin-bottom: 15px;
  }

  .age-gate-subtitle {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  .age-gate-input {
    font-size: 0.95rem;
    padding: 12px 16px;
  }

  .age-gate-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .age-gate-btn {
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .age-gate-warning {
    font-size: 0.7rem;
    padding: 10px;
  }

  .age-gate-warning strong {
    font-size: 0.75rem;
  }
}

/* 가로 모드 대응 */
@media (max-width: 768px) and (orientation: landscape) {
  .age-gate-overlay {
    padding-top: 20px;
  }

  .age-gate-modal {
    max-height: 85vh;
    padding: 25px 30px;
  }

  .age-gate-logo {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }

  .age-gate-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .age-gate-subtitle {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .age-gate-form {
    margin: 20px 0;
  }

  .age-gate-warning {
    font-size: 0.7rem;
    padding: 10px;
  }
}
