/* GLOBAL STYLES */
body { font-family: 'Segoe UI', sans-serif; text-align: center; background-color: #1a1a1a; color: white; margin: 0; padding-bottom: 50px; overflow-x: hidden; }

/* DISCOVERY ZONE (LIGHTER SECTION) */
.discovery-zone { background: #1a1a1a; padding: 30px 15px 50px 15px; border-bottom: 1px solid #333; }
.hero h1 { font-size: 3em; color: #4facfe; margin: 0 0 10px 0; font-weight: 800; }
.search-container { position: sticky; top: 10px; z-index: 100; margin: 0 auto 40px auto; max-width: 600px; width: 100%; }
#clubSearch { width: 100%; padding: 18px 25px; border-radius: 50px; border: 2px solid #333; background: #222; color: white; font-size: 1.1em; outline: none; box-sizing: border-box; }

/* CLUB CARDS */
.club-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; max-width: 1000px; margin: 0 auto; }
.club-card { background: #fff; border-radius: 15px; width: 220px; cursor: pointer; border: 3px solid #333; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: 0.2s; }
.logo-fill { width: 100%; height: 150px; object-fit: contain; padding: 15px; display: block; background: white; }
.team-label-bar { background: #333; padding: 12px; font-weight: bold; color: white; font-size: 0.9em; width: 100%; box-sizing: border-box; }

/* INFO ZONE */
.info-zone { background: #121212; padding: 40px 20px; }
.badge-container { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; max-width: 850px; margin: 0 auto; }
.badge { background: #1a1a1a; border: 1px solid #333; border-radius: 15px; padding: 25px; width: 340px; text-align: left; display: flex; gap: 20px; align-items: center; }
.badge i { font-size: 2.2em; color: #4facfe; min-width: 50px; text-align: center; }
.badge h3 { margin: 0 0 5px 0; color: #fff; font-size: 1.2em; }
.badge p { margin: 0; color: #888; font-size: 0.9em; line-height: 1.4; }

/* OVERLAY UI */
.selector-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.96); z-index: 3000; flex-direction: column; justify-content: center; align-items: center; }
.team-list { background: #1a1a1a; padding: 40px; border-radius: 25px; min-width: 300px; border: 1px solid #4facfe; }
.team-opt { display: block; padding: 20px; color: white; text-decoration: none; border-bottom: 1px solid #333; font-size: 1.4em; font-weight: bold; }

/* SCOREBOARD & HEADER */
.header { background: #333; padding: 15px; font-size: 1.2em; display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.score-container { display: flex; justify-content: space-around; align-items: stretch; padding: 10px; margin-top: 15px; }
.team-box { flex: 1; padding: 15px 10px; border-radius: 10px; margin: 5px; border-top: 8px solid transparent; display: flex; flex-direction: column; align-items: center; }
.team-name-area { min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.blue-style { border-color: #4444ff; background: rgba(68, 68, 255, 0.05); }
.red-style { border-color: #ff4444; background: rgba(255, 68, 68, 0.05); }
.score-display { font-size: 100px; font-weight: bold; margin: 15px 0; line-height: 1; }
.sets-won-label { font-size: 0.9em; color: #888; margin-bottom: 5px; display: block; }
.live-indicator { background: red; color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.6em; font-weight: 800; margin-left: 8px; animation: blink 1s infinite; vertical-align: middle; }
.off-indicator { background: #555; color: #aaa; padding: 2px 8px; border-radius: 4px; font-size: 0.6em; font-weight: 800; margin-left: 8px; vertical-align: middle; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.2; } 100% { opacity: 1; } }

/* MODAL */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); justify-content: center; align-items: center; }
.modal-content { background: #222; padding: 25px; border-radius: 15px; border: 1px solid #444; width: 80%; max-width: 400px; }

/* HERO NEEDED UI */
.btn-hero-claim { background: #4facfe; color: black; padding: 8px 18px; border-radius: 50px; font-weight: bold; border: none; cursor: pointer; font-size: 0.7em; }

/* ADMIN SPECIFIC */
.nav-icon { font-size: 26px; cursor: pointer; color: white; background: none; border: none; padding: 5px; }
.menu-container { position: relative; }
.menu-container:hover .menu-content { display: block; }
.menu-content { display: none; position: absolute; right: 0; top: 40px; background: #333; box-shadow: 0 4px 12px rgba(0,0,0,0.5); border-radius: 5px; z-index: 100; min-width: 180px; }
.menu-content button { color: white; padding: 15px; text-decoration: none; display: block; background: none; border: none; width: 100%; text-align: left; font-size: 16px; cursor: pointer; border-bottom: 1px solid #444; }
.menu-content button:disabled { color: #666; cursor: not-allowed; }
.header-controls { display: flex; align-items: center; gap: 12px; }
.court-header { font-weight: bold; font-size: 0.9em; margin-right: 5px; }
.court-header span { color: #ff4444; font-size: 1.1em; }
.score-btn { background: none; border: none; color: white; font-size: 100px; font-weight: bold; margin: 15px 0; cursor: pointer; display: block; width: 100%; -webkit-tap-highlight-color: transparent; user-select: none; line-height: 1; font-family: inherit; }
.score-btn:active { opacity: 0.3; transform: scale(0.95); }
.btn-undo { background: none; border: 1px solid #666; color: #aaa; font-size: 0.85em; padding: 6px 14px; border-radius: 4px; margin-bottom: 20px; cursor: pointer; }
.timeout-area { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.to-pad { width: 45px; height: 45px; border: 2px solid #555; border-radius: 8px; background: none; cursor: pointer; }
.to-pad.used { background: #ff4444; border-color: #ff4444; }
.blue-style .to-pad.used { background: #4444ff; border-color: #4444ff; }
.warmup-banner { background: #ffc107; color: #000; padding: 10px; font-weight: bold; font-size: 1.1em; width: 100%; }
