/* ==========================================================================
   DREWBEEE RIPS — gallery.css (Galleria page only)
   ========================================================================== */

/* ---- Page hero: compact, honeycomb whisper + purple/gold glow (singles-scale) ---- */
.gallery-hero {
  position: relative;
  padding: 58px 0 46px;
  overflow: hidden;
  border-bottom: 1px solid rgba(139, 49, 232, 0.28);
}

/* low-opacity honeycomb field, echoing the card backs in the logo art */
.gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-conic-gradient(
      from 30deg,
      rgba(168, 85, 247, 0.10) 0deg 60deg,
      transparent 60deg 120deg
    );
  background-size: 52px 90px;
  opacity: 0.16;
  pointer-events: none;
}

/* purple energy + gold payoff glows behind the headline */
.gallery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 640px 300px at 12% 0%, rgba(139, 49, 232, 0.30), transparent 65%),
    radial-gradient(ellipse 520px 260px at 88% 100%, rgba(255, 180, 0, 0.10), transparent 60%);
  pointer-events: none;
}

.gallery-hero .wrap {
  position: relative;
  z-index: 1;
}

.gallery-hero h1 {
  font-size: clamp(2.7rem, 8vw, 4.4rem);
  text-shadow: 0 0 34px rgba(168, 85, 247, 0.35);
}

.gallery-hero h1 .marker {
  font-size: 0.88em;
}

.hero-sub {
  margin-top: 12px;
  font-weight: 800;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  letter-spacing: 0.01em;
}

.hero-note {
  margin-top: 8px;
  color: var(--ink-dim);
  font-size: 0.92rem;
  max-width: 62ch;
}

.hero-note strong {
  color: var(--purple-hot);
}

/* ---- Storefront CTA strip: two big tappable panels ---- */
.store-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .store-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.store-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-raised);
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.store-tile:hover {
  transform: translateY(-2px);
}

/* faint honeycomb whisper inside both panels */
.store-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-conic-gradient(
      from 30deg,
      rgba(255, 255, 255, 0.06) 0deg 60deg,
      transparent 60deg 120deg
    );
  background-size: 44px 76px;
  opacity: 0.09;
  pointer-events: none;
}

.store-tile > * {
  position: relative;
  z-index: 1;
}

.store-name {
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  letter-spacing: 0.03em;
}

.store-sub {
  color: var(--ink-dim);
  font-size: 0.88rem;
}

/* gold treatment — money/action lane (eBay buy-it-now) */
.store-tile--ebay {
  border: 1px solid rgba(255, 180, 0, 0.55);
  background:
    radial-gradient(ellipse 420px 200px at 0% 0%, rgba(255, 180, 0, 0.16), transparent 65%),
    var(--bg-raised);
}

.store-tile--ebay .store-name {
  color: var(--gold);
}

.store-tile--ebay:hover {
  border-color: var(--gold-hot);
  box-shadow: var(--glow-gold);
}

/* purple treatment — stream energy lane (Whatnot) */
.store-tile--whatnot {
  border: 1px solid rgba(168, 85, 247, 0.55);
  background:
    radial-gradient(ellipse 420px 200px at 100% 0%, rgba(139, 49, 232, 0.26), transparent 65%),
    var(--bg-raised);
}

.store-tile--whatnot .store-name {
  color: var(--purple-hot);
}

.store-tile--whatnot:hover {
  border-color: var(--purple-hot);
  box-shadow: var(--glow-purple);
}

/* ---- THE WALL: responsive photo grid ---- */
.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1020px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Gallery tile (markup emitted by renderGallery in site.js) ---- */
.g-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid rgba(139, 49, 232, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.g-tile:hover,
.g-tile:focus-visible {
  transform: translateY(-3px);
  border-color: var(--purple-hot);
  box-shadow: var(--glow-purple);
}

.g-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.g-tile:hover .g-img {
  transform: scale(1.04);
}

/* branded placeholder when a tile has no photo yet — honeycomb + initials */
.g-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.35), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(255, 180, 0, 0.22), transparent 50%),
    repeating-conic-gradient(from 30deg, rgba(255, 255, 255, 0.04) 0deg 60deg, transparent 60deg 120deg),
    var(--bg-panel);
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: rgba(245, 242, 250, 0.85);
  text-shadow: 0 0 22px rgba(168, 85, 247, 0.8);
}

/* ---- Overlay: permanent bottom scrim so the title reads without hover ---- */
.g-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 34px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(11, 7, 19, 0.62) 34%, rgba(11, 7, 19, 0.92));
  transition: background 0.15s ease;
}

.g-tile:hover .g-overlay,
.g-tile:focus-visible .g-overlay {
  background: linear-gradient(180deg, transparent, rgba(11, 7, 19, 0.78) 30%, rgba(22, 14, 36, 0.97));
}

.g-title {
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.3;
}

.g-sub {
  color: var(--ink-dim);
  font-size: 0.78rem;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.g-tile:hover .g-sub,
.g-tile:focus-visible .g-sub {
  color: var(--ink);
}

/* ---- Platform badge chip: gold = eBay, purple = Whatnot, dim = none ---- */
.g-badge {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  margin-bottom: 3px;
  background: rgba(185, 174, 203, 0.14);
  color: var(--ink-dim);
  border: 1px solid rgba(185, 174, 203, 0.35);
}

.g-tile[data-platform="ebay"] .g-badge {
  background: rgba(255, 180, 0, 0.16);
  color: var(--gold-hot);
  border-color: rgba(255, 180, 0, 0.55);
}

.g-tile[data-platform="whatnot"] .g-badge {
  background: rgba(168, 85, 247, 0.18);
  color: var(--purple-hot);
  border-color: rgba(168, 85, 247, 0.55);
}

/* ---- Empty state: honest, inviting, on-brand ---- */
.gallery-empty {
  grid-column: 1 / -1;
  position: relative;
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed rgba(168, 85, 247, 0.5);
  border-radius: var(--radius);
  color: var(--ink-dim);
  overflow: hidden;
}

/* honeycomb whisper behind the empty-state message */
.gallery-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-conic-gradient(
      from 30deg,
      rgba(168, 85, 247, 0.10) 0deg 60deg,
      transparent 60deg 120deg
    );
  background-size: 48px 82px;
  opacity: 0.12;
  pointer-events: none;
}

.gallery-empty > * {
  position: relative;
  z-index: 1;
}

/* ---- Honesty note strip below the wall ---- */
.wall-note {
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.92rem;
  max-width: 62ch;
  margin: 0 auto;
  padding: 18px 20px;
  border-top: 1px solid rgba(139, 49, 232, 0.25);
  border-bottom: 1px solid rgba(139, 49, 232, 0.25);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .g-tile:hover,
  .g-tile:focus-visible,
  .store-tile:hover {
    transform: none;
  }
  .g-tile:hover .g-img {
    transform: none;
  }
}
