/*
Theme Name:  BronzePadel
Theme URI:   https://bronzepadel.com
Description: Custom theme for BronzePadel — the padel media & directory site.
Version:     1.0.0
Author:      BronzePadel / UAE AMC FZCO
Author URI:  https://bronzepadel.com
Text Domain: bronzepadel
*/


/* ============================================================
   DESIGN TOKENS — CSS Custom Properties
   These match the brief exactly. Reference with var(--gold) etc.
   ============================================================ */

:root {
  /* Core palette */
  --black:    #080808;
  --b2:       #111111;
  --b3:       #1a1a1a;
  --gold:     #E8B84B;
  --gbright:  #F5D080;
  --gdim:     rgba(232, 184, 75, 0.1);
  --white:    #F0EDE8;
  --w70:      rgba(240, 237, 232, 0.7);
  --w50:      rgba(240, 237, 232, 0.5);
  --w30:      rgba(240, 237, 232, 0.3);
  --w15:      rgba(240, 237, 232, 0.15);
  --w08:      rgba(240, 237, 232, 0.08);
  --red:      #E84B4B;
  --blue:     #6eb4f0;
  --green:    #4BE884;

  /* Typography */
  --font-display:    'Bebas Neue', sans-serif;
  --font-ui:         'Barlow Condensed', sans-serif;
  --font-editorial:  'DM Serif Display', serif;
  --font-body:       'Barlow', sans-serif;

  /* Layout */
  --nav-height:      56px;
  --max-width:       1280px;
  --gutter:          24px;
  --gutter-sm:       16px;

  /* Spacing scale */
  --s1:   4px;
  --s2:   8px;
  --s3:   12px;
  --s4:   16px;
  --s5:   24px;
  --s6:   32px;
  --s7:   48px;
  --s8:   64px;
  --s9:   96px;
  --s10:  128px;

  /* Border radius */
  --r-sm:  4px;
  --r:     8px;
  --r-lg:  12px;
  --r-xl:  20px;

  /* Transitions */
  --t:     0.15s ease;
  --t-md:  0.25s ease;
}


/* ============================================================
   BASE RESET
   ============================================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family:      var(--font-body);
  background-color: var(--black);
  color:            var(--white);
  line-height:      1.6;
  min-height:       100vh;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--t);
}

a:hover {
  color: var(--gbright);
}

button {
  cursor: pointer;
  font-family: var(--font-ui);
}

ul, ol {
  list-style: none;
}


/* ============================================================
   LAYOUT
   ============================================================ */

.bp-container {
  max-width: var(--max-width);
  margin:    0 auto;
  padding:   0 var(--gutter);
}

@media (max-width: 768px) {
  .bp-container {
    padding: 0 var(--gutter-sm);
  }
}


/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */

.bp-display {
  font-family:    var(--font-display);
  letter-spacing: 0.02em;
  line-height:    1;
  text-transform: uppercase;
}

.bp-editorial {
  font-family: var(--font-editorial);
  line-height: 1.25;
}

.bp-ui {
  font-family:    var(--font-ui);
  font-weight:    600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.bp-nav {
  position:        sticky;
  top:             0;
  z-index:         100;
  height:          var(--nav-height);
  background:      var(--black);
  border-bottom:   1px solid var(--w08);
  display:         flex;
  align-items:     center;
}

.bp-nav__inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  width:           100%;
}

.bp-nav__logo {
  font-family:    var(--font-display);
  font-size:      22px;
  color:          var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bp-nav__logo:hover {
  color: var(--gbright);
}

.bp-nav__menu {
  display:     flex;
  align-items: center;
  gap:         var(--s6);
}

.bp-nav__menu a {
  font-family:    var(--font-ui);
  font-size:      13px;
  font-weight:    600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--w70);
  transition:     color var(--t);
}

.bp-nav__menu a:hover,
.bp-nav__menu a.current {
  color: var(--gold);
}

@media (max-width: 900px) {
  .bp-nav__menu {
    display: none; /* Mobile menu handled in main.js */
  }
}


/* ============================================================
   BADGES (shared across courts, players, etc.)
   ============================================================ */

.bp-badge {
  display:        inline-flex;
  align-items:    center;
  gap:            var(--s1);
  font-family:    var(--font-ui);
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding:        3px 8px;
  border-radius:  var(--r-sm);
}

.bp-badge--verified {
  background: rgba(75, 232, 132, 0.15);
  color:      var(--green);
  border:     1px solid rgba(75, 232, 132, 0.3);
}

.bp-badge--unverified {
  background: var(--w08);
  color:      var(--w50);
  border:     1px solid var(--w15);
}

.bp-badge--gold {
  background: var(--gdim);
  color:      var(--gold);
  border:     1px solid rgba(232, 184, 75, 0.3);
}

.bp-badge--red {
  background: rgba(232, 75, 75, 0.12);
  color:      var(--red);
  border:     1px solid rgba(232, 75, 75, 0.25);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.bp-btn {
  display:        inline-flex;
  align-items:    center;
  gap:            var(--s2);
  font-family:    var(--font-ui);
  font-size:      13px;
  font-weight:    700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding:        10px 20px;
  border-radius:  var(--r);
  border:         none;
  transition:     all var(--t);
  cursor:         pointer;
  text-decoration: none;
}

.bp-btn--primary {
  background: var(--gold);
  color:      var(--black);
}

.bp-btn--primary:hover {
  background: var(--gbright);
  color:      var(--black);
}

.bp-btn--outline {
  background:  transparent;
  color:       var(--gold);
  border:      1.5px solid var(--gold);
}

.bp-btn--outline:hover {
  background: var(--gdim);
  color:      var(--gold);
}

.bp-btn--ghost {
  background: var(--w08);
  color:      var(--w70);
  border:     1px solid var(--w15);
}

.bp-btn--ghost:hover {
  background: var(--w15);
  color:      var(--white);
}


/* ============================================================
   CARDS — generic base
   ============================================================ */

.bp-card {
  background:    var(--b2);
  border:        1px solid var(--w08);
  border-radius: var(--r-lg);
  overflow:      hidden;
  transition:    border-color var(--t), transform var(--t-md);
}

.bp-card:hover {
  border-color: var(--w15);
  transform:    translateY(-2px);
}


/* ============================================================
   FOOTER
   ============================================================ */

.bp-footer {
  background:   var(--b2);
  border-top:   1px solid var(--w08);
  padding-top:  var(--s9);
}

.bp-footer-top {
  display:               grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:                   var(--s8);
  padding-bottom:        var(--s8);
  border-bottom:         1px solid var(--w08);
}

.bp-footer-brand__logo {
  font-family:    var(--font-display);
  font-size:      28px;
  color:          var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display:        block;
  margin-bottom:  var(--s4);
}

.bp-footer-brand__desc {
  font-size:   14px;
  color:       var(--w50);
  line-height: 1.65;
  max-width:   280px;
}

.bp-footer-col__heading {
  font-family:    var(--font-ui);
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--w30);
  margin-bottom:  var(--s4);
}

.bp-footer-col__links {
  display:        flex;
  flex-direction: column;
  gap:            var(--s3);
}

.bp-footer-col__links a {
  font-size:   14px;
  color:       var(--w70);
  transition:  color var(--t);
}

.bp-footer-col__links a:hover {
  color: var(--gold);
}

.bp-footer-middle {
  padding:        var(--s6) 0;
  border-bottom:  1px solid var(--w08);
  display:        flex;
  align-items:    center;
  justify-content: space-between;
  gap:            var(--s5);
  flex-wrap:      wrap;
}

.bp-footer-sister {
  display:     flex;
  align-items: center;
  gap:         var(--s3);
  font-size:   13px;
  color:       var(--w50);
}

.bp-footer-disclosure {
  font-size:   12px;
  color:       var(--w30);
  max-width:   600px;
  line-height: 1.6;
}

.bp-footer-bottom {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         var(--s5) 0;
  flex-wrap:       wrap;
  gap:             var(--s4);
}

.bp-footer-legal {
  display:  flex;
  gap:      var(--s5);
  flex-wrap: wrap;
}

.bp-footer-legal a {
  font-size:   12px;
  color:       var(--w30);
  transition:  color var(--t);
}

.bp-footer-legal a:hover {
  color: var(--w70);
}

.bp-footer-credits {
  font-size: 12px;
  color:     var(--w30);
}

@media (max-width: 900px) {
  .bp-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--s6);
  }
}

@media (max-width: 600px) {
  .bp-footer-top {
    grid-template-columns: 1fr;
  }
  .bp-footer-bottom {
    flex-direction: column;
    align-items:    flex-start;
  }
}


/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.bp-sr-only {
  position: absolute;
  width:    1px;
  height:   1px;
  padding:  0;
  margin:   -1px;
  overflow: hidden;
  clip:     rect(0, 0, 0, 0);
  border:   0;
}

.bp-text-gold    { color: var(--gold); }
.bp-text-green   { color: var(--green); }
.bp-text-red     { color: var(--red); }
.bp-text-muted   { color: var(--w50); }
.bp-text-dim     { color: var(--w30); }

.bp-mt-auto { margin-top: auto; }
.bp-w-full  { width: 100%; }
