/* PALETA DE COLORES BATTLEFIELD 6 - SEASON 3 UPDATE */
:root {
    --bf-neon: #FFB400; /* Ámbar/Oro de la Temporada 3 */
    --bf-bg: #050505;
    --bf-surface: #121212;
    --bf-border: #2a2a2a;
}

/* BASE */
body {
    background-color: var(--bf-bg) !important;
    color: #ffffff !important;
    font-family: 'Oswald', sans-serif !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body > .container { flex: 1 0 auto; }

/* NAVBAR Y MENÚ DESPLEGABLE */
.navbar {
    background-color: var(--bf-bg) !important;
    border-bottom: 2px solid var(--bf-neon) !important;
    padding: 1rem 0 !important;
}
.navbar-nav .nav-link {
    white-space: nowrap !important;
    display: flex; align-items: center; gap: 8px;
}
.dropdown-menu-bf {
    background-color: #111419;
    border: 1px solid #1f2329;
    border-radius: 0;
    border-left: 3px solid var(--bf-neon);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    margin-top: 10px;
}
.dropdown-menu-bf .dropdown-item {
    color: #a0aec0; font-weight: 500; padding: 12px 20px; transition: all 0.2s;
    font-family: 'Oswald', sans-serif; letter-spacing: 1px; text-transform: uppercase; font-size: 0.85rem;
}
.dropdown-menu-bf .dropdown-item:hover, .dropdown-menu-bf .dropdown-item:focus {
    background-color: rgba(255, 180, 0, 0.1); color: #ffffff; /* Transparencia ámbar */
}

/* BOTONES Y ENLACES HUD */
.btn-bf {
    background-color: var(--bf-neon) !important; color: #000 !important;
    font-weight: 700 !important; border: none !important; border-radius: 0 !important;
    padding: 10px 25px !important; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    text-decoration: none; display: inline-block; transition: 0.3s;
}
.btn-bf:hover { background-color: #fff !important; box-shadow: 0 0 15px var(--bf-neon); }

.link-secondary-bf {
    color: #a0aec0; font-size: 0.85rem; letter-spacing: 3px; text-decoration: none;
    margin-top: 35px; display: inline-flex; align-items: center; transition: all 0.3s ease; position: relative;
}
.link-secondary-bf i { margin-right: 8px; font-size: 1rem; transition: transform 0.3s ease; }
.link-secondary-bf:hover { color: var(--bf-neon); text-shadow: 0 0 8px rgba(255, 180, 0, 0.4); }
.link-secondary-bf:hover i { transform: translateX(-3px); }
.link-secondary-bf::after {
    content: ''; position: absolute; width: 0; height: 1px; bottom: -4px; left: 50%;
    background-color: var(--bf-neon); transition: all 0.3s ease; transform: translateX(-50%);
    box-shadow: 0 0 5px var(--bf-neon);
}
.link-secondary-bf:hover::after { width: 100%; }

/* TABLAS Y FORMULARIOS */
.table-hud { width: 100%; color: #fff !important; border-collapse: separate !important; border-spacing: 0 10px !important; }
.table-hud thead th { color: var(--bf-neon) !important; border: none !important; padding: 15px !important; }
.table-hud tbody tr { background-color: var(--bf-surface) !important; }
.table-hud td { padding: 15px !important; }

.form-control-bf {
    background-color: #000 !important; border: 1px solid #333 !important; color: #fff !important;
    border-radius: 0 !important; padding: 12px !important;
}
.form-control-bf:focus { border-color: var(--bf-neon) !important; box-shadow: 0 0 10px rgba(255, 180, 0, 0.2) !important; outline: none; }

/* TARJETAS ELITE Y VITRINAS */
.card-elite {
    background-color: var(--bf-surface); border-left: 5px solid var(--bf-neon);
    transition: transform 0.3s, box-shadow 0.3s; height: 100%; padding: 1.5rem; display: flex; flex-direction: column;
}
.card-elite:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(255, 180, 0, 0.15); }

.vitrina-scroll { scrollbar-width: thin; scrollbar-color: #2d3748 #111419; }
.vitrina-scroll::-webkit-scrollbar { height: 6px; }
.vitrina-scroll::-webkit-scrollbar-track { background: #111419; border-radius: 4px; }
.vitrina-scroll::-webkit-scrollbar-thumb { background-color: #2d3748; border-radius: 4px; }
.vitrina-scroll::-webkit-scrollbar-thumb:hover { background-color: var(--bf-neon); }

/* UTILIDADES DE TEXTO HUD */
.label-visible {
    color: #FFFFFF !important; font-weight: 500; font-size: 0.85rem; letter-spacing: 2px;
    margin-bottom: 8px; display: block; border-left: 3px solid var(--bf-neon); padding-left: 10px;
}
.label-stats { color: #aaaaaa; font-size: 0.7rem; font-weight: 400; margin-bottom: 0; }
.text-neon { color: var(--bf-neon) !important; }
.val-neon { color: var(--bf-neon); font-weight: 800; text-shadow: 0 0 8px rgba(255, 180, 0, 0.3); }

/* FOOTER */
.footer-bf { background-color: #000; border-top: 1px solid #222; padding-top: 3rem; padding-bottom: 1.5rem; flex-shrink: 0; }
.hud-line-container { display: flex; align-items: center; }
.hud-line-active { width: 20px; height: 3px; background-color: var(--bf-neon); margin-right: 5px; }
.hud-line-dim { width: 100%; height: 1px; background-color: #333; }
.footer-link-bf { text-decoration: none; color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; transition: 0.3s; }
.footer-link-bf:hover { color: var(--bf-neon) !important; text-shadow: 0 0 8px var(--bf-neon); }
.footer-terminal-text { color: rgba(255, 255, 255, 0.6) !important; font-size: 0.75rem; text-transform: uppercase; font-weight: 300; }

/* RESPONSIVE MÓVIL */
@media (min-width: 992px) { .navbar-nav { flex-direction: row !important; } }
@media (max-width: 991.98px) {
    body { font-size: 14px; }
    .dropdown-menu-bf { background-color: transparent; border: none; box-shadow: none; padding-left: 15px; border-left: none; }
    .btn-bf { width: 100%; text-align: center; clip-path: none !important; margin-bottom: 10px; }
}

/* =========================================================
   INTERFAZ DE SINCRONIZACIÓN (SYNC ENGINE / TELEMETRÍA)
   ========================================================= */

.terminal-console {
    background-color: #000;
    border: 1px solid var(--bf-border);
    font-family: 'Courier New', monospace;
    color: var(--bf-neon);
    padding: 20px;
    height: 350px;
    overflow-y: auto;
    position: relative;
    font-size: 0.85rem;
    text-transform: none;
    box-shadow: inset 0 0 20px rgba(0,0,0,1);
    margin-bottom: 20px;
}

.terminal-console::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(255, 180, 0, 0.03) 50%, transparent 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

.progress-hud-bar {
    background-color: var(--bf-neon);
    width: 0%;
    height: 100%;
    box-shadow: 0 0 15px var(--bf-neon);
    transition: width 0.4s ease;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--bf-neon);
    margin-right: 10px;
    animation: blink-neon 1s infinite;
}

@keyframes blink-neon {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.3; filter: brightness(0.5); }
}

.card-weapon-pro {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #1a1a1a;
    border-left: 4px solid var(--bf-neon);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.meta-score-box {
    background: var(--bf-neon);
    color: #000;
    padding: 10px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 80% 100%, 0 100%);
}

.badge-new-hud {
    background-color: #FF4E00; /* Ajustado a naranja fuego para armonizar con el ámbar */
    color: white;
    font-size: 0.6rem;
    padding: 2px 8px;
    font-weight: 800;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    box-shadow: 0 0 15px rgba(255, 78, 0, 0.5);
    animation: pulse-new 2s infinite;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}
    /* RANKING Estilo para que se note que la cabecera se puede clickear - SEASON 3 */ 
    .reto-header-toggle {
        cursor: pointer;
        transition: all 0.2s ease-in-out;
        padding: 10px;
        margin: -10px;
        border-radius: 6px;
    }
    .reto-header-toggle:hover {
        /* Se usa un 5% de opacidad del ámbar para un efecto de resaltado táctico */
        background-color: rgba(255, 180, 0, 0.05);
        color: var(--bf-neon);
    }
        /* RETOS RESETEO DEL ACCORDION DE BOOTSTRAP PARA MODO OSCURO - SEASON 3 */
    .accordion-bf .accordion-item {
        background-color: transparent;
        border: none;
        margin-bottom: 1rem;
    }
    .accordion-bf .accordion-button {
        background-color: #111419;
        color: #fff;
        border: 1px solid #1f2329;
        border-radius: 8px !important;
        box-shadow: none !important;
        padding: 1rem 1.5rem;
        transition: all 0.2s ease;
    }
    .accordion-bf .accordion-button:not(.collapsed) {
        background-color: #1a1e24;
        color: var(--bf-neon); /* Texto en ámbar cuando está abierto */
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-bottom: 1px solid var(--bf-neon); /* Borde ámbar sutil */
    }
    .accordion-bf .accordion-button::after {
        filter: invert(1) grayscale(100%) brightness(200%);
    }
    .accordion-bf .accordion-body {
        background-color: rgba(17, 20, 25, 0.95);
        border: 1px solid #1f2329;
        border-top: none;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        padding: 1.5rem;
    }
    
    /* COLORES DE TOP 3 - ACTUALIZADOS */
    .rank-1 { border-left: 4px solid var(--bf-neon) !important; } /* Oro/Ámbar Season 3 */
    .rank-2 { border-left: 4px solid #adb5bd !important; } /* Plata */
    .rank-3 { border-left: 4px solid #cd7f32 !important; } /* Bronce */
    .rank-std { border-left: 4px solid #3d3326 !important; } /* Gris cálido acorde a la paleta */