/* =============================================
   CONGOBET — STYLES PERSONNALISÉS
   Paris Sportifs RDC — Dark Mode Bookmaker
   ============================================= */

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1c2d42; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2d4a6a; }

/* --- Navigation --- */
.nav-link {
    color: #94a3b8;
    position: relative;
}
.nav-link:hover {
    color: #ffffff;
    background: rgba(34, 197, 94, 0.08);
}
.nav-link.active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
}

/* --- Sports Sidebar --- */
.sport-btn {
    color: #94a3b8;
}
.sport-btn:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.04);
}
.sport-btn.active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid #22c55e;
}

/* --- Match Card --- */
.match-card {
    background: #111b2e;
    border: 1px solid #1c2d42;
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.2s ease-out;
}
.match-card:hover {
    border-color: #2d4a6a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* --- Odds Button --- */
.odds-btn {
    background: #16281f;
    border: 1px solid #1e3a2f;
    color: #22c55e;
    font-family: 'Inter', monospace;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease-out;
    position: relative;
    overflow: hidden;
    min-width: 64px;
    text-align: center;
}
.odds-btn:hover {
    background: #1d3a2a;
    border-color: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}
.odds-btn:active {
    transform: translateY(0) scale(0.97);
}
.odds-btn.selected {
    background: #22c55e;
    color: #0a0f1a;
    border-color: #22c55e;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}
.odds-btn.selected:hover {
    background: #16a34a;
}

/* Odds flash animation on change */
.odds-btn.flash-up {
    animation: oddsFlashUp 0.5s ease-out;
}
.odds-btn.flash-down {
    animation: oddsFlashDown 0.5s ease-out;
}

@keyframes oddsFlashUp {
    0% { color: #22c55e; text-shadow: 0 0 12px rgba(34,197,94,0.5); }
    100% { color: #4ade80; }
}
@keyframes oddsFlashDown {
    0% { color: #ef4444; text-shadow: 0 0 12px rgba(239,68,68,0.5); }
    100% { color: #22c55e; }
}

/* --- Live Indicator --- */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ef4444;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.live-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}

/* --- Score Display --- */
.score-display {
    font-family: 'Inter', monospace;
    font-weight: 800;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-align: center;
    min-width: 60px;
}
.score-changed {
    animation: scorePop 0.4s ease-out;
}

@keyframes scorePop {
    0% { transform: scale(1.2); color: #22c55e; text-shadow: 0 0 20px rgba(34,197,94,0.4); }
    100% { transform: scale(1); color: #ffffff; }
}

/* --- Timer / Minute --- */
.match-timer {
    font-family: 'Inter', monospace;
    font-size: 11px;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239,68,68,0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* --- Bet Slip Item --- */
.betslip-item {
    background: #0d1424;
    border: 1px solid #1c2d42;
    border-radius: 10px;
    padding: 12px;
    position: relative;
    animation: slideIn 0.25s ease-out;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Toast --- */
.toast {
    background: #111b2e;
    border: 1px solid #1c2d42;
    border-left: 3px solid #22c55e;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: toastIn 0.3s ease-out;
    max-width: 320px;
}
.toast.error { border-left-color: #ef4444; }
.toast.warning { border-left-color: #eab308; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Selection Animations --- */
@keyframes selectPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.odds-btn.selected {
    animation: selectPop 0.25s ease-out;
}

/* --- Mobile Optimizations --- */
@media (max-width: 1279px) {
    .match-card { padding: 12px; }
    .odds-btn { padding: 10px 12px; font-size: 14px; min-width: 56px; }
    .score-display { font-size: 16px; }
}

/* --- Stake Preset Buttons --- */
.stake-preset:hover { background: #243852 !important; }

/* --- Place Bet Button Pulse --- */
#place-bet-btn:hover {
    transform: translateY(-1px);
}
#place-bet-btn:active {
    transform: translateY(0);
}

/* --- Odds Trend Indicators --- */
.trend-up { color: #4ade80; }
.trend-down { color: #ef4444; }
.trend-neutral { color: #94a3b8; }

/* --- Mobile Menu --- */
#mobile-menu a:hover { background: #162238 !important; }

/* --- Match Row Layout --- */
.match-teams {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.match-team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 500;
}
.match-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* --- Background Subtle Pattern --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(34,197,94,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(234,179,8,0.02) 0%, transparent 50%);
    pointer-events: none;
}
