/* === AGE VERIFICATION MODAL === */
.age-modal {
  font-family: Raleway, sans-serif;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-family: "Inter", sans-serif;
}

/* Dark translucent overlay */
.age-overlay {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 0, 25, 0.85);
  backdrop-filter: blur(5px);
  z-index: 1;
}

/* Popup box */
.age-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80%;
  height: 562px;
  position: relative;
  z-index: 2;
  background: url('../img/backgr.png') center/cover no-repeat;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  color: #fff;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 0.5s ease;
}

/* Headings */
.age-content h2 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 10px;
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 10px;
  max-width: 488px;
  text-align: left;
  font-family: Raleway, sans-serif;
}

.age-content strong {
  font-weight: 700;
  font-family: Raleway, sans-serif;
}

.age-content p {
  margin-bottom: 25px;
  width: 100%;
  max-width: 488px;
  text-align: left;
  color: #ffffff;
  font-family: Raleway, sans-serif;
}

/* Inputs */
.dob-fields {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 25px;
  max-width: 488px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.input-group label {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 400;
}

.dob-fields input {
  width: 120px;
  margin: 0 0 56px 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-align: center;
  font-size: 1rem;
  outline: none;
}

.dob-fields input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.dob-fields input:focus {
  border-color: #31D887;
  box-shadow: 0 0 0 2px rgba(49, 216, 135, 0.2);
}

/* Button */
button#submit-age {
  background: #31D887;
  color: #140031;
  font-weight: 400;
  padding: 12px 32px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s ease;
  font-family: Raleway, sans-serif;
}

button#submit-age:hover {
  background: #34ff80;
  transform: translateY(-1px);
}

button#submit-age:active {
  transform: translateY(0);
}

/* Hide modal when confirmed */
.age-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .age-content {
    padding: 30px 20px;
    margin: 20px;
    width: calc(100% - 40px);
    max-width: none;
    height: auto;
    min-height: 400px;
  }
  
  .age-content h2 {
    font-size: 24px;
    line-height: 1.3;
    text-align: center;
    max-width: none;
  }
  
  .age-content p {
    text-align: left;
    max-width: none;
    padding: 0 10px !important;
    margin-left: 20px;
    font-size: 21px;
  }
  
  .dob-fields {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    max-width: none;
  }
  
  .input-group {
    align-items: flex-start;
    width: 100%;
  }
  
  .dob-fields input {
    width: 200px;
    padding: 15px;
    font-size: 1.2rem;
    margin: 0;
  }
  
  button#submit-age {
    width: 200px;
    padding: 15px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .age-content {
    padding: 25px 15px;
    margin: 15px;
    width: calc(100% - 30px);
  }
  
  .age-content h2 {
    font-size: 32px;
    text-align: left;
    line-height: 38px;
    margin: 0;
    padding: 0 10px;
    font-weight: 100;
  }
  
  .dob-fields input {
    width: 150px;
    padding: 12px;
  }
  
  button#submit-age {
    width: 100%;
    font-weight: normal;
  }
}

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

/* WordPress specific styles to prevent conflicts */
.age-modal * {
  box-sizing: border-box;
}

/* Ensure modal appears above WordPress admin bar */
.admin-bar .age-modal {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .age-modal {
    top: 46px;
  }
}
