/* ==========================================
   YASSEY AGE-GATE FRONTEND STYLES
   ========================================== */

/* Hide overlay in WP Admin, Page Builders, and Edit modes */
.wp-admin .age-gate,
.vc_inline-shortcode-edit_form .age-gate,
body[class*="vc_"] .age-gate,
.admin-bar .age-gate,
.elementor-editor-active .age-gate {
  display: none !important;
}

/* Instant black screen when gate is active */
html.yassey-gate-active,
html.yassey-gate-active body {
  background-color: #0d0d0d !important;
  overflow: hidden !important;
  height: 100% !important;
}

html.yassey-gate-active #age-gate-overlay {
  display: flex !important;
}

/* Modal Overlay */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif);
}

/* Glassmorphism Card */
.age-gate-card {
  position: relative;
  z-index: 3;
  max-width: 480px;
  width: 90%;
  padding: 50px 35px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

.age-gate-card h2 {
  font-size: 28px;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 700;
  color: #ffffff !important;
}

.age-gate-card p {
  font-size: 16px;
  color: #e0e0e0 !important;
  margin-bottom: 35px;
  line-height: 1.6;
}

/* Buttons Container */
.age-buttons-wrap {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.age-btn {
  display: inline-block;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap !important;
  text-decoration: none !important;
  text-align: center;
  box-sizing: border-box;
}

.age-btn-yes {
  background: #C8102E;
  color: #ffffff !important;
  border: none;
  box-shadow: 0 6px 20px rgba(191, 0, 10, 0.35);
  flex: 1;
  min-width: 170px;
}

.age-btn-yes:hover {
  background: #990008;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(153, 0, 8, 0.45);
}

.age-btn-no {
  background: transparent;
  color: #e0e0e0 !important;
  border: 1px solid #a8a8a8;
  flex: 1;
  min-width: 170px;
}

.age-btn-no:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
  border-color: #ffffff;
}

/* Red Shutter Pouring Animation */
.red-shutter {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #C8102E;
  z-index: 2;
  transform: translateY(calc(100% - 50px));
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}

.age-gate.is-pouring .red-shutter {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .age-gate-card {
    padding: 35px 20px;
  }
  .age-gate-card h2 {
    font-size: 22px;
  }
  .age-gate-card p {
    font-size: 14px;
    margin-bottom: 25px;
  }
  .age-btn {
    width: 100%;
    min-width: 100%;
  }
}
