/* assets/css/style.css */

/* ==========================================================================
   1. CORE THEME CONSTANTS & VARIABLE DICTIONARIES
   ========================================================================== */
:root {
    --bg-void: #0B1121;
    --bg-card: #0F172A;
    --bg-hover: #1E293B;
    --primary-blue: #2563EB;
    --primary-hover: #1D4ED8;
    --accent-gold: #FFC107;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-slate: #334155;
    --success-green: #10B981;
    --error-red: #EF4444;
    --card-glow: rgba(37, 99, 235, 0.1);
    --shadow-preset: transparent;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
}

/* UNIVERSAL LIGHT DISPLAY MODE THEME OVERRIDES (#ebebeb Grey Canvas) */
body.light-theme {
    --bg-void: #ebebeb;
    --bg-card: #FFFFFF;
    --bg-hover: #E2E8F0;
    --primary-blue: #1D4ED8;
    --primary-hover: #1E40AF;
    --accent-gold: #D97706;
    --text-main: #0F172A;
    --text-muted: #475569;
    --border-slate: #CBD5E1;
    --success-green: #059669;
    --error-red: #DC2626;
    --card-glow: rgba(0, 0, 0, 0.05);
    --shadow-preset: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* ==========================================================================
   2. GLOBAL INITIALIZATION STYLE RESETS
   ========================================================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-void); 
    color: var(--text-main); 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* GPU-Accelerated Dynamic Ambient Layout Enhancements */
.ambient-glow-system {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    -webkit-filter: blur(120px);
    opacity: 0.14;
    mix-blend-mode: screen;
    will-change: transform;
    transition: opacity 0.4s ease;
}
body.light-theme .glow-orb { opacity: 0.03; }
.orb-blue { width: 450px; height: 450px; background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%); top: -10%; left: -5%; animation: floatOrbAlpha 22s infinite alternate ease-in-out; }
.orb-gold { width: 550px; height: 550px; background: radial-gradient(circle, var(--accent-gold) 0%, transparent 75%); bottom: -15%; right: -5%; animation: floatOrbBeta 28s infinite alternate ease-in-out; }

.floating-balls-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.kinetic-ball {
    position: absolute;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(56, 189, 248, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.12);
    will-change: transform, top, left;
    transition: background 0.4s ease, border-color 0.4s ease;
}
body.light-theme .kinetic-ball {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.08) 0%, rgba(30, 41, 59, 0.01) 100%);
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 0 15px rgba(29, 78, 216, 0.04);
}
.ball-1 { width: 80px; height: 80px; left: 8%; top: 12%; animation: moveBallOne 20s infinite alternate ease-in-out; }
.ball-2 { width: 120px; height: 120px; right: 6%; top: 38%; animation: moveBallTwo 26s infinite alternate ease-in-out; }
.ball-3 { width: 70px; height: 70px; left: 42%; bottom: 18%; animation: moveBallThree 22s infinite alternate ease-in-out; }

@keyframes floatOrbAlpha { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(60px, 40px) scale(1.1); } }
@keyframes floatOrbBeta { 0% { transform: translate(0, 0) scale(1.05); } 100% { transform: translate(-70px, -60px) scale(0.95); } }
@keyframes moveBallOne { 0% { transform: translate(0, 0); } 100% { transform: translate(40px, 90px); } }
@keyframes moveBallTwo { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-80px, -40px) scale(1.08); } }
@keyframes moveBallThree { 0% { transform: translate(0, 0); } 100% { transform: translate(90px, -70px); } }

/* ==========================================================================
   3. MOBILE STICKY NAVIGATION BAR (Active Only On Small Form Factors)
   ========================================================================== */
.mobile-sticky-header-hub {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 55px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-slate);
    padding: 0 20px;
    z-index: 5000;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-preset);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.mobile-sticky-header-hub .left-selector select {
    background: var(--bg-void);
    color: var(--text-main);
    border: 1px solid var(--border-slate);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}
.mobile-sticky-header-hub .right-logo i {
    color: var(--primary-blue);
    font-size: 1.35rem;
}

/* ==========================================================================
   4. CORE MONOLITHIC SPLIT SCREEN GATEWAY WRAPPER
   ========================================================================== */
.split-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    flex: 1;
}

/* -----------------------------------------
   4A. LEFT SIDEBAR INFRASTRUCTURE PLATFORM 
----------------------------------------- */
.left-panel {
    flex: 1.1;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.4) 0%, rgba(2, 6, 23, 0.15) 100%);
    border-right: 1px solid var(--border-slate);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
    transition: border-color 0.4s ease;
}
body.light-theme .left-panel {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.005) 0%, rgba(0, 0, 0, 0.02) 100%);
}

/* Real-Time Rank Cards Infrastructure Header Group Components */
.leaderboard-container {
    width: 100%;
    margin-bottom: 25px; /* Spaces buffer tightened symmetrically */
}
.leaderboard-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.leaderboard-header-row h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}
.leaderboard-header-row h3 i {
    color: var(--accent-gold);
}

.btn-know-more {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(37, 99, 235, 0.25);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-know-more:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

/* Horizontal top-3 player grids alignment metrics loops */
.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}
.leaderboard-square {
    background: var(--bg-card);
    border: 1px solid var(--border-slate);
    border-radius: 12px;
    padding: 22px 14px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-preset);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background-color 0.3s ease;
}
body.light-theme .leaderboard-square {
    border-color: var(--border-slate);
}
.leaderboard-square:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.3);
}
.leaderboard-square.rank-1 { border-top: 3px solid #F59E0B; }
.leaderboard-square.rank-2 { border-top: 3px solid #94A3B8; }
.leaderboard-square.rank-3 { border-top: 3px solid #B45309; }

.rank-badge {
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    width: 22px; height: 22px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}
.rank-1 .rank-badge { background: #F59E0B; }
.rank-2 .rank-badge { background: #94A3B8; }
.rank-3 .rank-badge { background: #B45309; }

.leaderboard-square h4 {
    margin: 6px 0 2px 0;
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}
.player-meta {
    margin: 0 0 12px 0;
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-score {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 800;
    font-family: monospace;
    letter-spacing: 0.2px;
}
.placeholder-rank {
    border: 1px dashed var(--border-slate) !important;
    opacity: 0.65;
}

/* Brand introduction block details text layers copy rules */
.brand-hero {
    margin-top: 5px;
}
.brand-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    margin: 0 0 8px 0;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--text-main);
}
.brand-hero h1 span {
    color: var(--primary-blue);
}
.brand-hero p {
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 22px 0;
    max-width: 540px;
}
.hero-features {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}
.hero-features li {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-slate);
    padding: 10px 14px;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}
body.light-theme .hero-features li {
    background: var(--bg-card);
    box-shadow: var(--shadow-preset);
}
.hero-features li i {
    color: var(--primary-blue);
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}

/* -----------------------------------------
   4B. RIGHT CONTENT AUTHENTICATION MATRIX PANEL 
----------------------------------------- */
.right-panel {
    flex: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 10;
}

.auth-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-slate);
    border-radius: 16px;
    padding: 35px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
body.light-theme .auth-card {
    box-shadow: var(--shadow-preset);
    border-color: var(--border-slate);
}

.language-selector-top {
    position: absolute;
    top: 22px; right: 25px;
}
.lang-dropdown {
    background: var(--bg-void);
    color: var(--text-main);
    border: 1px solid var(--border-slate);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s;
}
.lang-dropdown:focus { border-color: var(--primary-blue); }

.auth-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.auth-subtitle {
    margin: 0 0 22px 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Account Setup Interactive Form Grid Fields Labels */
.input-group {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.input-group label {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.input-group input, 
.input-group select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-void);
    border: 1px solid var(--border-slate);
    color: var(--text-main);
    border-radius: 8px;
    font-size: 0.92rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s steps(4), box-shadow 0.2s ease;
}
.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-method-label {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 8px 0;
}
.auth-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.toggle-btn {
    flex: 1;
    background: var(--bg-void);
    border: 1px solid var(--border-slate);
    color: var(--text-muted);
    padding: 11px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.toggle-btn.active {
    background: rgba(37, 99, 235, 0.08);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 800;
}

.form-actions {
    margin: -4px 0 16px 0;
    text-align: right;
}
.text-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}
.text-link:hover {
    text-decoration: underline;
}

.btn-primary {
    background: var(--primary-blue);
    color: #FFFFFF;
    border: none;
    padding: 13px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    width: 100%;
}
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-primary:active { transform: scale(0.99); }

.switch-mode {
    text-align: center;
    margin-top: 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Conditional Navigation Panel Toggles Wrapper Utility */
.view-pane-hidden {
    display: none !important;
}

/* ==========================================================================
   5. CUSTOM VERIFICATION NOTIFICATION MODALS OVERLAYS
   ========================================================================== */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
body.light-theme .custom-modal-overlay {
    background: rgba(15, 23, 42, 0.45);
}
.custom-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.custom-modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-slate);
    padding: 35px 25px;
    border-radius: 14px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-preset), 0 20px 45px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}
.custom-modal-overlay.active .custom-modal-box {
    transform: translateY(0);
}

.modal-icon { font-size: 3rem; margin-bottom: 15px; display: block; line-height: 1; color: var(--accent-gold); }
.modal-title { font-family: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 800; margin: 0 0 10px 0; color: var(--text-main); }
.modal-message { color: var(--text-muted); margin-bottom: 25px; line-height: 1.5; font-size: 0.92rem; }
.modal-btn { background: var(--primary-blue); color: #FFFFFF; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; cursor: pointer; width: 100%; transition: background 0.2s ease; font-family: inherit; }
.modal-btn:hover { background: var(--primary-hover); }

/* ==========================================================================
   6. PUBLIC ACCOUNTABILITY BASELINE SYSTEM FOOTER 
   ========================================================================== */
.platform-system-footer {
    background: #020617;
    border-top: 1px solid var(--border-slate);
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    z-index: 10;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}
body.light-theme .platform-system-footer {
    background: #F1F5F9;
    border-color: #E2E8F0;
    color: #64748B;
}

/* ==========================================================================
   7. COMPACT MOBILE BOTTOM APP ACTION DOCK NAVIGATION PILL BAR
   ========================================================================== */
.mobile-bottom-action-dock {
    display: none;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: #020617;
    border-top: 1px solid var(--border-slate);
    z-index: 9000;
    justify-content: space-around;
    padding: 10px 0 12px 0;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.6);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
body.light-theme .mobile-bottom-action-dock {
    background: #FFFFFF;
    border-color: #CBD5E1;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}
.mobile-bottom-action-dock .dock-nav-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    width: 25%;
    text-align: center;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
    transition: color 0.2s ease;
}
.mobile-bottom-action-dock .dock-nav-node i { font-size: 1.25rem; line-height: 1; }
.mobile-bottom-action-dock .dock-nav-node.active-dock-node { color: #38BDF8; }
body.light-theme .mobile-bottom-action-dock .dock-nav-node.active-dock-node { color: #2563EB; }

/* ==========================================================================
   8. COMPREHENSIVE PLATFORM MEDIA RESPONSIVE CORE DIRECTIVES
   ========================================================================== */
@media (max-width: 768px) {
    /* Apply body offsets context maps dynamically to retain full scrolling viewport visibility */
    body { 
        padding-top: 55px !important; 
        padding-bottom: 85px !important; 
    }
    
    .mobile-sticky-header-hub { 
        display: flex; 
    }
    
    .split-wrapper { 
        flex-direction: column; 
        min-height: auto; 
    }
    
    /* Re-order elements nodes arrays sequencing strings stack flow output loops checks */
    .left-panel { 
        order: 2; 
        border-right: none; 
        padding: 20px 15px 35px 15px; /* Spaces margins compressed tightly */
        background: transparent; 
    }
    .right-panel { 
        order: 1; 
        padding: 20px 15px; 
        width: 100%; 
    }
    
    .auth-card { 
        max-width: 100%; 
        box-shadow: var(--shadow-preset); 
        padding: 25px 20px; 
    }
    
    /* Enforce rigid top-3 layout cards alignment inline parameters on a single continuous row */
    .leaderboard-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 8px; 
    }
    .leaderboard-square { 
        padding: 14px 6px; 
        border-radius: 8px; 
    }
    .leaderboard-square h4 { font-size: 0.78rem; margin-top: 2px; }
    .player-meta { font-size: 0.62rem; margin-bottom: 6px; }
    .player-score { font-size: 0.68rem; padding: 2px 5px; border-radius: 4px; }
    .rank-badge { width: 18px; height: 18px; font-size: 0.65rem; top: -8px; }

    .brand-hero h1 { font-size: 1.8rem; text-align: center; }
    .brand-hero p { font-size: 0.92rem; text-align: center; margin-bottom: 18px; }
    .hero-features { grid-template-columns: 1fr; gap: 8px; }
    .hero-features li { font-size: 0.85rem; padding: 8px 12px; }

    /* Deploy responsive docks components bars layout */
    .mobile-bottom-action-dock { display: flex; }
    .platform-system-footer { position: relative; z-index: 10; margin-bottom: 0; padding-bottom: 20px; }
}

@media (max-width: 520px) {
    .leaderboard-header-row h3 { font-size: 1.05rem; }
    .btn-know-more { padding: 4px 10px; font-size: 0.72rem; }
    .auth-card h2 { font-size: 1.35rem; }
    .custom-modal-box { padding: 25px 15px; border-radius: 12px; }
}

@media (max-width: 480px) {
    .mobile-bottom-action-dock .dock-nav-node span { display: none; }
    .mobile-bottom-action-dock .dock-nav-node i { font-size: 1.55rem; margin-top: 2px; }
    .right-panel { padding: 15px 10px; }
    .auth-card { padding: 15px 10px; }
    .input-group input, .input-group select { padding: 11px; font-size: 0.88rem; }
    .toggle-btn { padding: 10px; font-size: 0.82rem; }
}