/* File: css/age-gate.css */

#age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000; /* above header */
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#age-gate-overlay.active {
  display: flex;
}

#age-gate-overlay .age-gate-modal {
  background-color: var(--studio69-dark-gray);
  color: var(--studio69-text);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  max-width: 20rem;
  width: 90%;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
}

#age-gate-overlay .age-gate-modal h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

#age-gate-overlay .age-gate-modal button {
  margin: 0 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 700;
  border: 2px solid;
  transition: background-color 0.3s, color 0.3s;
  background-color: transparent;
}

#age-gate-overlay .age-gate-modal button#age-yes {
  border-color: var(--studio69-gold);
  color: var(--studio69-gold);
}

#age-gate-overlay .age-gate-modal button#age-yes:hover {
  background-color: var(--studio69-gold);
  color: #000;
}

#age-gate-overlay .age-gate-modal button#age-no {
  border-color: #fff;
  color: #fff;
}

#age-gate-overlay .age-gate-modal button#age-no:hover {
  background-color: #fff;
  color: #000;
}

#age-gate-overlay .age-gate-modal p.message {
  margin-top: 1rem;
  color: #ef4444;
}

@keyframes age-gate-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

#age-gate-overlay.fade-out {
  animation: age-gate-fade-out 0.5s forwards;
}
