/* ============================================
   UPTBA — Players Directory Page
   Same design system as main website
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@300;400;500;600&family=Oswald:wght@400;500;600;700&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
  --orange: #F5820A;
  --orange-light: #FF9A2E;
  --yellow: #F5C518;
  --red-dark: #7A0A0A;
  --black: #0A0A0A;
  --dark: #111111;
  --dark-2: #1A1A1A;
  --dark-3: #222222;
  --dark-4: #2A2A2A;
  --gray: #888888;
  --gray-light: #CCCCCC;
  --white: #FFFFFF;
  --white-dim: rgba(255,255,255,0.08);
  --white-dim2: rgba(255,255,255,0.04);
  --gradient-orange: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
   --font-display: 'Anton', 'Bebas Neue', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-accent: 'Oswald', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-orange: 0 0 40px rgba(245, 130, 10, 0.25);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.6);
  --radius: 4px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: none; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

/* ============ CURSOR ============ */
.cursor {
  width: 12px; height: 12px;
  background: var(--orange);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 99999;
  transition: transform 0.15s ease, background 0.2s ease;
  transform: translate(-50%, -50%);
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(245,130,10,0.45);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 99998;
  transform: translate(-50%, -50%);
}

/* ============ UTILITIES ============ */
.container { max-width: 1360px; margin: 0 auto; padding: 0 40px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-accent); font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 12px 28px; border: none; border-radius: var(--radius);
  transition: var(--transition); position: relative; overflow: hidden;
}
.btn-primary { background: var(--gradient-orange); color: var(--black); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-orange); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-ghost {
  background: transparent; color: var(--orange);
  border: 1.5px solid var(--orange); padding: 9px 22px; font-size: 11px;
}
.btn-ghost:hover { background: var(--orange); color: var(--black); }

.section-tag {
  display: inline-block;
  font-family: var(--font-accent); font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--orange);
  margin-bottom: 16px; position: relative; padding-left: 28px;
}
.section-tag::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 18px; height: 2px; background: var(--orange);
}

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245,130,10,0.15);
}
.nav { display: flex; align-items: center; height: 72px; }
.nav-logo { display: flex; align-items: center; margin-right: 48px; }
.nav-logo img { height: 48px; width: auto; filter: drop-shadow(0 0 12px rgba(245,130,10,0.4)); }
.nav-links { display: flex; align-items: center; flex: 1; }
.nav-links a {
  font-family: var(--font-accent); font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gray-light);
  padding: 8px 18px; position: relative; transition: var(--transition);
}
.nav-links a.active { color: var(--orange); }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 0; height: 2px;
  background: var(--orange); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 70%; }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-cta {
  background: var(--orange); color: var(--black);
  font-family: var(--font-accent); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; padding: 10px 22px;
  border: none; border-radius: var(--radius); transition: var(--transition);
}
.nav-cta:hover { background: var(--yellow); transform: translateY(-1px); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); }

/* Mobile Nav */
.mobile-nav {
  position: fixed; inset: 0; background: rgba(0,0,0,0.97); z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  opacity: 0; visibility: hidden; transition: var(--transition-slow);
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a { font-family: var(--font-display); font-size: 48px; font-weight: 800; text-transform: uppercase; color: var(--white); transition: var(--transition); }
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--white); width: 44px; height: 44px; border-radius: 50%;
  font-size: 18px; display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.mobile-nav-close:hover { border-color: var(--orange); color: var(--orange); }

/* ============ PAGE HERO ============ */
.page-hero {
  padding: 160px 0 80px;
  background: var(--dark);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: 'PLAYERS';
  position: absolute; right: -20px; bottom: -40px;
  font-family: var(--font-display); font-size: 200px; font-weight: 900;
  color: rgba(255,255,255,0.02); pointer-events: none; line-height: 1;
}
.page-hero::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-orange);
}
.page-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.page-hero-title {
 font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  font-weight: 400;
  text-transform: uppercase;
}

.page-hero-title span { color: var(--orange); }
.page-hero-sub {
  font-size: 15px; color: var(--gray); max-width: 420px;
  line-height: 1.7; margin-top: 20px;
}
.page-hero-count {
  text-align: right; flex-shrink: 0;
}
.count-num {
  font-family: var(--font-display); font-size: 80px; font-weight: 900;
  color: var(--orange); line-height: 1;
}
.count-label {
  font-family: var(--font-accent); font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gray);
}

/* ============ FILTERS BAR ============ */
.filters-bar {
  background: var(--dark-2);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 20px 0;
  position: sticky; top: 72px; z-index: 100;
}
.filters-inner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.filter-label {
  font-family: var(--font-accent); font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gray);
  flex-shrink: 0; margin-right: 4px;
}
.filter-select {
  background: var(--dark-3); border: 1px solid rgba(255,255,255,0.08);
  color: var(--white); font-family: var(--font-body); font-size: 13px;
  padding: 9px 36px 9px 14px; border-radius: var(--radius);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F5820A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: var(--transition); cursor: none; min-width: 160px;
}
.filter-select:focus { outline: none; border-color: var(--orange); }
.filter-select:hover { border-color: rgba(245,130,10,0.4); }

.filter-search {
  flex: 1; min-width: 200px; max-width: 320px;
  background: var(--dark-3); border: 1px solid rgba(255,255,255,0.08);
  color: var(--white); font-family: var(--font-body); font-size: 13px;
  padding: 9px 14px 9px 38px; border-radius: var(--radius);
  transition: var(--transition); outline: none;
}
.filter-search:focus { border-color: var(--orange); }
.search-wrap { position: relative; flex: 1; min-width: 200px; max-width: 320px; }
.search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--gray); font-size: 13px; pointer-events: none;
}

.filter-sep { width: 1px; height: 28px; background: rgba(255,255,255,0.08); flex-shrink: 0; }

/* Grid Toggle Buttons */
.grid-toggle { display: flex; gap: 4px; margin-left: auto; }
.grid-btn {
  background: var(--dark-3); border: 1px solid rgba(255,255,255,0.08);
  color: var(--gray); width: 36px; height: 36px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: var(--transition);
}
.grid-btn.active, .grid-btn:hover {
  background: var(--orange); border-color: var(--orange); color: var(--black);
}

.filters-result {
  font-family: var(--font-accent); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gray); flex-shrink: 0;
  padding: 0 12px;
}
.filters-result span { color: var(--orange); }

/* ============ PLAYERS SECTION ============ */
.players-section { padding: 60px 0 120px; background: var(--black); }

/* Grid Layouts */
.players-grid {
  display: grid;
  gap: 20px;
  transition: var(--transition-slow);
}
.players-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.players-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ============ PLAYER CARD ============ */
.player-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.player-card:hover {
  border-color: rgba(245,130,10,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.player-card.expanded {
  border-color: rgba(245,130,10,0.5);
  box-shadow: var(--shadow-orange);
}

/* Card Photo */
.player-photo-wrap {
  position: relative; overflow: hidden;
  height: 310px;
  background: var(--dark-3);
}
.player-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.5s ease;
}
.player-card:hover .player-photo { transform: scale(1.04); }
.player-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  background: linear-gradient(160deg, var(--dark-3) 0%, #1a0800 100%);
  color: var(--gray);
}
.player-photo-placeholder .avatar-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(245,130,10,0.1); border: 2px dashed rgba(245,130,10,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: rgba(245,130,10,0.4);
}
.player-photo-placeholder .ph-name {
  font-family: var(--font-accent); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.2);
}
.player-photo-placeholder .ph-file {
  font-size: 9px; color: rgba(255,255,255,0.1); letter-spacing: 1px;
}

/* Rank Badge */
.player-rank {
  position: absolute; top: 14px; left: 14px;
  background: var(--gradient-orange); color: var(--black);
  font-family: var(--font-display); font-size: 14px; font-weight: 900;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(245,130,10,0.4);
}

/* Style Badge */
.player-style-badge {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-accent); font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.style-hook { background: rgba(245,130,10,0.2); color: var(--orange); border: 1px solid rgba(245,130,10,0.4); }
.style-straight { background: rgba(80,160,220,0.2); color: #50a0dc; border: 1px solid rgba(80,160,220,0.4); }
.style-cranker { background: rgba(160,80,220,0.2); color: #a050dc; border: 1px solid rgba(160,80,220,0.4); }
.style-tweener { background: rgba(80,200,120,0.2); color: #50c878; border: 1px solid rgba(80,200,120,0.4); }

/* Photo overlay */
.player-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 60%);
}

/* Card Body */
.player-body { padding: 20px 20px 0; }

.player-name {
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.5px; line-height: 1;
  margin-bottom: 6px;
}
.player-location {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 12px; color: var(--gray);
  margin-bottom: 14px;
}
.player-location i { color: var(--orange); font-size: 10px; }

/* Quick Stats Row */
.player-quick-stats {
  display: flex; gap: 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin: 0 -20px;
  padding: 0 20px;
}
.qs-item {
  flex: 1; text-align: center; padding: 12px 8px;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.qs-item:last-child { border-right: none; }
.qs-val {
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
  color: var(--orange); line-height: 1;
}
.qs-label {
  font-family: var(--font-accent); font-size: 8px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray);
  margin-top: 3px;
}

/* Expand Button */
.player-expand-btn {
  width: 100%; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; color: var(--white);
  font-family: var(--font-accent); font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  transition: var(--transition); border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 14px;
}
.player-expand-btn:hover { color: var(--orange); }
.expand-icon {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; transition: var(--transition);
  flex-shrink: 0;
}
.player-card.expanded .expand-icon {
  background: var(--orange); border-color: var(--orange); color: var(--black);
  transform: rotate(180deg);
}

/* ============ EXPANDED DETAILS ============ */
.player-details {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
  padding: 0 20px;
}
.player-card.expanded .player-details {
  max-height: 600px; opacity: 1;
  padding: 20px 20px 24px;
}

.details-divider {
  height: 1px; background: rgba(245,130,10,0.2);
  margin-bottom: 20px;
}

.details-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 20px;
}
.detail-item { }
.detail-label {
  font-family: var(--font-accent); font-size: 9px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gray);
  margin-bottom: 4px;
}
.detail-val {
  font-family: var(--font-body); font-size: 14px; color: var(--white);
  font-weight: 500;
}
.detail-val.highlight { color: var(--orange); font-weight: 600; }

/* Wins/Tournament chips */
.detail-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip {
  font-family: var(--font-accent); font-size: 9px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(245,130,10,0.1); color: var(--orange);
  border: 1px solid rgba(245,130,10,0.25);
}

/* Bio */
.player-bio {
  font-size: 13px; color: var(--gray); line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.05); padding-top: 16px;
  margin-top: 4px;
}

/* Avg Bar */
.avg-bar-wrap { margin-top: 16px; }
.avg-bar-label {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-accent); font-size: 9px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin-bottom: 8px;
}
.avg-bar-label span { color: var(--orange); font-size: 14px; font-family: var(--font-display); font-weight: 800; }
.avg-bar-track {
  height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden;
}
.avg-bar-fill {
  height: 100%; background: var(--gradient-orange); border-radius: 2px;
  width: 0; transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============ EMPTY STATE ============ */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 100px 20px;
  display: none;
}
.empty-state.visible { display: block; }
.empty-icon { font-size: 64px; opacity: 0.2; margin-bottom: 20px; }
.empty-title {
  font-family: var(--font-display); font-size: 32px; font-weight: 800;
  text-transform: uppercase; color: var(--gray); margin-bottom: 8px;
}
.empty-sub { font-size: 14px; color: rgba(255,255,255,0.25); }

/* ============ REVEAL ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.player-card {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.player-card.card-visible { opacity: 1; transform: translateY(0); }
.player-card.card-visible:hover { transform: translateY(-4px); }
.player-card.expanded.card-visible { transform: translateY(0); }

/* ============ FOOTER ============ */
.footer {
  background: var(--black); border-top: 1px solid rgba(255,255,255,0.05); padding-top: 60px;
}
.footer-simple {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 32px; gap: 24px; flex-wrap: wrap;
}
.footer-logo { height: 44px; filter: drop-shadow(0 0 10px rgba(245,130,10,0.3)); }
.footer-links-row { display: flex; gap: 32px; }
.footer-links-row a { font-family: var(--font-accent); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); transition: var(--transition); }
.footer-links-row a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05); padding: 20px 0;
  font-size: 12px; color: rgba(255,255,255,0.2); text-align: center;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .players-grid.grid-4 { grid-template-columns: repeat(3, 1fr); }
  .players-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .players-grid.grid-4,
  .players-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .filters-inner { gap: 10px; }
  .grid-toggle { margin-left: 0; }
}
@media (max-width: 560px) {
  .players-grid.grid-4,
  .players-grid.grid-3 { grid-template-columns: 1fr; }
  .page-hero-inner { flex-direction: column; gap: 20px; }
  .page-hero-count { text-align: left; }
  .count-num { font-size: 56px; }
}
