/*
 * RealAI Girls - Character Page Styles
 * Extends design-system.css for character page layout
 */

/* ========== CHARACTER HERO ========== */
.char-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.char-hero__bg {
  position: absolute;
  inset: 0;
}

.char-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.char-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 12, 29, 0.2) 0%,
    rgba(12, 12, 29, 0.6) 50%,
    rgba(12, 12, 29, 1) 100%
  );
}

.char-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
}

.char-hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-rose);
  margin-bottom: var(--space-sm);
}

.char-hero__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 var(--space-xs);
  line-height: 1.05;
}

.char-hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-style: italic;
  color: var(--color-rose-light);
  margin: 0 0 var(--space-lg);
}

.char-hero__meta {
  display: flex;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.char-hero__meta-item {
  font-size: var(--text-sm);
}

.char-hero__meta-label {
  color: var(--color-text-dim);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.char-hero__meta-value {
  color: var(--color-text);
  font-weight: 600;
}


/* ========== BIO & STATS ========== */
.bio-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.bio__text {
  font-size: var(--text-lg);
  line-height: 1.85;
  color: var(--color-text);
}

.bio__text p { margin: 0 0 var(--space-lg); }

.stats-card {
  background: var(--color-navy-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.stats-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.stats-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.stats-card__label {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
}

.stats-card__value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.stats-card__vibes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-md);
}

.stats-card__vibe {
  font-size: var(--text-xs);
  color: var(--color-rose-light);
  background: rgba(232, 67, 147, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(232, 67, 147, 0.15);
}


/* ========== FREE GALLERY ========== */
.gallery-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-xl);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.gallery-grid--masonry {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 10px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration) var(--ease-smooth);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Standard 3-col grid (not masonry) */
.gallery-grid--standard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.gallery-grid--standard .gallery-item {
  aspect-ratio: 3 / 4;
}

.gallery-grid--standard .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ========== LOCKED PREMIUM PREVIEW ========== */
.locked-section {
  position: relative;
  margin-top: var(--space-xl);
}

.locked-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.locked-section__count {
  font-size: var(--text-sm);
  color: var(--color-gold);
  font-weight: 600;
}

.locked-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.locked-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.locked-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: blur(18px) brightness(0.6);
}

.locked-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 29, 0.35);
}

.locked-item__icon {
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.locked-item__text {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.locked-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}


/* ========== PHOTOSETS ========== */
.photosets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.photoset {
  background: var(--color-navy-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease-smooth);
}

.photoset:hover {
  border-color: var(--color-rose);
  box-shadow: var(--shadow-glow);
}

.photoset__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.photoset__body {
  padding: var(--space-lg);
}

.photoset__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 var(--space-xs);
}

.photoset__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
}

.photoset__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.photoset__badge--free {
  color: #27ae60;
  background: rgba(39, 174, 96, 0.12);
  border: 1px solid rgba(39, 174, 96, 0.2);
}

.photoset__badge--locked {
  color: var(--color-gold);
  background: rgba(212, 169, 52, 0.12);
  border: 1px solid rgba(212, 169, 52, 0.2);
}


/* ========== CROSS-LINKS ========== */
.crosslinks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}


/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 60px rgba(232, 67, 147, 0.3);
}

.lightbox__close {
  position: fixed;
  top: 16px;
  right: 20px;
  font-size: 36px;
  color: var(--color-rose-light);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
  transition: color var(--duration);
  line-height: 1;
}

.lightbox__close:hover { color: var(--color-white); }

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--color-text-muted);
  background: rgba(0,0,0,0.4);
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: all var(--duration);
}

.lightbox__nav:hover { color: var(--color-white); background: rgba(0,0,0,0.7); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }


/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .char-hero { min-height: 50vh; }

  .bio-section {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .gallery-grid,
  .gallery-grid--standard {
    grid-template-columns: repeat(2, 1fr);
  }

  .locked-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photosets-grid {
    grid-template-columns: 1fr;
  }

  .crosslinks-grid {
    grid-template-columns: 1fr;
  }

  .char-hero__meta {
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .gallery-grid--standard {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .locked-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
}
