/* ═══════════════════════════════════════════════════════════════
   MAHESA STORE — GAMING / ESPORTS DESIGN SYSTEM
   Version: 1.0  |  Prompt 1 of 3 (Foundation)

   ⚠  LOADED OPT-IN PER PAGE.
      DO NOT @import inside style.php.
      Add <link> tag on each page that adopts the new theme.
   ═══════════════════════════════════════════════════════════════ */


/* ── 1. Override :root tokens that conflict with style.php ── */
/* (only takes effect on pages that load this file)            */
:root {
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.5);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 400ms ease-in-out;
}


/* ── 2. Base Typography (scoped — only applies on pages with class="gaming-page" on <body>) ── */
.gaming-page {
  font-family: var(--font-body);
  background:  var(--color-bg-primary);
  color:       var(--color-text-primary);
  line-height: 1.6;
}

.gaming-page h1,
.gaming-page h2,
.gaming-page h3,
.gaming-page h4,
.gaming-page h5,
.gaming-page h6 {
  font-family:    var(--font-headline);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight:    700;
  line-height:    1.2;
}


/* ── 3. Text Utilities ── */

.text-gold-gradient {
  background:               var(--gradient-text-gold);
  -webkit-background-clip:  text;
  background-clip:          text;
  -webkit-text-fill-color:  transparent;
  filter: drop-shadow(0 2px 4px rgba(251,191,36,.3));
}

.text-electric-gradient {
  background:               var(--gradient-electric);
  -webkit-background-clip:  text;
  background-clip:          text;
  -webkit-text-fill-color:  transparent;
}


/* ── 4. Buttons ── */

.btn-primary-gold {
  display:         inline-block;
  background:      var(--gradient-gold);
  color:           var(--color-text-dark);
  font-family:     var(--font-body);
  font-weight:     700;
  font-size:       var(--text-sm);
  padding:         12px 28px;
  border-radius:   var(--radius-md);
  border:          none;
  cursor:          pointer;
  text-transform:  uppercase;
  letter-spacing:  0.05em;
  transition:      transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow:      var(--shadow-md);
  text-decoration: none;
  line-height:     1;
}
.btn-primary-gold:hover,
.btn-primary-gold:focus {
  transform:       translateY(-2px);
  box-shadow:      var(--shadow-lg), var(--glow-gold);
  color:           var(--color-text-dark);
  text-decoration: none;
  outline:         none;
}

.btn-secondary-electric {
  display:         inline-block;
  background:      transparent;
  color:           var(--color-electric-light);
  border:          2px solid var(--color-electric);
  font-family:     var(--font-body);
  font-weight:     600;
  font-size:       var(--text-sm);
  padding:         10px 26px;
  border-radius:   var(--radius-md);
  cursor:          pointer;
  text-transform:  uppercase;
  letter-spacing:  0.05em;
  transition:      background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
  line-height:     1;
}
.btn-secondary-electric:hover,
.btn-secondary-electric:focus {
  background:      var(--color-electric);
  color:           var(--color-text-primary);
  box-shadow:      var(--glow-electric);
  text-decoration: none;
  outline:         none;
}


/* ── 5. Cards ── */

.card-premium {
  background:    var(--color-bg-card);
  border:        1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding:       20px;
  transition:    background var(--transition-base),
                 border-color var(--transition-base),
                 box-shadow var(--transition-base),
                 transform var(--transition-base);
}
.card-premium:hover {
  background:    var(--color-bg-card-hover);
  border-color:  var(--color-electric);
  box-shadow:    var(--shadow-lg), var(--glow-electric);
  transform:     translateY(-4px);
}


/* ── 6. Badges ── */

.badge-gold {
  display:         inline-block;
  background:      var(--gradient-gold);
  color:           var(--color-text-dark);
  padding:         4px 12px;
  border-radius:   var(--radius-pill);
  font-size:       var(--text-xs);
  font-family:     var(--font-body);
  font-weight:     700;
  text-transform:  uppercase;
  letter-spacing:  0.05em;
  white-space:     nowrap;
}

.badge-electric {
  display:      inline-block;
  background:   var(--color-electric);
  color:        var(--color-text-primary);
  padding:      4px 12px;
  border-radius:var(--radius-pill);
  font-size:    var(--text-xs);
  font-family:  var(--font-body);
  font-weight:  600;
  white-space:  nowrap;
}

.badge-stock {
  display:      inline-flex;
  align-items:  center;
  gap:          6px;
  background:   rgba(16,185,129,0.15);
  color:        var(--color-success);
  padding:      4px 12px;
  border-radius:var(--radius-pill);
  font-size:    var(--text-xs);
  font-family:  var(--font-body);
  font-weight:  600;
  border:       1px solid rgba(16,185,129,0.3);
  white-space:  nowrap;
}
