﻿:root {
    --bg-dark-header: #1f1f1f; /* Fondo de la barra superior (Original: #0b0c10, Moderno: #1f1f1f) */
    --bg-sidebar: #2a2a2a; /* Fondo del sidebar (Original: #1f2833, Moderno: #2a2a2a) */
    --text-light: #ffffff;
    --text-muted: #a0a0a0; /* Texto secundario */
    /* --accent-primary: #10b981; /* Verde Esmeralda (Reemplaza el #45a29e) */
    --border-subtle: #374151; /* Borde oscuro sutil */

    --bg-dark: #121212;
    --bg-card: #1f1f1f;
    /* --accent-emerald: #10b981; /* Verde esmeralda */
    --accent-yellow: #f59e0b; /* Amarillo dorado */
    --accent-gold: #AC895F; /*rgba(172,137,95, 0.9);*/ /* Amarillo dorado */
    --accent-gold-hover: #8f6942; /* Amarillo dorado hover */
    --accent-red: #ef4444;
    --border-dark: #374151;
}
/* ============================================================= */
/* 🔝 HEADER Y NAVEGACIÓN PRINCIPAL                              */
/* ============================================================= */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-dark-header);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    height: 60px;
    box-sizing: border-box;
}

.dash-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dash-logo {
    height: 36px;
    width: auto;
}

.dash-header-logo-title {
    color: var(--accent-gold);
    display: inline-block;
    font-variant: small-caps;
    font-weight: bold;
    font-size: 1.5em;
}


/* Contenedor de enlaces en el dash-header */
.main-nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%; /* O la altura del dash-header */
    align-items: center;
    margin-left: 30px;
}

/* Contenedor de cada elemento principal (Colecciones, Batallas, Tienda) */
.nav-dropdown-menu {
    position: relative; /* Clave para posicionar el submenú */
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px; /* Espacio entre los elementos principales */
    list-style: none;
    margin: 0;
}

    /* Estilo del enlace principal (dentro del <li>) */
    .nav-dropdown-menu > li > a {
        color: var(--text-muted);
        /*padding: 18px 0;*/
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s, border-bottom 0.2s;
        height: 100%;
        display: flex;
        align-items: center;
    }

        /* Enlace activo (por estado o por hover) */
        .nav-dropdown-menu > li > a:hover,
        .nav-dropdown-menu.active > li > a {
            color: var(--accent-gold);
            border-bottom: 3px solid var(--accent-gold);
        }


/* ============================================================= */
/* ⬇️ DESPLEGABLES (DROPDOWN-CONTENT)                           */
/* ============================================================= */

.dropdown-content {
    /* Posicionamiento y estilos del submenú */
    position: absolute;
    top: 100%; /* Debajo del header (60px) */
    left: 0;
    /* Usar colores y bordes del antiguo sidebar */
    background: var(--bg-sidebar);
    border: 1px solid var(--border-subtle);
    border-top: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    padding: 5px 0;
    z-index: 2000;
    list-style: none;
    margin: 0;
    margin-top: -1px;
    /* Ocultar por defecto */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    /* Mostrar al hacer hover (usando la clase 'open' de AngularJS para el hover/touch) */
    .dropdown-content.open {
        display: block;
        opacity: 1;
    }

    /* Estilos de los enlaces internos del submenú */
    .dropdown-content li a {
        color: var(--text-muted);
        padding: 10px 15px;
        text-decoration: none;
        display: block;
        transition: background 0.2s, color 0.2s;
    }

        .dropdown-content li a:hover {
            background: #333;
            color: var(--text-light);
        }

/* === HEADER RIGHT === */
.dash-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}


/* === USER AREA DROPDOWN === */
.user-area {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    /*Estilo del botón de usuario inspirado en el nuevo diseño */
    padding: 5px 10px;
    border-radius: 8px;
    background-color: #2a2a2a;
    transition: background-color 0.2s;
}

    .user-area:hover {
        background-color: #373737;
    }

    .user-area .avatar-sm {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
        border: 2px solid var(--accent-gold);
        Borde de avatar con acento
    }

    .user-area .top-dropdown {
        position: absolute;
        right: 0;
        top: 100%; /*Justo debajo del user-area */
        /* Usar colores y bordes del nuevo diseño */
        background: var(--bg-sidebar);
        border: 1px solid var(--border-subtle);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        display: flex;
        flex-direction: column;
        min-width: 180px;
        padding: 5px 0;
        z-index: 1000;
    }

        .user-area .top-dropdown a {
            color: var(--text-muted);
            padding: 10px 15px; /*Ajuste de padding */
            text-decoration: none;
            display: block;
            transition: background 0.2s ease, color 0.2s;
        }

            .user-area .top-dropdown a:hover {
                /*Fondo de hover más oscuro y sutil */
                background: #373737;
                color: var(--text-light);
            }

/* ============================================================= */
/* 📱 RESPONSIVE: Ocultar enlaces principales en móvil               */
/* (Aquí tendrás que re-introducir un menú hamburguesa si quieres  */
/* que estos enlaces sean accesibles en pantallas pequeñas)       */
/* ============================================================= */
@media (max-width: 992px) {
    .main-nav-links {
        display: none; /* Oculta la barra de navegación horizontal en móvil */
    }

    /* Nota: Si ocultas el menú, tendrás que crear un menú móvil con el botón toggle */
}
