/* =====================================================
   BEYOND TRADING CARDS — MAIN CSS
   Global styles, variables, layout, components
   ===================================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Palette */
  --orange:       #FF6B00;
  --orange-light: #FF8C38;
  --orange-dark:  #CC5500;
  --black:        #0A0A0A;
  --black-2:      #111111;
  --black-3:      #1A1A1A;
  --black-4:      #222222;
  --white:        #FFFFFF;
  --white-2:      #F5F5F5;
  --grey:         #888888;
  --grey-light:   #CCCCCC;
  --grey-dark:    #444444;

  /* London Lions Palette */
  --lions-red:    #C8102E;
  --lions-red-dark: #9E0D24;
  --lions-black:  #0A0A0A;
  --lions-white:  #FFFFFF;
  --lions-gold:   #C9A84C;

  /* Typography */
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body:      'Barlow', sans-serif;

  /* Spacing */
  --section-gap: 100px;
  --container:   1280px;

  /* Transitions */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.35s;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

ul {
  list-style: none;
}

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- SECTION SPACING ---------- */
.section {
  padding: var(--section-gap) 0;
}

.section-label {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-condensed);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 17px;
  color: var(--grey);
  max-width: 540px;
  margin-bottom: 60px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 12px 28px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 107, 0, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

.btn-lg {
  font-size: 18px;
  padding: 16px 40px;
}

.btn-full {
  width: 100%;
}

/* ---------- SITE HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(255, 107, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}
.logo-img {
  height: 104px;
  width: auto;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease, filter 0.3s ease;
  opacity: 0.95;
}
.logo:hover .logo-img {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255,107,0,0.35));
}
/* Footer logo — slightly smaller */
.site-footer .logo-img {
  height: 88px;
}

/* MAIN NAV */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav > ul > li {
  position: relative;
}
.main-nav > ul > li > a {
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-light);
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.25s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

/* DROPDOWN */
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--black-3);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 8px;
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s var(--ease);
}
.dropdown li a {
  display: block;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 4px;
  color: var(--grey-light);
  transition: all 0.2s;
}
.dropdown li a:hover {
  background: rgba(255, 107, 0, 0.1);
  color: var(--orange);
}

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  position: relative;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: var(--white);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
}
.cart-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
}
.cart-btn svg {
  width: 20px;
  height: 20px;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease);
}
.cart-count.bump {
  transform: scale(1.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- CART DRAWER ---------- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 400px;
  max-width: 95vw;
  background: var(--black-2);
  border-left: 1px solid rgba(255, 107, 0, 0.2);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cart-drawer-header h2 {
  font-family: var(--font-condensed);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cart-close {
  background: none;
  border: none;
  color: var(--grey);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.cart-close:hover { color: var(--white); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-empty {
  color: var(--grey);
  text-align: center;
  margin-top: 60px;
  font-size: 15px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--black-3);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}
.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cart-item-price {
  font-size: 14px;
  color: var(--orange);
  font-weight: 600;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.cart-item-qty button {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cart-item-qty button:hover {
  background: rgba(255,107,0,0.3);
}
.cart-item-qty span {
  font-weight: 700;
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--grey);
  cursor: pointer;
  font-size: 16px;
  transition: color 0.2s;
  align-self: flex-start;
}
.cart-item-remove:hover { color: #ff4444; }

.cart-footer {
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
#cart-total-amount { color: var(--orange); }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  backdrop-filter: blur(4px);
}
.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--black-2);
  border-top: 1px solid rgba(255, 107, 0, 0.15);
  padding: 80px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand {
  max-width: 320px;
}
.footer-brand p {
  color: var(--grey);
  font-size: 14px;
  margin-top: 16px;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  gap: 60px;
}
.footer-col h4 {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col li a {
  font-size: 14px;
  color: var(--grey);
  transition: color 0.2s;
}
.footer-col li a:hover { color: var(--white); }

.footer-bottom {
  padding: 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom p {
  font-size: 13px;
  color: var(--grey-dark);
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 600px) {
  :root { --section-gap: 64px; }
  .section-title { font-size: 36px; }
}

/* ---------- MYSTERY / CLASSIFIED STYLES ---------- */
.mystery-card-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.mystery-card-wrap img {
  filter: blur(12px) grayscale(80%) brightness(0.6);
  transition: filter 0.3s ease;
  user-select: none;
  pointer-events: none;
}
.mystery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.mystery-overlay::before {
  content: '🔒';
  font-size: 36px;
}
.mystery-overlay::after {
  content: 'UNANNOUNCED';
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.6);
}

/* Redacted text style */
.redacted {
  background: rgba(255,255,255,0.15);
  color: transparent !important;
  border-radius: 3px;
  user-select: none;
  letter-spacing: 0.1em;
}

/* Mystery SLB card */
.slb-mystery {
  filter: grayscale(100%) brightness(0.7);
  opacity: 0.6 !important;
}
.slb-mystery h3 {
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4) !important;
}

/* Mystery blur section */
.mystery-blur-section {
  position: relative;
}
.mystery-blur-section .rarities-grid {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  opacity: 0.4;
}
.mystery-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}
.mystery-lock-overlay span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(10,10,10,0.8);
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,107,0,0.3);
}
