/* Menu Proposals for TCS__WILI */

/* 1. SIDEBAR HUD STYLE */
.menu-sidebar-hud {
    position: fixed;
    left: 0; /* Desplegado por defecto */
    top: 0;
    width: 300px; /* Un poco más ancho */
    height: 100vh;
    background: rgba(12, 8, 32, 0.98);
    border-right: 3px solid var(--accent);
    backdrop-filter: blur(15px);
    z-index: 2000;
    transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    padding: 80px 25px 25px 25px; /* Más espacio arriba por el botón */
    box-shadow: 15px 0 35px rgba(0, 0, 0, 0.7);
}

.menu-sidebar-hud.active {
    left: 0;
}

.hud-title {
    font-family: 'Audiowide', sans-serif;
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 45px; /* Más espacio con los items */
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 2px solid var(--line);
    padding-bottom: 15px;
    text-shadow: 0 0 10px var(--accent);
}

.hud-nav-item {
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 0px solid var(--accent);
}

.hud-nav-item:hover {
    background: rgba(255, 79, 192, 0.15);
    border-left: 5px solid var(--accent);
    padding-left: 20px;
    color: var(--accent);
}

/* Sidebar Submenus */
.hud-submenu {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-out;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
}

.hud-submenu.active {
    max-height: 500px; 
    margin-bottom: 10px;
    border-left: 1px solid rgba(255, 79, 192, 0.3);
}

.hud-sub-item {
    padding: 10px 15px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Space Grotesk', sans-serif;
    transition: color 0.3s;
}

.hud-sub-item:hover {
    color: var(--accent);
}

.hud-nav-item.has-submenu::after {
    content: '\f078'; /* Chevron down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.hud-nav-item.has-submenu.open::after {
    transform: rotate(180deg);
}

.hud-toggle {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 2001;
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent);
    color: #fff;
    font-size: 1.2rem;
}

/* Search Base Style */
.menu-search-box {
    position: relative;
    margin: 15px 0;
}

.menu-search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 79, 192, 0.4);
    border-radius: 6px;
    padding: 10px 15px 10px 40px;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    outline: none;
    transition: all 0.3s;
}

.menu-search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 79, 192, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.menu-search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Specific Search Placements */
.top-search-wrap {
    margin-left: auto; /* Push to the right */
    margin-right: 30px;
    width: 200px;
}

/* Helper for search filtering */
.menu-item-hidden {
    display: none !important;
}

.menu-item-dimmed {
    opacity: 0.2;
    pointer-events: none;
}

/* 2. TOP CONSOLE STYLE */
.menu-top-console {
    position: sticky;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(12, 8, 32, 0.98) 0%, rgba(20, 16, 49, 0.9) 100%);
    border-bottom: 2px solid var(--accent);
    display: none; /* Desactivado */
    align-items: center; 
    justify-content: center; /* Vuelto a centrar */
    gap: 15px; /* Un poco más de espacio entre items */
    z-index: 1000;
    backdrop-filter: blur(12px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.console-item-wrap {
    position: relative;
    display: inline-block;
}

.console-item {
    font-family: 'Audiowide', sans-serif;
    color: #fff;
    text-decoration: none;
    padding: 20px 15px;
    display: block;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.console-item:hover, .console-item-wrap:hover > .console-item {
    color: var(--accent);
    background: rgba(255, 79, 192, 0.1);
}

/* Dropdown System */
.console-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(12, 8, 32, 0.98);
    border: 1px solid var(--accent);
    border-top: none;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    border-radius: 0 0 8px 8px;
}

.console-item-wrap:hover .console-dropdown {
    display: flex;
}

.dropdown-link {
    padding: 12px 20px;
    color: #bbb;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 0 solid var(--accent);
}

.dropdown-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent);
    padding-left: 25px;
}

/* 3. RADIAL ACTION MENU */
.menu-radial-container {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 3000;
    display: none; /* Controlled by JS */
}

.radial-trigger {
    width: 70px;
    height: 70px;
    background: #ffb41f; /* Neon Gold */
    border-radius: 50%;
    border: 4px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 180, 31, 0.5);
    z-index: 3001;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.radial-trigger:hover {
    transform: scale(1.1) rotate(90deg);
}

.radial-items {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s;
    transform: scale(0.5);
    transform-origin: bottom left;
}

.menu-radial-container.active .radial-items {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.radial-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
}

.radial-item:hover {
    background: var(--accent);
    transform: scale(1.2);
}

/* Selector Flotante para el Demo */
.proposal-selector {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    border: 1px solid #fff;
    padding: 10px;
    border-radius: 10px;
    z-index: 9999;
    color: #fff;
    font-family: sans-serif;
    font-size: 12px;
}

.proposal-selector button {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    cursor: pointer;
    background: #333;
    color: #fff;
    border: none;
    padding: 5px;
}
