/* ============================================================
   NEXUS BETS — sdílený styl
   Všechny stránky používají tenhle jeden soubor.
   Barvy se mění TADY a promítnou se všude.
   ============================================================ */

:root {
    /* Řekne prohlížeči, že jedeme v tmavém režimu.
       Bez tohohle je kalendář a výběr času černý na černém. */
    color-scheme: dark;

    /* Podklad */
    --bg-app: #0a0a0f;
    --bg-panel: #14141c;
    --bg-card: #1b1b26;
    --bg-input: #0f0f16;

    /* Text */
    --text: #ffffff;
    --text-dim: #8a8a9a;
    --text-faint: #5a5a68;

    /* Značka */
    --accent: linear-gradient(135deg, #8A2387, #E94057, #F27121);
    --accent-solid: #E94057;
    --accent-glow: rgba(233, 64, 87, 0.35);

    /* Významové barvy */
    --win: #2ecc71;
    --lose: #e74c3c;
    --gold: #FFD700;
    --cs: linear-gradient(135deg, #f7971e, #ffd200);
    --lol: linear-gradient(135deg, #43CBFF, #9708CC);

    /* Tvary */
    --line: rgba(255, 255, 255, 0.07);
    --radius: 18px;
    --radius-sm: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', 'Poppins', sans-serif;
    background-color: var(--bg-app);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Jemné světlo na pozadí */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(151, 8, 204, 0.10), transparent 45%),
                radial-gradient(circle at 85% 75%, rgba(233, 64, 87, 0.08), transparent 45%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3 { font-family: 'Outfit', 'Poppins', sans-serif; font-weight: 800; }

a { color: inherit; }

/* ---------- NAVBAR ---------- */
.navbar {
    background: rgba(20, 20, 28, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    height: 68px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left { display: flex; align-items: center; gap: 18px; }

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-decoration: none;
    text-transform: uppercase;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hamburger-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: #fff;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: 0.25s;
}
.hamburger-btn:hover { background: rgba(255, 255, 255, 0.1); }

/* Zůstatek v navbaru */
.balance-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 10px;
}

.btn-login {
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: 0.25s;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 6px 22px var(--accent-glow); }

/* ---------- BOČNÍ MENU ---------- */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100vh;
    background: rgba(20, 20, 28, 0.92);
    backdrop-filter: blur(25px);
    border-right: 1px solid var(--line);
    z-index: 1000;
    transition: left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
}
.side-menu.active { left: 0; }

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 24px 18px;
    border-bottom: 1px solid var(--line);
}
.side-menu-header h2 {
    margin: 0;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: #aaa;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.close-btn:hover { background: rgba(255, 255, 255, 0.15); color: #fff; transform: rotate(90deg); }

.side-menu-links { display: flex; flex-direction: column; padding: 22px; gap: 10px; overflow-y: auto; }

.side-item {
    color: #aaa;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: 0.25s;
    position: relative;
}
.side-item:hover, .side-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line);
    transform: translateX(4px);
}
.side-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 3px;
    border-radius: 3px;
    background: var(--accent-solid);
    box-shadow: 0 0 10px var(--accent-solid);
}
.side-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    margin-right: 12px;
    font-size: 14px;
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.menu-backdrop.active { opacity: 1; pointer-events: auto; }

/* ---------- OBSAH ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 24px; }

.page-title { font-size: 38px; margin: 0 0 6px; letter-spacing: -1px; }
.page-subtitle { color: var(--text-dim); margin: 0 0 32px; font-size: 15px; }

.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    position: relative;
    overflow: hidden;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin: 0 0 18px;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- PRVKY ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: #ddd;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: 0.25s;
}
.btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.btn-primary {
    background: var(--accent);
    border: none;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 18px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px var(--accent-glow); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: 0.25s;
}
.input:focus { outline: none; border-color: var(--accent-solid); box-shadow: 0 0 0 3px var(--accent-glow); }
select.input { cursor: pointer; }

/* Ikonky kalendáře a hodin ať jsou na tmavém vidět */
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: .6;
    cursor: pointer;
}
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.input::placeholder { color: var(--text-faint); }

.label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
}
.badge-cs { background: rgba(247, 151, 30, 0.15); color: #f7971e; }
.badge-lol { background: rgba(67, 203, 255, 0.15); color: #43CBFF; }
.badge-live { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.badge-win { background: rgba(46, 204, 113, 0.15); color: var(--win); }
.badge-lose { background: rgba(231, 76, 60, 0.15); color: var(--lose); }

/* Hlášky */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert-error { background: rgba(231, 76, 60, 0.1); border: 1px solid rgba(231, 76, 60, 0.3); color: #ff8a7a; }
.alert-ok { background: rgba(46, 204, 113, 0.1); border: 1px solid rgba(46, 204, 113, 0.3); color: #6ee7a0; }
.alert-info { background: rgba(67, 203, 255, 0.08); border: 1px solid rgba(67, 203, 255, 0.25); color: #8fd9ff; }

/* Načítání */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
    color: transparent !important;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.empty-state .icon { font-size: 46px; margin-bottom: 14px; opacity: 0.5; }

/* ---------- PATIČKA ---------- */
footer {
    margin-top: auto;
    text-align: center;
    padding: 32px 20px;
    color: var(--text-faint);
    font-size: 13px;
    border-top: 1px solid var(--line);
}
.footer-note { font-size: 11px; opacity: 0.7; margin-top: 6px; }

/* ---------- MOBIL ---------- */
@media (max-width: 768px) {
    .navbar { padding: 0 16px; }
    .nav-logo { font-size: 18px; }
    .container { padding: 24px 16px; }
    .page-title { font-size: 28px; }
    .balance-chip { font-size: 13px; padding: 7px 12px; }
    .hide-mobile { display: none !important; }
}
