/* 
    Morpheus Tech Navigation Dock System
    Tactical, High-Fidelity Floating UI
    WIDE FIX: 90% Width and Flex-Grow items
*/

.dock-wrapper {
    position: fixed;
    bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 100; opacity: 0;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
    animation: dock-pop 0.8s cubic-bezier(0.16,1,0.3,1) 0.6s forwards;
}

@keyframes dock-pop {
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.dock-bar {
    display: flex; align-items: stretch;
    background: var(--gold);
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
    padding: 0;
    border: 1px solid rgba(255,215,0,0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.dock-item {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer;
    padding: 14px 24px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    background: transparent;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
}

.dock-icon {
    display: flex; align-items: center; justify-content: center;
}

.dock-icon .material-symbols-outlined {
    font-size: 18px; color: #111;
    font-variation-settings: 'FILL' 0, 'wght' 600;
}

.dock-icon img {
    width: 18px; height: 18px;
    object-fit: contain; filter: brightness(0);
}

.dock-label {
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #111; margin-top: 2px;
}

/* TACTICAL CUTOUT (CLIP-PATH) FOR HOVER AND ACTIVE STATES */
.dock-item:hover:not(.active),
.dock-item.active {
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.dock-item:hover:not(.active) {
    background: rgba(0, 0, 0, 0.06);
}

.dock-item.active {
    background: #151515;
}

.dock-item.active .dock-icon .material-symbols-outlined {
    color: var(--gold); font-variation-settings: 'FILL' 1;
}

.dock-item.active .dock-icon img {
    filter: invert(1);
}

.dock-item.active .dock-label {
    color: var(--gold);
}

.dock-tooltip, .dock-divider { display: none; }

/* ── WIDE TACTICAL MOBILE DOCK (GLOBAL) ── */
@media (max-width: 768px) {
    .dock-wrapper {
        position: fixed; bottom: 20px; left: 50%;
        transform: translateX(-50%) translateY(0);
        width: 90% !important; 
        max-width: 500px;
        z-index: 1000;
        opacity: 1; animation: none;
    }

    .dock-bar {
        background: var(--gold);
        justify-content: stretch; /* Stretch items to fill space */
        box-shadow: 0 20px 40px rgba(0,0,0,0.6);
        border: 1px solid rgba(255,215,0,0.5);
    }

    .dock-item {
        flex: 1 !important; /* Expand to fill width */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 14px 10px;
        transition: background 0.2s;
    }

    .dock-label {
        display: block;
        font-size: 8.5px;
        font-weight: 800;
        color: #111;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .dock-icon .material-symbols-outlined {
        font-size: 20px;
        color: #111;
    }

    .dock-icon img {
        width: 20px;
        height: 20px;
        filter: brightness(0);
    }

    /* Standardized cutouts for mobile active state */
    .dock-item:hover:not(.active),
    .dock-item.active {
        clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    }
}
