/*
 * showcase.css — Midnight Muse product showcase page styles.
 * Owns: /collection/midnight-muse page layout, product cards, size table, pricing.
 * Does NOT own: global brand tokens (see theme.css), nav base styles, footer base styles.
 */

/* ── PAGE BASE ──────────────────────────────────── */
.page-collection {
  background: var(--bg);
}

/* ── NAV OVERRIDES FOR COLLECTION PAGE ─────────── */
.nav--collection {
  padding: 1.75rem 4rem;
  background: linear-gradient(to bottom, rgba(13,13,13,0.95), transparent);
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-sep {
  color: var(--dim);
  font-weight: 300;
  font-size: 0.8rem;
}

.nav-spacer {
  flex: 1;
}

.nav-back {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-back:hover {
  color: var(--gold);
}

/* ── COLLECTION HERO ───────────────────────────── */
.sc-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}

.sc-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sc-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 60% 50%, #1a1423 0%, transparent 65%),
    linear-gradient(160deg, #0d0d0d 0%, #1a1423 50%, #0d0d0d 100%);
  z-index: 1;
}

.sc-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.35;
}

.sc-hero-swatch {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 70% 40%, #2a1e38 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 30% 70%, #1a1226 0%, transparent 55%);
}

.sc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13,13,13,0.85) 0%,
    rgba(13,13,13,0.4) 50%,
    rgba(13,13,13,0.7) 100%
  );
  z-index: 2;
}

.sc-hero-content {
  position: relative;
  z-index: 10;
  padding: 12rem 4rem 8rem;
  max-width: 640px;
}

.sc-pre {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}

.sc-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 400;
  line-height: 0.92;
  color: var(--fg);
  margin-bottom: 2rem;
}

.sc-tagline {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 380px;
}

.sc-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  border-left: 1px solid rgba(201, 169, 110, 0.25);
  padding-left: 1.5rem;
}

.sc-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sc-meta-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

.sc-meta-val {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--fg);
  letter-spacing: 0.05em;
}

.sc-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 110, 0.35);
  padding-bottom: 0.4rem;
  transition: all 0.2s ease;
}

.sc-cta-link:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
  gap: 1.25rem;
}

.sc-cta-link::after {
  content: '↓';
  font-style: normal;
}

.sc-hero-number {
  position: absolute;
  right: 4rem;
  bottom: 6rem;
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 14rem);
  font-weight: 700;
  color: rgba(201, 169, 110, 0.04);
  line-height: 1;
  z-index: 3;
  pointer-events: none;
  letter-spacing: -0.05em;
}

/* ── COLLECTION INTRO ──────────────────────────── */
.sc-intro {
  padding: 8rem 4rem;
  background: #0a0a0a;
  border-top: 1px solid rgba(201, 169, 110, 0.08);
}

.sc-intro-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.sc-intro-lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 400;
  font-style: italic;
  color: var(--fg);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.sc-intro-body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.sc-intro-accent {
  flex-shrink: 0;
  width: 180px;
  padding-top: 0.5rem;
}

.sc-intro-rule {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin-bottom: 1.5rem;
}

.sc-intro-note {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--dim);
  letter-spacing: 0.1em;
  line-height: 1.8;
}

/* ── PIECES GRID ───────────────────────────────── */
.sc-pieces {
  padding: 8rem 4rem 10rem;
  background: var(--bg);
}

.sc-pieces-header {
  margin-bottom: 6rem;
  max-width: 540px;
}

.sc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  max-width: 1200px;
}

/* Full-width first card */
.sc-card--full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.sc-card--full .sc-card-visual {
  min-height: 520px;
}

/* Standard card */
.sc-card {
  display: flex;
  flex-direction: column;
  background: #0f0f0f;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sc-card--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger visible animation */
.sc-card:nth-child(2) { transition-delay: 0.1s; }
.sc-card:nth-child(3) { transition-delay: 0.15s; }
.sc-card:nth-child(4) { transition-delay: 0.2s; }
.sc-card:nth-child(5) { transition-delay: 0.25s; }
.sc-card:nth-child(6) { transition-delay: 0.3s; }
.sc-card:nth-child(7) { transition-delay: 0.35s; }

/* Gold-accent hero card */
.sc-card--accent {
  background: #12100e;
  border: 1px solid rgba(201, 169, 110, 0.2);
}

/* Card visual (swatch) area */
.sc-card-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  flex-shrink: 0;
}

/* Swatches — CSS-generated fabric representations */
.sc-swatch--obsidian {
  background:
    radial-gradient(ellipse 80% 60% at 40% 60%, #1a0f2a 0%, transparent 70%),
    linear-gradient(145deg, #0f0f14 0%, #1a1423 40%, #0d0c12 100%);
}

.sc-swatch--wine {
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, #3d1520 0%, transparent 65%),
    linear-gradient(150deg, #1a0a0f 0%, #2a1018 50%, #150810 100%);
}

.sc-swatch--ivory {
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, #2a2218 0%, transparent 70%),
    linear-gradient(140deg, #1a1610 0%, #221c14 50%, #161210 100%);
}

.sc-swatch--champagne {
  background:
    radial-gradient(ellipse 100% 80% at 50% 40%, #2a2010 0%, transparent 60%),
    linear-gradient(160deg, #181208 0%, #241a0c 50%, #1a1408 100%);
}

.sc-swatch--midnight {
  background:
    radial-gradient(ellipse 80% 70% at 40% 50%, #0c1a2e 0%, transparent 65%),
    linear-gradient(150deg, #080f1a 0%, #0f1828 50%, #080e18 100%);
}

.sc-swatch--rose {
  background:
    radial-gradient(ellipse 90% 70% at 55% 45%, #2a1420 0%, transparent 65%),
    linear-gradient(145deg, #160a12 0%, #220f1a 50%, #140810 100%);
}

.sc-swatch--gold {
  background:
    radial-gradient(ellipse 80% 70% at 45% 55%, #2a1f08 0%, transparent 60%),
    linear-gradient(155deg, #1a1204 0%, #281a06 50%, #161004 100%);
}

/* Texture overlays on swatches */
.sc-swatch-detail {
  position: absolute;
  inset: 0;
}

.sc-swatch-detail--lace {
  background-image:
    repeating-linear-gradient(45deg, rgba(201,169,110,0.04) 0px, rgba(201,169,110,0.04) 1px, transparent 1px, transparent 12px),
    repeating-linear-gradient(-45deg, rgba(201,169,110,0.04) 0px, rgba(201,169,110,0.04) 1px, transparent 1px, transparent 12px);
}

.sc-swatch-detail--velvet {
  background: linear-gradient(135deg,
    rgba(255,255,255,0.03) 0%,
    transparent 40%,
    rgba(255,255,255,0.02) 60%,
    transparent 100%
  );
}

.sc-swatch-detail--beading {
  background-image:
    radial-gradient(circle 2px at 20% 30%, rgba(201,169,110,0.3) 0%, transparent 100%),
    radial-gradient(circle 1.5px at 50% 60%, rgba(201,169,110,0.25) 0%, transparent 100%),
    radial-gradient(circle 2px at 75% 25%, rgba(201,169,110,0.3) 0%, transparent 100%),
    radial-gradient(circle 1px at 35% 75%, rgba(201,169,110,0.2) 0%, transparent 100%),
    radial-gradient(circle 2px at 65% 80%, rgba(201,169,110,0.28) 0%, transparent 100%),
    radial-gradient(circle 1.5px at 85% 55%, rgba(201,169,110,0.22) 0%, transparent 100%);
}

.sc-swatch-detail--strap {
  background:
    repeating-linear-gradient(0deg,
      rgba(201,169,110,0.06) 0px,
      rgba(201,169,110,0.06) 1px,
      transparent 1px,
      transparent 8px
    );
}

.sc-swatch-detail--ruffle {
  background:
    repeating-linear-gradient(90deg,
      rgba(240,235,227,0.03) 0px,
      rgba(240,235,227,0.03) 2px,
      transparent 2px,
      transparent 20px
    );
}

/* Piece number overlay */
.sc-card-num {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(240, 235, 227, 0.06);
  line-height: 1;
  letter-spacing: -0.05em;
}

/* Hover shimmer on swatch */
.sc-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sc-card:hover .sc-card-visual::after {
  opacity: 1;
}

/* Card info */
.sc-card-info {
  padding: 2.5rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.sc-card-cat {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  opacity: 0.8;
}

.sc-card-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  font-style: italic;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}

.sc-card:hover .sc-card-name {
  color: var(--gold);
}

.sc-card--accent:hover .sc-card-name {
  color: var(--gold);
}

.sc-card-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  flex: 1;
}

.sc-card-details {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(240, 235, 227, 0.06);
}

.sc-card-fabric {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0.6;
}

.sc-card-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--fg);
}

.sc-card-badge {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,169,110,0.35);
  padding: 0.3rem 0.8rem;
  display: inline-block;
  margin-bottom: 1.25rem;
  border-radius: 1px;
}

.sc-card-btn {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid rgba(240, 235, 227, 0.18);
  padding: 0.8rem 1.5rem;
  transition: all 0.25s ease;
  text-align: center;
  align-self: flex-start;
}

.sc-card-btn:hover {
  background: rgba(240, 235, 227, 0.05);
  border-color: rgba(240, 235, 227, 0.4);
}

.sc-card-btn--gold {
  color: var(--gold);
  border-color: rgba(201, 169, 110, 0.4);
}

.sc-card-btn--gold:hover {
  background: rgba(201, 169, 110, 0.08);
  border-color: var(--gold);
}

/* ── SIZE GUIDE ────────────────────────────────── */
.sc-sizes {
  padding: 8rem 4rem;
  background: #0a0a0a;
  border-top: 1px solid rgba(201, 169, 110, 0.08);
}

.sc-sizes-inner {
  max-width: 900px;
}

.sc-sizes-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.15;
  margin: 1.5rem 0 4rem;
}

.sc-size-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2rem;
}

.sc-size-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.sc-size-table th {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  padding: 0 1.5rem 1.25rem 0;
  text-align: left;
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.sc-size-table td {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--fg);
  padding: 1.1rem 1.5rem 1.1rem 0;
  border-bottom: 1px solid rgba(240, 235, 227, 0.05);
}

.sc-size-table td:first-child {
  font-weight: 500;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.sc-size-table tr:last-child td {
  border-bottom: none;
}

.sc-size-table tr:hover td {
  background: rgba(201, 169, 110, 0.03);
}

.sc-size-note {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.7;
  opacity: 0.75;
}

/* ── PRICING ───────────────────────────────────── */
.sc-pricing {
  padding: 8rem 4rem;
  background: var(--bg);
  border-top: 1px solid rgba(201, 169, 110, 0.08);
}

.sc-pricing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  max-width: 1100px;
  align-items: start;
}

.sc-pricing-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.2;
  margin: 1.5rem 0 2rem;
}

.sc-price-range {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.sc-price-from,
.sc-price-to {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.sc-price-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}

.sc-pricing-sub {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.8;
  max-width: 420px;
}

.sc-pricing-tiers {
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-self: stretch;
}

.sc-tier {
  padding: 2rem 2.5rem;
  background: #0f0f0f;
  border-left: 2px solid rgba(240, 235, 227, 0.08);
  transition: all 0.2s ease;
}

.sc-tier:hover {
  background: #111111;
  border-left-color: rgba(201, 169, 110, 0.3);
}

.sc-tier--mid {
  background: #101010;
  border-left-color: rgba(201, 169, 110, 0.15);
}

.sc-tier--top {
  background: #111008;
  border-left-color: var(--gold);
}

.sc-tier--top:hover {
  border-left-color: var(--gold);
}

.sc-tier-range {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.sc-tier--top .sc-tier-range {
  color: var(--gold);
}

.sc-tier-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.sc-tier-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.6;
}

/* ── NOTIFY CTA ────────────────────────────────── */
.sc-notify {
  position: relative;
  padding: 12rem 4rem;
  background: linear-gradient(180deg, #0d0d0d 0%, #1a1423 50%, #0d0d0d 100%);
  text-align: center;
  overflow: hidden;
}

.sc-notify-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.sc-notify-inner {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
}

.sc-notify-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1;
  margin: 1.5rem 0 1.5rem;
}

.sc-notify-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.75;
  margin-bottom: 3.5rem;
}

.sc-notify-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto 1.5rem;
}

.sc-notify-input {
  flex: 1;
  background: rgba(240, 235, 227, 0.06);
  border: 1px solid rgba(240, 235, 227, 0.12);
  border-right: none;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 1rem 1.25rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.sc-notify-input::placeholder {
  color: var(--dim);
  opacity: 0.5;
}

.sc-notify-input:focus {
  border-color: rgba(201, 169, 110, 0.4);
}

.sc-notify-btn {
  background: var(--gold);
  color: #0d0d0d;
  border: 1px solid var(--gold);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sc-notify-btn:hover {
  background: #e0be7c;
  border-color: #e0be7c;
}

.sc-notify-btn:disabled {
  background: rgba(201, 169, 110, 0.4);
  border-color: transparent;
  color: rgba(13,13,13,0.6);
  cursor: default;
}

.sc-notify-fine {
  font-size: 0.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
  .sc-grid {
    grid-template-columns: 1fr;
  }

  .sc-card--full {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .sc-card--full .sc-card-visual {
    min-height: 380px;
  }

  .sc-pricing-inner {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .sc-intro-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sc-intro-accent {
    width: auto;
  }
}

@media (max-width: 768px) {
  .nav--collection {
    padding: 1.5rem 2rem;
  }

  .sc-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sc-hero-content {
    padding: 8rem 2rem 5rem;
  }

  .sc-hero-number {
    display: none;
  }

  .sc-intro { padding: 5rem 2rem; }

  .sc-pieces { padding: 5rem 2rem 6rem; }

  .sc-sizes { padding: 5rem 2rem; }

  .sc-pricing { padding: 5rem 2rem; }

  .sc-notify { padding: 7rem 2rem; }

  .sc-notify-form {
    flex-direction: column;
    gap: 0.75rem;
  }

  .sc-notify-input {
    border-right: 1px solid rgba(240, 235, 227, 0.12);
  }

  .sc-notify-btn {
    width: 100%;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .sc-title {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  .sc-hero-meta {
    gap: 1rem;
  }

  .sc-card-info {
    padding: 2rem 1.75rem 2.5rem;
  }
}
