/* ==========================================================================
   HEMP FLOWER CO — AGE VERIFICATION GATE
   ========================================================================== */

.hfc-age-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hfc-age-gate.is-active {
  display: flex;
  animation: hfc-ag-fadeIn 400ms var(--hfc-ease) forwards;
}

.hfc-age-gate.is-closing {
  animation: hfc-ag-fadeOut 400ms var(--hfc-ease) forwards;
}

@keyframes hfc-ag-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hfc-ag-fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Backdrop */
.hfc-age-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 25, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Card */
.hfc-age-gate__card {
  position: relative;
  background: #fff;
  border-radius: var(--hfc-radius-xl);
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  animation: hfc-ag-cardIn 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hfc-age-gate.is-closing .hfc-age-gate__card {
  animation: hfc-ag-cardOut 300ms var(--hfc-ease) forwards;
}

@keyframes hfc-ag-cardIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes hfc-ag-cardOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}

/* Logo */
.hfc-age-gate__logo {
  font-family: var(--hfc-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--hfc-forest);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hfc-age-gate__logo span {
  font-weight: 400;
  color: var(--hfc-sage);
}

/* Icon */
.hfc-age-gate__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--hfc-mint-pale);
  border-radius: 50%;
  color: var(--hfc-forest);
}

/* Title */
.hfc-age-gate__title {
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-2xl);
  font-weight: 700;
  color: var(--hfc-near-black);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

/* Description */
.hfc-age-gate__desc {
  font-family: var(--hfc-font-body);
  font-size: var(--hfc-text-sm);
  color: var(--hfc-gray);
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.hfc-age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.hfc-age-gate__btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--hfc-radius-md);
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-base);
  font-weight: 600;
  cursor: pointer;
  transition:
    background 200ms var(--hfc-ease),
    transform 100ms var(--hfc-ease);
  -webkit-tap-highlight-color: transparent;
}

.hfc-age-gate__btn:active {
  transform: scale(0.98);
}

.hfc-age-gate__btn--yes {
  background: var(--hfc-forest);
  color: #fff;
}

.hfc-age-gate__btn--yes:hover {
  background: var(--hfc-forest-light);
}

.hfc-age-gate__btn--no {
  background: var(--hfc-warm-white);
  color: var(--hfc-gray);
  border: 1px solid var(--hfc-sand);
}

.hfc-age-gate__btn--no:hover {
  background: var(--hfc-sand);
  color: var(--hfc-charcoal);
}

/* Legal text */
.hfc-age-gate__legal {
  font-size: 0.7rem;
  color: var(--hfc-stone);
  line-height: 1.5;
  margin: 0;
}

.hfc-age-gate__legal a {
  color: var(--hfc-sage);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hfc-age-gate__legal a:hover {
  color: var(--hfc-forest);
}

/* --- Mobile adjustments --- */
@media (max-width: 480px) {
  .hfc-age-gate__card {
    padding: 32px 24px;
  }

  .hfc-age-gate__icon {
    width: 56px;
    height: 56px;
  }

  .hfc-age-gate__icon svg {
    width: 32px;
    height: 32px;
  }
}
