/* =============================================
   sabby.cards — Design System
   Dark boutique card shop
   Fonts: Bebas Neue (display) + DM Sans (body)
   ============================================= */

:root {
  --bg:           #0f0f1a;
  --bg-surface:   #1a1a2e;
  --bg-card:      #16213e;
  --bg-card-hover:#1a2a50;
  --accent:       #4361ee;
  --accent-hover: #3451d1;
  --accent-glow:  rgba(67,97,238,0.25);
  --venmo:        #008CFF;
  --paypal:       #003087;
  --paypal-gold:  #009cde;
  --text-primary: #f0f0f8;
  --text-muted:   #8888aa;
  --text-dim:     #555577;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(67,97,238,0.4);
  --radius:       10px;
  --radius-lg:    14px;
  --suit:         #4361ee;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ---- HEADER ---- */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-suit {
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}

.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.logo-tld {
  color: var(--accent);
}

.header-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.back-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.back-link:hover { color: var(--text-primary); }

/* ---- HERO STRIP ---- */
.hero-strip {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.hero-tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.payment-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pay-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.15s, transform 0.15s;
  text-decoration: none;
}
.pay-badge:hover { opacity: 0.85; transform: translateY(-1px); }

.pay-badge.venmo {
  background: rgba(0,140,255,0.15);
  border: 1px solid rgba(0,140,255,0.3);
  color: #4db8ff;
}

.pay-badge.paypal {
  background: rgba(0,156,222,0.12);
  border: 1px solid rgba(0,156,222,0.3);
  color: #5bc5f5;
}

/* ---- FILTERS ---- */
.filters-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}

.filters-form {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 7px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.filter-clear {
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--text-dim);
  padding-bottom: 1px;
  transition: color 0.15s;
}
.filter-clear:hover { color: var(--text-primary); }

/* ---- SHOP MAIN ---- */
.shop-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

/* ---- CARD GRID ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* ---- SHOP CARD ---- */
.shop-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.shop-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(67,97,238,0.15);
}
.shop-card.is-locked {
  opacity: 0.6;
}

.card-image-wrap {
  position: relative;
  display: block;
  background: #0a0a18;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.3s;
}
.shop-card:hover .card-img {
  transform: scale(1.03);
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-dim);
}

.price-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 5px;
  line-height: 1.3;
}

.locked-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(243,156,18,0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-meta {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-player {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.15s;
}
.card-player:hover { color: var(--accent); }

.card-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-year-brand {
  font-size: 12px;
  color: var(--text-muted);
}

.card-team {
  font-size: 12px;
  color: var(--text-dim);
}

.btn-offer {
  display: block;
  margin-top: 10px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.btn-offer:hover {
  background: var(--accent);
  color: #fff;
}

.btn-pending {
  display: block;
  margin-top: 10px;
  background: transparent;
  border: 1px solid var(--text-dim);
  color: var(--text-dim);
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-suit {
  display: block;
  font-size: 56px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.btn-primary {
  display: inline-block;
  margin-top: 20px;
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent-hover); }

/* ---- DETAIL PAGE ---- */
.detail-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.detail-image-col {
  position: sticky;
  top: 84px;
}

.detail-img {
  width: 100%;
  border-radius: var(--radius-lg);
  background: #0a0a18;
  padding: 16px;
  border: 1px solid var(--border);
}

.detail-img-placeholder {
  aspect-ratio: 3/4;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: var(--text-dim);
}

.detail-player {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.detail-specs {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-row {
  display: flex;
  background: var(--bg-card);
}

.spec-row dt {
  width: 110px;
  min-width: 110px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-right: 1px solid var(--border);
}

.spec-row dd {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
}

.detail-price-block {
  margin-bottom: 24px;
}

.detail-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1;
}

.how-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.how-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.pay-option:hover {
  transform: translateX(3px);
}

.pay-option.venmo {
  border-color: rgba(0,140,255,0.25);
  background: rgba(0,140,255,0.07);
}
.pay-option.venmo:hover { border-color: rgba(0,140,255,0.5); }

.pay-option.paypal {
  border-color: rgba(0,156,222,0.2);
  background: rgba(0,156,222,0.07);
}
.pay-option.paypal:hover { border-color: rgba(0,156,222,0.45); }

.pay-option-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.pay-option-handle {
  font-size: 13px;
  color: var(--text-muted);
}

.pay-option.venmo svg { color: #4db8ff; }
.pay-option.paypal svg { color: #5bc5f5; }

.how-note {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 12px 14px;
  line-height: 1.5;
}

.how-note strong { color: var(--text-primary); }

.detail-locked {
  text-align: center;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.locked-badge-lg {
  display: inline-block;
  background: rgba(243,156,18,0.15);
  border: 1px solid rgba(243,156,18,0.4);
  color: #f39c12;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.detail-locked p {
  font-size: 14px;
  color: var(--text-muted);
}

.detail-locked a {
  color: var(--accent);
  text-decoration: underline;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--text-dim);
}

.footer-note {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-note a {
  color: var(--accent);
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .hero-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-meta { padding: 10px 12px 12px; }
  .card-player { font-size: 13px; }
  .price-badge { font-size: 15px; padding: 2px 8px; }

  .detail-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-image-col { position: static; }
  .detail-player { font-size: 32px; }
  .detail-price { font-size: 40px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .filters-form { gap: 10px; }
}

@media (max-width: 400px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}
