/* ==========================================
   TOUCHDOWN TOKENS - GLOBAL STYLESHEET
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&family=Teko:wght@500;700&display=swap');

:root {
    --team-color: #fbbf24;
    --bg-gradient: radial-gradient(circle at 50% 20%, rgba(15, 23, 42, 0.90), rgba(7, 13, 25, 0.99));
    --card-bg: rgba(15, 23, 42, 0.85);
    --border-color: rgba(255, 255, 255, 0.12);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-blue: #38bdf8;
    --accent-green: #10b981;
    --accent-red: #ef4444;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-gradient), url('https://images.unsplash.com/photo-1566577739112-5180d4bf9390?auto=format&fit=crop&w=1920&q=80') center center / cover no-repeat fixed !important;
    color: var(--text-main) !important;
    font-family: 'Inter', sans-serif !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography & General Links (Excluding Navbar) */
body p, body span, body label, body div {
    color: var(--text-main);
}

/* App Container Layout */
.app-container, .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

main.container {
    padding-top: 20px;
    padding-bottom: 40px;
    flex: 1;
}

/* ==========================================
   PREMIUM GLOSSY NAVBAR & HEADER
   ========================================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid var(--team-color, #fbbf24);
    padding: 12px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.brand-logo-wrapper {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    max-height: 40px;
    filter: drop-shadow(0px 4px 10px rgba(251, 191, 36, 0.4));
}

.brand-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: #ffffff !important;
    letter-spacing: 1.5px;
    margin: 0;
}

.brand-text span {
    color: var(--team-color, #fbbf24) !important;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    text-decoration: none !important;
}

.nav-links a.active {
    border-bottom: 2px solid var(--team-color, #fbbf24);
}

.nav-admin-btn {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5 !important;
}

.nav-logout-btn {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

/* ==========================================
   STICKY BALANCE BAR
   ========================================== */

.sticky-balance-bar {
    background: rgba(15, 23, 42, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 22px;
    margin: 20px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    width: 100%;
}

/* ==========================================
   CARDS & CONTAINERS
   ========================================== */

.summary-box, .matchup-card-item, .rule-card, .chat-bubble, .profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Leaderboard & Podium Ranks */
.leaderboard-row {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.leaderboard-row:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}

.podium-rank-1 {
    border: 1px solid rgba(251, 191, 36, 0.5) !important;
    border-left: 4px solid #fbbf24 !important;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(15, 23, 42, 0.90) 100%) !important;
}

.podium-rank-2 {
    border: 1px solid rgba(148, 163, 184, 0.5) !important;
    border-left: 4px solid #94a3b8 !important;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.12) 0%, rgba(15, 23, 42, 0.90) 100%) !important;
}

.podium-rank-3 {
    border: 1px solid rgba(180, 83, 9, 0.5) !important;
    border-left: 4px solid #b45309 !important;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.12) 0%, rgba(15, 23, 42, 0.90) 100%) !important;
}

/* ==========================================
   FORM CONTROLS & BUTTONS
   ========================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    background: rgba(30, 41, 59, 0.9);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

button[type="submit"], .btn-primary {
    background: linear-gradient(135deg, var(--team-color, #fbbf24) 0%, #d97706 100%);
    color: #000000;
    padding: 12px 24px;
    font-family: 'Teko', sans-serif;
    font-size: 22px;
    font-weight: bold;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    transition: all 0.2s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

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

.footer, .footer-container {
    margin-top: 60px;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: rgba(15, 23, 42, 0.85);
    border-top: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(14px);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* ==========================================
   RESPONSIVE MOBILE NAV DRAWER
   ========================================== */

@media (max-width: 950px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 15px 30px rgba(0,0,0,0.6);
        gap: 10px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        width: 100%;
        padding: 10px 14px;
    }
}
