/*
Theme Name: Sports Card Warriors
Theme URI: https://sportscardwarriors.com.au/
Author: Sports Card Warriors
Description: A purpose-built Stash or Pass community voting theme for basketball card collectors.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: sports-card-warriors
*/

:root {
  --scw-bg: #0a0a0a;
  --scw-panel: #151515;
  --scw-panel-2: #1d1d1d;
  --scw-cream: #f3e9d5;
  --scw-muted: #aaa59b;
  --scw-orange: #ff6a00;
  --scw-orange-2: #ff8a2a;
  --scw-line: #33302b;
  --scw-green: #54d68b;
  --scw-max: 1180px;
  --scw-radius: 22px;
  --scw-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--scw-bg);
  color: var(--scw-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 5%, rgba(255, 106, 0, .14), transparent 28%),
    radial-gradient(circle at 86% 40%, rgba(255, 106, 0, .07), transparent 25%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 1px, transparent 1px 12px);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button { cursor: pointer; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scw-wrap { width: min(calc(100% - 36px), var(--scw-max)); margin-inline: auto; }
.scw-narrow { width: min(calc(100% - 36px), 780px); margin-inline: auto; }
.scw-section { padding: 76px 0; }
.scw-section--tight { padding: 42px 0; }
.scw-muted { color: var(--scw-muted); }
.scw-orange { color: var(--scw-orange); }

.scw-kicker {
  margin: 0 0 10px;
  color: var(--scw-orange);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.scw-title,
.scw-display {
  margin: 0;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .98;
}

.scw-display { font-size: clamp(48px, 8vw, 96px); }
.scw-title { font-size: clamp(34px, 5vw, 58px); }

.scw-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(10,10,10,.86);
  backdrop-filter: blur(16px);
}

.scw-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.scw-brand { display: flex; align-items: center; gap: 11px; }
.scw-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--scw-orange);
  color: #0a0a0a;
  font-weight: 950;
  transform: rotate(-3deg);
}
.scw-brand__text { font-size: 13px; font-weight: 900; letter-spacing: .075em; line-height: 1.05; }
.scw-brand__text span { display: block; color: var(--scw-orange); }

.scw-menu { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.scw-menu a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--scw-muted); font-size: 14px; font-weight: 700; }
.scw-menu a:hover, .scw-menu .current-menu-item > a { color: var(--scw-cream); background: var(--scw-panel); }
.scw-menu .scw-nav-cta > a { background: var(--scw-orange); color: #0a0a0a; }

.scw-hero { padding: 86px 0 44px; text-align: center; }
.scw-hero__copy { max-width: 860px; margin: 22px auto 0; color: var(--scw-muted); font-size: clamp(17px, 2vw, 21px); }
.scw-hero__chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 28px 0 0; }
.scw-chip { padding: 7px 11px; border: 1px solid var(--scw-line); border-radius: 999px; background: rgba(255,255,255,.025); color: var(--scw-muted); font-size: 12px; font-weight: 750; }

.scw-grid { display: grid; gap: 24px; }
.scw-grid--2 { grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr); align-items: start; }
.scw-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

.scw-card { border: 1px solid var(--scw-line); border-radius: var(--scw-radius); background: var(--scw-panel); box-shadow: var(--scw-shadow); }

.scw-poll { overflow: hidden; }
.scw-poll__visual {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 34px;
  background:
    radial-gradient(circle at 76% 22%, rgba(255,106,0,.94) 0 10%, transparent 10.4%),
    linear-gradient(145deg, rgba(255,106,0,.24), transparent 55%),
    repeating-linear-gradient(135deg, rgba(243,233,213,.04) 0 2px, transparent 2px 13px),
    #171717;
}
.scw-poll__visual::after {
  content: attr(data-initials);
  position: absolute;
  right: 10px;
  bottom: -42px;
  color: rgba(243,233,213,.075);
  font-size: clamp(130px, 23vw, 240px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.1em;
}
.scw-poll__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.scw-poll__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,10,10,.92) 100%); }
.scw-poll__identity { position: relative; z-index: 2; }
.scw-poll__identity h2 { max-width: 700px; margin: 4px 0 0; font-size: clamp(42px, 7vw, 78px); line-height: .92; letter-spacing: -.06em; font-weight: 950; text-transform: uppercase; }
.scw-poll__team { color: var(--scw-muted); font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.scw-poll__body { padding: 26px 28px 28px; }
.scw-poll__question { margin: 0 0 20px; font-size: clamp(18px, 2.3vw, 24px); line-height: 1.3; font-weight: 800; text-align: center; }
.scw-vote-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scw-btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border: 1px solid var(--scw-line);
  border-radius: 14px;
  background: var(--scw-panel-2);
  color: var(--scw-cream);
  font-weight: 900;
  letter-spacing: .025em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.scw-btn:hover { transform: translateY(-2px); border-color: #58534b; }
.scw-btn--primary { border-color: var(--scw-orange); background: var(--scw-orange); color: #090909; }
.scw-btn--block { width: 100%; }
.scw-btn[disabled] { opacity: .55; cursor: wait; transform: none; }

.scw-poll__fineprint { margin: 14px 0 0; color: var(--scw-muted); font-size: 12px; text-align: center; }

.scw-result { text-align: center; }
.scw-result[hidden], .scw-after-vote[hidden], .scw-signup-result[hidden] { display: none !important; }
.scw-result__score { margin: 4px 0 0; color: var(--scw-orange); font-size: clamp(58px, 10vw, 92px); font-weight: 950; letter-spacing: -.07em; line-height: 1; }
.scw-result__label { font-size: 20px; font-weight: 900; }
.scw-meter { display: flex; height: 13px; overflow: hidden; margin: 23px 0 9px; border-radius: 999px; background: #2b2926; }
.scw-meter__stash { background: var(--scw-orange); transition: width .45s ease; }
.scw-meter__pass { background: #716d65; transition: width .45s ease; }
.scw-result__split { display: flex; justify-content: space-between; color: var(--scw-muted); font-size: 12px; }
.scw-result__votes { margin: 16px 0 0; font-size: 13px; }

.scw-after-vote { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--scw-line); }
.scw-market-pulse { text-align: left; }
.scw-market-pulse__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.scw-market-pulse__head h3 { margin: 3px 0 0; font-size: clamp(24px, 4vw, 36px); line-height: 1; letter-spacing: -.04em; }
.scw-text-link { color: var(--scw-orange); font-size: 13px; font-weight: 850; white-space: nowrap; }
.scw-sales-chart { position: relative; height: 220px; margin: 16px 0 20px; padding: 10px 0 24px 68px; border: 1px solid var(--scw-line); border-radius: 16px; background: #0c0c0c; }
.scw-sales-chart svg { width: 100%; height: 100%; overflow: visible; }
.scw-sales-chart line { stroke: #2e2b27; stroke-width: 1; vector-effect: non-scaling-stroke; }
.scw-sales-chart polyline { fill: none; stroke: var(--scw-orange); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 4px 10px rgba(255,106,0,.22)); }
.scw-sales-chart__labels { position: absolute; left: 12px; top: 25px; bottom: 30px; display: flex; flex-direction: column; justify-content: space-between; color: var(--scw-muted); font-size: 10px; font-weight: 750; }
.scw-sales-list { display: grid; gap: 8px; }
.scw-sale-card { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--scw-line); border-radius: 13px; background: #111; }
.scw-sale-card img, .scw-sale-card__placeholder { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 9px; object-fit: cover; background: linear-gradient(145deg, var(--scw-orange), #642800); color: #090909; font-size: 11px; font-weight: 950; }
.scw-sale-card strong { display: block; font-size: 13px; line-height: 1.25; }
.scw-sale-card span { display: block; margin-top: 3px; color: var(--scw-muted); font-size: 11px; }
.scw-sale-card > b, .scw-sale-card > a { color: var(--scw-cream); font-size: 13px; font-weight: 900; }
.scw-sale-card > a { color: var(--scw-orange); }
.scw-data-note { margin: 12px 0 0; color: var(--scw-muted); font-size: 11px; }
.scw-sales-empty { padding: 20px; border: 1px dashed #4a453e; border-radius: 15px; background: rgba(255,255,255,.02); }
.scw-sales-empty p { margin: 5px 0 0; color: var(--scw-muted); font-size: 13px; }
.scw-whatnot-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 20px 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: linear-gradient(120deg, #5e2bff, #a54cff 58%, #ff6a00); color: #fff; box-shadow: 0 12px 28px rgba(63,23,173,.25); }
.scw-whatnot-banner small, .scw-whatnot-banner span { display: block; }
.scw-whatnot-banner small { margin-bottom: 3px; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.scw-whatnot-banner span { font-size: 19px; font-weight: 950; }
.scw-whatnot-banner b { font-size: 12px; white-space: nowrap; }
.scw-next-player { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 20px 0 0; border-top: 1px solid var(--scw-line); }
.scw-next-player small, .scw-next-player strong, .scw-next-player span { display: block; }
.scw-next-player small { color: var(--scw-orange); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.scw-next-player strong { margin-top: 3px; font-size: 18px; }
.scw-next-player span { margin-top: 3px; color: var(--scw-muted); font-size: 11px; }

.scw-side { display: grid; gap: 18px; }
.scw-info-card { padding: 26px; }
.scw-info-card h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.15; }
.scw-info-card p { margin: 0; color: var(--scw-muted); }
.scw-number { color: var(--scw-orange); font-size: 13px; font-weight: 900; letter-spacing: .1em; }

.scw-signup { padding: 28px; }
.scw-signup h3 { margin: 4px 0 10px; font-size: 30px; line-height: 1.06; letter-spacing: -.035em; }
.scw-signup p { margin: 0 0 18px; color: var(--scw-muted); }
.scw-field { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid var(--scw-line); border-radius: 12px; outline: none; background: #0c0c0c; color: var(--scw-cream); font-size: 16px; }
.scw-field:focus { border-color: var(--scw-orange); box-shadow: 0 0 0 3px rgba(255,106,0,.16); }
.scw-consent { display: flex; gap: 9px; align-items: flex-start; margin: 12px 0; color: var(--scw-muted); font-size: 12px; }
.scw-consent input { margin-top: 4px; accent-color: var(--scw-orange); }
.scw-form-message { margin: 12px 0 0; color: var(--scw-green); font-size: 13px; font-weight: 700; }
.scw-form-message.is-error { color: #ff8f7f; }

.scw-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.scw-section-head p { max-width: 560px; margin: 0; color: var(--scw-muted); }

.scw-leaderboard { overflow: hidden; border: 1px solid var(--scw-line); border-radius: var(--scw-radius); background: var(--scw-panel); }
.scw-rank-row { display: grid; grid-template-columns: 54px minmax(0,1fr) 118px 100px; align-items: center; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--scw-line); }
.scw-rank-row:last-child { border-bottom: 0; }
.scw-rank-row--head { color: var(--scw-muted); font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.scw-rank { color: var(--scw-orange); font-size: 20px; font-weight: 950; }
.scw-player-mini { display: flex; align-items: center; gap: 12px; min-width: 0; }
.scw-player-mini__mark { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, var(--scw-orange), #7d3100); color: #090909; font-size: 13px; font-weight: 950; }
.scw-player-mini strong { display: block; line-height: 1.2; }
.scw-player-mini span { color: var(--scw-muted); font-size: 12px; }
.scw-heat { font-size: 20px; font-weight: 950; }
.scw-total { color: var(--scw-muted); font-size: 13px; }
.scw-empty { padding: 32px; color: var(--scw-muted); text-align: center; }

/* WooCommerce keeps product, stock, order and checkout data native while matching the SCW brand. */
.woocommerce .woocommerce-breadcrumb, .woocommerce .woocommerce-result-count { color: var(--scw-muted); }
.woocommerce ul.products li.product { overflow: hidden; padding: 14px; border: 1px solid var(--scw-line); border-radius: 18px; background: var(--scw-panel); }
.woocommerce ul.products li.product a img { border-radius: 12px; background: #111; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--scw-cream); font-size: 18px; font-weight: 850; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--scw-orange); font-weight: 900; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { border-radius: 12px; background: var(--scw-orange); color: #090909; font-weight: 900; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover { background: #ff8430; color: #090909; }
.woocommerce div.product .product_title, .woocommerce .woocommerce-products-header__title { color: var(--scw-cream); font-weight: 950; letter-spacing: -.04em; text-transform: uppercase; }
.woocommerce div.product div.images img { border-radius: 18px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce select { border: 1px solid var(--scw-line); border-radius: 10px; background: #111; color: var(--scw-cream); }
.woocommerce table.shop_table { border-color: var(--scw-line); border-radius: 14px; }

.scw-poll-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.scw-poll-tile { overflow: hidden; border: 1px solid var(--scw-line); border-radius: 18px; background: var(--scw-panel); }
.scw-poll-tile__visual { min-height: 180px; display: flex; align-items: end; padding: 20px; background: linear-gradient(145deg, rgba(255,106,0,.22), transparent 60%), #181818; }
.scw-poll-tile__visual h3 { margin: 0; font-size: 28px; line-height: .95; letter-spacing: -.04em; text-transform: uppercase; }
.scw-poll-tile__body { padding: 17px 20px; }
.scw-poll-tile__body p { margin: 0; color: var(--scw-muted); font-size: 13px; }

.scw-page-head { padding: 76px 0 30px; text-align: center; }
.scw-content { padding: 20px 0 76px; }
.scw-content h2, .scw-content h3 { line-height: 1.15; }
.scw-content p, .scw-content li { color: #d2ccbf; }

.scw-site-footer { padding: 42px 0; border-top: 1px solid var(--scw-line); }
.scw-footer { display: flex; justify-content: space-between; align-items: center; gap: 22px; color: var(--scw-muted); font-size: 12px; }
.scw-footer__links { display: flex; gap: 16px; }

@media (max-width: 820px) {
  .scw-grid--2, .scw-grid--3, .scw-poll-list { grid-template-columns: 1fr; }
  .scw-side { grid-template-columns: 1fr 1fr; }
  .scw-menu li:not(.scw-nav-cta) { display: none; }
  .scw-rank-row { grid-template-columns: 42px minmax(0,1fr) 84px; }
  .scw-rank-row > :last-child { display: none; }
}

@media (max-width: 560px) {
  .scw-wrap, .scw-narrow { width: min(calc(100% - 24px), var(--scw-max)); }
  .scw-brand__text { font-size: 11px; }
  .scw-hero { padding-top: 56px; }
  .scw-section { padding: 54px 0; }
  .scw-poll__visual { min-height: 340px; padding: 24px; }
  .scw-poll__body { padding: 21px 18px 22px; }
  .scw-vote-actions { grid-template-columns: 1fr; }
  .scw-market-pulse__head, .scw-next-player { display: block; }
  .scw-market-pulse__head .scw-text-link { display: inline-block; margin-top: 10px; }
  .scw-sales-chart { height: 185px; padding-left: 56px; }
  .scw-sale-card { grid-template-columns: 44px minmax(0,1fr) auto; }
  .scw-sale-card img, .scw-sale-card__placeholder { width: 44px; height: 44px; }
  .scw-whatnot-banner { padding: 17px; }
  .scw-whatnot-banner span { font-size: 16px; }
  .scw-whatnot-banner b { display: none; }
  .scw-next-player .scw-btn { width: 100%; margin-top: 14px; }
  .scw-side { grid-template-columns: 1fr; }
  .scw-section-head { display: block; }
  .scw-section-head p { margin-top: 12px; }
  .scw-rank-row { gap: 10px; padding: 14px 12px; }
  .scw-footer { display: block; text-align: center; }
  .scw-footer__links { justify-content: center; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
