/* Age gate overlay — Phase 1 */

html.age-gate-locked body {
  overflow: hidden;
}

html.age-gate-locked body > *:not(.age-gate) {
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
}

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

html.age-gate-locked .age-gate {
  display: flex;
}

.age-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.age-gate__modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.age-gate__icon {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: #c9a227;
}

.age-gate__title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #111111;
}

.age-gate__intro {
  font-size: 14px;
  line-height: 1.6;
  color: #444444;
  margin-bottom: 16px;
}

.age-gate__prompt {
  font-size: 14px;
  font-weight: 600;
  color: #222222;
  margin-bottom: 10px;
}

.age-gate__list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 24px;
}

.age-gate__list li {
  font-size: 14px;
  line-height: 1.6;
  color: #444444;
  margin-bottom: 6px;
}

.age-gate__list a {
  color: #2563eb;
  text-decoration: underline;
}

.age-gate__list a:hover {
  color: #1d4ed8;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.age-gate__btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.age-gate__btn--enter {
  background: #ff6b35;
  color: #ffffff;
}

.age-gate__btn--enter:hover {
  background: #e55a28;
}

.age-gate__btn--exit {
  background: #f0f0f0;
  color: #555555;
}

.age-gate__btn--exit:hover {
  background: #e4e4e4;
  color: #333333;
}

@media (max-width: 480px) {
  .age-gate__modal {
    padding: 24px 20px 20px;
    border-radius: 12px;
  }

  .age-gate__title {
    font-size: 18px;
  }

  .age-gate__btn {
    font-size: 14px;
    padding: 13px 16px;
  }
}

/* NSFW content blur (Phase 2 mock) */

img[data-explicit="true"] {
  filter: blur(18px);
  transform: scale(1.08);
  transition: filter 0.3s ease, transform 0.3s ease;
}

html.age-verified img[data-explicit="true"] {
  filter: none;
  transform: none;
}

.destaque-card:has(img[data-explicit="true"]),
.model-card:has(img[data-explicit="true"]),
.story-item:has(img[data-explicit="true"]) {
  cursor: pointer;
}

/* 18+ badge on blurred explicit content */

.destaque-card:has(img[data-explicit="true"])::before,
.model-card:has(img[data-explicit="true"])::before {
  content: '18+';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  z-index: 3;
  pointer-events: none;
}

.model-card:has(img[data-explicit="true"]) {
  position: relative;
}

.model-card:has(img[data-explicit="true"])::before {
  aspect-ratio: 2 / 3;
  font-size: 26px;
}

.story-ring:has(img[data-explicit="true"]) {
  position: relative;
}

.story-ring:has(img[data-explicit="true"])::after {
  content: '18+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  z-index: 2;
  pointer-events: none;
}

html.age-verified .destaque-card:has(img[data-explicit="true"])::before,
html.age-verified .model-card:has(img[data-explicit="true"])::before,
html.age-verified .story-ring:has(img[data-explicit="true"])::after {
  display: none;
}

@media (max-width: 768px) {
  .destaque-card:has(img[data-explicit="true"])::before {
    aspect-ratio: 1 / 1;
    font-size: 18px;
  }
}

/* Age verification modal (Phase 2 mock) */

.age-verify {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.age-verify.is-open {
  display: flex;
}

.age-verify__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.age-verify__modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.age-verify__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #888888;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.age-verify__close:hover {
  background: #f0f0f0;
  color: #333333;
}

.age-verify__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
  padding-right: 28px;
  color: #111111;
}

.age-verify__intro {
  font-size: 14px;
  line-height: 1.6;
  color: #444444;
  margin-bottom: 20px;
}

.age-verify__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.age-verify__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333333;
  margin-bottom: 10px;
}

.age-verify__feature-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #22a06b;
}

.age-verify__btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: #ff6b35;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.age-verify__btn:hover {
  background: #e55a28;
}

.age-verify__notice {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  color: #888888;
}

@media (max-width: 480px) {
  .age-verify__modal {
    padding: 24px 20px 20px;
    border-radius: 12px;
  }

  .age-verify__title {
    font-size: 17px;
  }

  .age-verify__btn {
    font-size: 14px;
    padding: 13px 16px;
  }
}
