/* ============================================================
   THE GUN SHOW SHOW — Design System
   Brand: Red / White / Black — Bold, personality-forward
   Pixel @ BK Promotions — 2026-02-26
   ============================================================ */

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --red:        #c0392b;
  --red-bright: #e74c3c;
  --red-dark:   #96281b;
  --black:      #0d0d0d;
  --black-2:    #1a1a1a;
  --black-3:    #222222;
  --black-4:    #2e2e2e;
  --white:      #ffffff;
  --off-white:  #f5f0eb;
  --gray:       #888888;
  --gray-light: #aaaaaa;
  --font-ui:    system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius:     4px;
  --radius-lg:  8px;
  --shadow:     0 2px 12px rgba(0,0,0,0.5);
  --shadow-lg:  0 4px 24px rgba(0,0,0,0.7);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-ui); background: var(--black); color: var(--white); margin: 0; padding: 0; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-bright); text-decoration: none; }
a:hover { color: var(--white); }

h1, h2, h3, h4 { font-weight: 900; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.1; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red-bright); margin-bottom: 0.4rem; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.75rem; font-size: 0.95rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; border: none; border-radius: var(--radius); cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s; min-height: 44px; white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-bright); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(192,57,43,0.5); }
.btn-secondary { background: var(--black-4); color: var(--white); border: 1px solid var(--black-4); }
.btn-secondary:hover { background: var(--black-3); color: var(--white); border-color: var(--gray); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-primary:disabled { background: var(--gray); cursor: not-allowed; transform: none; }

/* ─── Nav ─────────────────────────────────────────────────── */
.site-nav { position: sticky; top: 0; z-index: 100; background: var(--black); border-bottom: 2px solid var(--red); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0.75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo img { height: 52px; width: auto; }
.nav-logo:hover { opacity: 0.85; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--white); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.5rem 0; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--red-bright); border-bottom-color: var(--red-bright); }
.nav-cart { display: flex; align-items: center; gap: 0.4rem; color: var(--white); font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.5rem 1rem; border: 1px solid var(--black-4); border-radius: var(--radius); transition: border-color 0.15s, color 0.15s; min-height: 44px; }
.nav-cart:hover { border-color: var(--red-bright); color: var(--red-bright); }
.nav-cart-count { background: var(--red); color: var(--white); font-size: 0.7rem; padding: 1px 6px; border-radius: 999px; min-width: 20px; text-align: center; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; padding: 0.5rem; min-height: 44px; min-width: 44px; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--black); flex-direction: column; padding: 1rem 1.5rem; gap: 0; border-bottom: 2px solid var(--red); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--black-4); font-size: 1rem; }
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--black-2); border-top: 2px solid var(--red); padding: 3rem 1.5rem 2rem; margin-top: 5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.footer-logo { margin-bottom: 1rem; }
.footer-logo img { height: 48px; }
.footer-tagline { color: var(--gray-light); font-size: 0.9rem; margin: 0; }
.footer-social { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.social-link { display: flex; align-items: center; gap: 0.4rem; color: var(--gray-light); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.5rem 0.75rem; border: 1px solid var(--black-4); border-radius: var(--radius); transition: color 0.15s, border-color 0.15s; min-height: 44px; }
.social-link:hover { color: var(--white); border-color: var(--red); }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid var(--black-4); padding-top: 1.5rem; color: var(--gray); font-size: 0.8rem; text-align: center; }

@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }

/* ─── Layout ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--black-2); }
.section-title-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.section-title-bar::before { content: ''; display: block; width: 4px; height: 2.5rem; background: var(--red); border-radius: 2px; flex-shrink: 0; }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero { background: var(--black-2); border-bottom: 3px solid var(--red); overflow: hidden; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red-bright); margin-bottom: 0.75rem; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; text-transform: uppercase; line-height: 1.0; margin-bottom: 1rem; }
.hero-title span { color: var(--red-bright); }
.hero-tagline { font-size: 1.1rem; color: var(--gray-light); margin-bottom: 2rem; max-width: 480px; line-height: 1.5; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image { display: flex; justify-content: center; align-items: center; }
.hero-image img { max-height: 420px; width: auto; filter: drop-shadow(0 8px 32px rgba(192,57,43,0.3)); }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 2.5rem 1.5rem; }
  .hero-image { order: -1; }
  .hero-image img { max-height: 200px; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
}

/* ─── Video Grid ─────────────────────────────────────────── */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.video-card { background: var(--black-3); border: 1px solid var(--black-4); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.video-card:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: var(--shadow-lg); }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--black-4); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-play-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.35); opacity: 0; transition: opacity 0.15s; font-size: 3rem; }
.video-card:hover .video-play-icon { opacity: 1; }
.video-info { padding: 0.875rem 1rem; }
.video-title { font-size: 0.9rem; font-weight: 700; color: var(--white); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.4rem; }
.video-meta { font-size: 0.75rem; color: var(--gray); }
.videos-cta { text-align: center; margin-top: 2rem; }

/* ─── Patreon Tiers ─────────────────────────────────────── */
.patreon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tier-card { background: var(--black-3); border: 1px solid var(--black-4); border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; position: relative; }
.tier-card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(192,57,43,0.2); }
.tier-card.featured { border-color: var(--red); background: var(--black-2); }
.tier-card.featured::before { content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--red); color: var(--white); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.1em; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.tier-emoji { font-size: 2.5rem; line-height: 1; }
.tier-price { font-size: 2.2rem; font-weight: 900; color: var(--white); }
.tier-price span { font-size: 1rem; color: var(--gray-light); font-weight: 400; }
.tier-name { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); }
.tier-desc { font-size: 0.85rem; color: var(--gray-light); line-height: 1.5; }

@media (max-width: 768px) { .patreon-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }

/* ─── Newsletter ─────────────────────────────────────────── */
.newsletter-block { background: var(--red-dark); border-radius: var(--radius-lg); padding: 3rem 2rem; text-align: center; max-width: 600px; margin: 0 auto; }
.newsletter-block h2 { color: var(--white); margin-bottom: 0.5rem; }
.newsletter-block p { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; font-size: 0.95rem; }
.newsletter-form { display: flex; gap: 0.75rem; max-width: 440px; margin: 0 auto; }
.newsletter-form input[type="email"] { flex: 1; padding: 0.75rem 1rem; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius); color: var(--white); font-size: 0.95rem; min-height: 44px; outline: none; }
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input[type="email"]:focus { border-color: var(--white); }
.newsletter-msg { margin-top: 0.75rem; font-size: 0.875rem; min-height: 1.2em; color: rgba(255,255,255,0.85); }

@media (max-width: 480px) { .newsletter-form { flex-direction: column; } }

/* ─── Shop ────────────────────────────────────────────────── */
.shop-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.product-card { background: var(--black-3); border: 1px solid var(--black-4); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: var(--shadow-lg); }
.product-image { aspect-ratio: 1; background: var(--black-4); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 4rem; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.product-name { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--white); }
.product-desc { font-size: 0.82rem; color: var(--gray-light); line-height: 1.45; flex: 1; }
.product-price { font-size: 1.3rem; font-weight: 900; color: var(--red-bright); }
.product-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.product-controls input[type="number"] { width: 60px; padding: 0.5rem; background: var(--black-4); border: 1px solid var(--black-4); border-radius: var(--radius); color: var(--white); font-size: 0.9rem; text-align: center; min-height: 44px; }
.product-controls .btn-primary { flex: 1; }

/* ─── Cart ────────────────────────────────────────────────── */
.cart-page { max-width: 680px; margin: 0 auto; }
.cart-item { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--black-4); }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
.cart-item-price { color: var(--gray-light); font-size: 0.9rem; }
.qty-btn { background: var(--black-4); border: none; color: var(--white); width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.qty-btn:hover { background: var(--red); }
.cart-item-subtotal { font-weight: 700; color: var(--white); min-width: 80px; text-align: right; }
.cart-total { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; font-size: 1.1rem; font-weight: 700; border-top: 2px solid var(--red); }
.cart-actions { display: flex; gap: 1rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.5rem; }
.cart-empty { text-align: center; padding: 4rem 1rem; color: var(--gray-light); }

/* ─── Checkout ─────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; max-width: 900px; margin: 0 auto; }
.order-summary { background: var(--black-3); border: 1px solid var(--black-4); border-radius: var(--radius-lg); padding: 1.75rem; height: fit-content; }
.summary-item { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.9rem; border-bottom: 1px solid var(--black-4); color: var(--gray-light); }
.summary-total { display: flex; justify-content: space-between; padding-top: 1rem; margin-top: 0.5rem; border-top: 2px solid var(--red); font-size: 1.1rem; font-weight: 700; }
.payment-form { background: var(--black-3); border: 1px solid var(--black-4); border-radius: var(--radius-lg); padding: 1.75rem; }
#payment-element { margin-bottom: 1rem; }
#payment-message { display: none; background: rgba(192,57,43,0.15); border: 1px solid var(--red); color: var(--red-bright); padding: 0.75rem 1rem; border-radius: var(--radius); margin-top: 1rem; font-size: 0.9rem; }

@media (max-width: 768px) { .checkout-layout { grid-template-columns: 1fr; } }

/* ─── Success Page ─────────────────────────────────────────── */
.success-page { max-width: 560px; margin: 4rem auto; text-align: center; padding: 0 1.5rem; }
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.success-page p { color: var(--gray-light); font-size: 1rem; line-height: 1.6; margin-bottom: 0.5rem; }
.order-number { display: inline-block; background: var(--black-3); border: 1px solid var(--black-4); padding: 0.4rem 1.2rem; border-radius: 999px; font-family: monospace; font-size: 0.9rem; color: var(--red-bright); margin: 0.5rem 0 1.5rem; }
.success-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Order Status ─────────────────────────────────────────── */
.order-page { max-width: 680px; margin: 0 auto; padding: 0 1.5rem; }
.order-status-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.9rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.status-pending    { background: rgba(180,130,0,0.2); color: #f0b429; border: 1px solid #f0b429; }
.status-processing { background: rgba(63,131,248,0.2); color: #6eb4ff; border: 1px solid #6eb4ff; }
.status-shipped    { background: rgba(34,197,94,0.2); color: #4ade80; border: 1px solid #4ade80; }
.status-delivered  { background: rgba(34,197,94,0.3); color: #22c55e; border: 1px solid #22c55e; }
.status-cancelled  { background: rgba(192,57,43,0.2); color: var(--red-bright); border: 1px solid var(--red-bright); }
.order-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
.order-meta-item { background: var(--black-3); border: 1px solid var(--black-4); border-radius: var(--radius); padding: 1rem; }
.order-meta-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); margin-bottom: 0.25rem; }
.order-meta-value { font-size: 0.95rem; font-weight: 600; color: var(--white); overflow-wrap: break-word; word-break: break-all; }
.tracking-block { background: var(--black-3); border: 1px solid var(--red); border-radius: var(--radius-lg); padding: 1.25rem; margin-top: 1.5rem; }
.tracking-block .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red-bright); margin-bottom: 0.4rem; }
.tracking-number { font-family: monospace; font-size: 1.1rem; color: var(--white); }

/* ─── Patreon Page ─────────────────────────────────────────── */
.patreon-hero { text-align: center; padding: 3rem 0 2rem; }
.patreon-hero p { font-size: 1.1rem; color: var(--gray-light); max-width: 560px; margin: 0.75rem auto 2rem; line-height: 1.6; }
.patreon-cta-section { text-align: center; margin-top: 3rem; padding: 2rem; }
.patreon-cta-section p { color: var(--gray-light); font-size: 0.95rem; margin-bottom: 1rem; }

/* ─── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.hidden { display: none !important; }

@media (max-width: 480px) {
  .section { padding: 2.5rem 0; }
  .container { padding: 0 1rem; }
  .order-meta-grid { grid-template-columns: 1fr; }
}

/* ─── Mobile-specific fixes (375–480px) ─────────────────── */
@media (max-width: 480px) {
  /* Cart actions: stack full-width buttons, centered */
  .cart-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cart-actions .btn-primary,
  .cart-actions .btn-secondary {
    text-align: center;
    justify-content: center;
  }

  /* Cart item: allow wrapping on very narrow screens */
  .cart-item {
    flex-wrap: wrap;
  }
  .cart-item-info {
    flex-basis: 100%;
  }
  .cart-item-subtotal {
    margin-left: auto;
  }
}
