﻿/* ---------------------------------------------- */
/*         LeagueMasterGT - Public Theme          */
/*        Deportivo / Energético (Bootstrap 5)    */
/* ---------------------------------------------- */

:root {
    --lm-primary: #0d6efd;
    --lm-primary-2: #1e40af;
    --lm-success: #16a34a;
    --lm-danger: #ef4444;
    --lm-warning: #f59e0b;
    --lm-text: #0f172a;
    --lm-muted: rgba(15, 23, 42, .70);
    --lm-radius: 16px;
    --lm-radius-sm: 12px;
    --lm-border: rgba(2, 6, 23, .08);
    --lm-shadow-sm: 0 8px 20px rgba(2, 6, 23, .06);
    --lm-shadow-md: 0 12px 28px rgba(2, 6, 23, .10);
    /* Header / Footer */
    --lm-header-bg: #111827;
    --lm-header-text: #e5e7eb;
    --lm-footer-bg: #020617;
    --lm-footer-text: #9ca3af;
    --lm-accent-soft: rgba(56, 189, 248, 0.14); /* fallback por defecto */
}

/* Fondo general un poquito más “sport app” */
body.bg-light {
    background: linear-gradient( 180deg, #eef2ff 0%, /* gris azulado muy suave */
    #f8fafc 45%, #f8fafc 100% ) !important;
}

/* Links activos del navbar más “marcador” */
.navbar .nav-link.active {
    position: relative;
}

    .navbar .nav-link.active::after {
        content: "";
        position: absolute;
        left: .5rem;
        right: .5rem;
        bottom: .35rem;
        height: 3px;
        border-radius: 999px;
        background: var(--lm-primary);
    }

/* Cards base */
.lm-card {
    border-radius: var(--lm-radius);
    border: 1px solid var(--lm-border);
    background: #fff;
    box-shadow: var(--lm-shadow-sm);
}

/* Secciones con “barra” deportiva */
.lm-section-title {
    font-weight: 800;
    letter-spacing: .2px;
}

    .lm-section-title::before {
        content: "";
        display: inline-block;
        width: 10px;
        height: 22px;
        margin-right: .6rem;
        border-radius: 6px;
        background: linear-gradient(180deg, var(--lm-primary) 0%, var(--lm-primary-2) 100%);
        transform: translateY(3px);
    }

/* Badges “energy” */
.badge.lm-badge-phase {
    background: rgba(13,110,253,.12);
    color: var(--lm-primary-2);
    border: 1px solid rgba(13,110,253,.22);
}

.badge.lm-badge-live {
    background: rgba(239,68,68,.12);
    color: #b91c1c;
    border: 1px solid rgba(239,68,68,.25);
}

/* “Hoy” más notorio */
.lm-pill-today {
    background: rgba(245,158,11,.14);
    color: #92400e;
    border: 1px solid rgba(245,158,11,.25);
    font-weight: 700;
    border-radius: 999px;
    padding: .15rem .5rem;
}

/* Result score un poco más deportivo */
.result-score {
    border: 1px solid rgba(2,6,23,.08);
    box-shadow: 0 6px 14px rgba(2,6,23,.06);
}

/* Hover con “snap” */
.lm-hover {
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .lm-hover:hover {
        transform: translateY(-2px);
        box-shadow: var(--lm-shadow-md);
        border-color: rgba(13,110,253,.22);
    }

/* ---------------------------------------------- */
/*        HEADER & FOOTER - PUBLIC THEME          */
/* ---------------------------------------------- */

/* HEADER */
.public-header {
    background: linear-gradient(180deg, var(--lm-header-bg) 0%, #020617 100%);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

    .public-header .navbar-brand,
    .public-header .nav-link {
        color: var(--lm-header-text) !important;
    }

    .public-header .nav-link {
        opacity: .85;
        font-weight: 500;
    }

        .public-header .nav-link:hover {
            opacity: 1;
            color: #ffffff !important;
        }

        .public-header .nav-link.active {
            color: #ffffff !important;
        }

            .public-header .nav-link.active::after {
                background: #38bdf8; /* acento deportivo */
            }

    /* Icono hamburguesa en móvil */
    .public-header .navbar-toggler {
        border-color: rgba(255,255,255,.25);
    }

    .public-header .navbar-toggler-icon {
        filter: invert(1);
    }

    .public-header .navbar {
        padding-top: .35rem;
        padding-bottom: .35rem;
    }

/* FOOTER */
.public-footer {
    background: var(--lm-footer-bg);
    border-top: 1px solid rgba(255,255,255,.06);
}

    .public-footer,
    .public-footer .text-muted {
        color: var(--lm-footer-text) !important;
    }

main.container-fluid {
    padding-top: 2.5rem;
}

/* ---------------------------------------------- */
/*                LOGO                            */
/* ---------------------------------------------- */

.public-header .login-brand-name {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #e5e7eb;
}

.public-header .login-logo {
    height: 80px;
    width: auto;
}

/* League */
.public-header .brand-league {
    color: #7dd3fc;
    font-weight: 500;
}

/* Master */
.public-header .brand-master {
    color: #e5e7eb;
    font-weight: 500;
}

/* GT */
.public-header .brand-g,
.public-header .brand-t {
    color: #38bdf8;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 576px) {
    .public-header .login-logo {
        height: 60px;
    }

    .public-header .login-brand-name {
        font-size: 1rem;
    }
}

/* ---------------------------------------------- */
/*   NAV ACTIVE UNDERLINE - MOBILE FIX            */
/* ---------------------------------------------- */

@media (max-width: 991.98px) { /* navbar-collapse en Bootstrap 5 = < lg */
    .public-header .navbar-nav .nav-link {
        display: inline-block; /* evita que ocupe todo el ancho */
        width: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .public-header .navbar-nav .nav-item {
        padding: .25rem 0; /* separa items sin estirar underline */
    }

    .public-header .navbar-nav .nav-link.active::after {
        left: 0;
        right: 0; /* ahora el ancho será el del texto */
        bottom: -0.2rem; /* ajusta un poquito para que no choque con padding */
    }
}

.summary-card {
    position: relative;
}

    .summary-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 16px;
        bottom: 16px;
        width: 4px;
        border-radius: 999px;
        background: var(--accent, #38bdf8);
    }

    .summary-card .small {
        text-transform: uppercase;
        letter-spacing: .04em;
        font-size: .7rem;
    }

/* Ícono resumen (Home Summary Cards) */
.home-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft, rgba(56, 189, 248, 0.14));
    color: var(--accent);
    flex-shrink: 0;
}

    .home-stat-icon i {
        font-size: 1.1rem;
    }

/* ==========================
   PUBLIC BRANDING
   ========================== */

/* Quita alturas/paddings raros del brand */
.public-header .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Asegura altura consistente del header */
.public-header .navbar .container {
    min-height: 50px;
    align-items: center;
}

/* Logo */
.public-navbar-logo {
    height: 70px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}

/* Mobile */
@media (max-width: 576px) {
    .public-header .navbar .container {
        min-height: 50px;
    }

    .public-navbar-logo {
        height: 40px;
    }
}