/* catalog.css — Card catalog browse + detail screens. Luxury gothic aesthetic. Uses theme.css tokens. */

/* =====================================================
   SHIMMER ANIMATION
   ===================================================== */
@keyframes shimmerSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* =====================================================
   CATALOG BROWSE
   ===================================================== */
.catalog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.catalog-hero {
  text-align: center;
  padding: 64px 0 24px;
  margin-bottom: 40px;
  position: relative;
}

.catalog-hero::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 32px auto 0;
}

.catalog-price-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.gold-pill {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 99px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.gold-pill:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
}

.price-note {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.3px;
}

/* =====================================================
   COLLECTION SECTIONS
   ===================================================== */
.collection-section {
  margin-bottom: 80px;
  padding: 80px 24px;
  background: linear-gradient(180deg, #0a0a0a 0%, #050205 100%);
  border-radius: var(--radius);
  position: relative;
}

.collection-section::before {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 48px;
}

.collection-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(122, 12, 46, 0.15);
  position: relative;
}

.collection-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--gold-dim);
}

.collection-name {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.5px;
}

.collection-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
  letter-spacing: 0.5px;
}

/* =====================================================
   CATALOG CARD GRID
   ===================================================== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #0F0508, #050205);
  border: 1px solid rgba(122, 12, 46, 0.25);
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  position: relative;
}

/* Shimmer overlay — slides on hover */
.catalog-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(192, 192, 192, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.catalog-card:hover::after {
  opacity: 1;
  animation: shimmerSweep 0.8s ease-out forwards;
}

.catalog-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-4px);
  box-shadow:
    0 8px 40px rgba(212, 175, 55, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(212, 175, 55, 0.04);
}

/* Card image area */
.catalog-card-image {
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

/* Bottom gradient overlay on image */
.catalog-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(74, 14, 27, 0.5));
  pointer-events: none;
  z-index: 1;
}

.catalog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.catalog-card:hover .catalog-card-img {
  transform: scale(1.04);
}

/* Mock card (when no image) */
.catalog-card-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px;
  text-align: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(122, 12, 46, 0.08) 0%, transparent 70%);
}

.catalog-card-mock-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.3px;
}

.catalog-card-mock-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-dim);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 10px;
  width: 100%;
  text-align: center;
  font-weight: 500;
}

/* Price overlay badge */
.catalog-card-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(5, 2, 5, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 5px 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3;
}

.catalog-card-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}

/* Card body */
.catalog-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.catalog-card-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}

.catalog-card-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1;
  letter-spacing: 0.2px;
}

/* Circular CTA button */
.catalog-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--deep-red);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(122, 12, 46, 0.4);
  flex-shrink: 0;
  align-self: flex-start;
}

.catalog-card-cta:hover {
  background: var(--gold);
  color: #0F0508;
  border-color: var(--gold);
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}

/* =====================================================
   CATALOG FOOTER
   ===================================================== */
.catalog-footer {
  margin-top: 80px;
  padding: 48px 0;
  text-align: center;
  position: relative;
}

.catalog-footer::before {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 32px;
}

/* =====================================================
   DETAIL PAGE
   ===================================================== */
.detail-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: start;
}

.detail-visual {
  position: sticky;
  top: 96px;
}

.detail-card-art {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  border: 1px solid rgba(122, 12, 46, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #0F0508, #050205);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(122, 12, 46, 0.06);
  position: relative;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.detail-card-art::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(74, 14, 27, 0.5));
  pointer-events: none;
  z-index: 1;
}

.detail-card-art:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(212, 175, 55, 0.08),
    0 8px 40px rgba(212, 175, 55, 0.06);
}

.detail-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.detail-card-art-inner {
  text-align: center;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.detail-card-art-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.5px;
}

.detail-card-art-collection {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-dim);
  font-weight: 500;
}

.detail-card-art-hint {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--fg-muted);
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  padding-top: 14px;
  margin-top: 4px;
}

.detail-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.detail-spec {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.3px;
}

.spec-icon {
  font-size: 16px;
  color: var(--gold-dim);
  flex-shrink: 0;
}

/* =====================================================
   DETAIL CONTENT
   ===================================================== */
.detail-content {
  padding-top: 8px;
}

.detail-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 16px;
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.detail-tagline {
  font-size: 17px;
  color: var(--fg-muted);
  font-style: italic;
  margin-bottom: 28px;
  line-height: 1.65;
  font-family: var(--font-serif);
}

.detail-description {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  letter-spacing: 0.2px;
}

/* Dare preview panel */
.detail-dare-preview {
  background: rgba(212, 175, 55, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--radius-sm);
  padding: 28px 32px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.detail-dare-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-dim), rgba(212, 175, 55, 0.1));
}

.detail-dare-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold-dim);
  font-weight: 600;
  margin-bottom: 14px;
  font-family: var(--font-body);
}

.detail-dare-text {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg);
  font-style: italic;
  border-left: 2px solid rgba(212, 175, 55, 0.25);
  padding-left: 18px;
  margin: 0;
}

/* Pricing block */
.detail-pricing {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 22px 28px;
  background: linear-gradient(145deg, #0F0508, #050205);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(122, 12, 46, 0.2);
  position: relative;
  overflow: hidden;
}

.detail-pricing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-serif);
}

.price-label {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.3px;
}

/* CTA button */
.detail-cta {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 32px;
  background: var(--deep-red);
  color: var(--fg);
  border: 1px solid rgba(122, 12, 46, 0.5);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.detail-cta:hover {
  background: var(--gold);
  color: #0F0508;
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.detail-fine-print {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.7;
  text-align: center;
  opacity: 0.7;
  letter-spacing: 0.2px;
}

/* =====================================================
   NAV LINKS
   ===================================================== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  transition: color 0.25s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link-active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link-active {
  color: var(--fg);
}

.nav-link-active {
  color: var(--gold-light);
}

/* =====================================================
   RESPONSIVE — Tablet (max-width: 1000px)
   ===================================================== */
@media (max-width: 1000px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-visual {
    position: static;
  }

  .detail-card-art {
    max-height: 400px;
  }

  .collection-section {
    padding: 60px 20px;
    margin-bottom: 60px;
  }
}

/* =====================================================
   RESPONSIVE — Mobile (max-width: 640px)
   ===================================================== */
@media (max-width: 640px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  .catalog-card-image {
    aspect-ratio: 4 / 5;
  }

  .collection-header {
    flex-direction: column;
    gap: 6px;
  }

  .collection-section {
    padding: 48px 16px;
    margin-bottom: 48px;
  }

  .catalog-hero {
    padding: 40px 0 16px;
  }

  .gold-pill {
    font-size: 13px;
    padding: 8px 18px;
  }

  .detail-card-art {
    max-height: 320px;
  }

  .detail-dare-preview {
    padding: 20px 24px;
  }

  .detail-pricing {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 22px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-link {
    font-size: 11px;
    letter-spacing: 1.5px;
  }
}
