/* =========================================================================
   DESKTOP MENU - CLEAN FINAL VERSION
   ========================================================================= */

.desktop-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    width: 120px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .desktop-top-nav { display: none !important; }
}

/* SETAS - BASE */
.desktop-scroll-indicator {
    position: absolute;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-size: 28px;
    color: #fff;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    animation: slideInSidebar 1.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
    pointer-events: none;
}

.desktop-scroll-up { top: 5vh; }
.desktop-scroll-down { bottom: 5vh; }

.desktop-scroll-indicator.visible {
    pointer-events: auto;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.desktop-scroll-indicator i {
    animation: bounceArrow 2s infinite;
}

/* CONTAINER */
.desktop-nav-container {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 80px;
    height: 80vh;
    padding: 20px 0;
    gap: 15px;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
    overflow-y: auto; /* Permite scroll com mouse */
    overflow-x: hidden;
    overscroll-behavior: contain; /* IMPEDE que o scroll passe para o body */
    scrollbar-width: none; /* Firefox */
    animation: slideInSidebar 1.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Ocultar barra de rolagem Webkit */
.desktop-nav-container::-webkit-scrollbar {
    display: none;
}

.desktop-divider {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 5px 0;
    flex-shrink: 0;
}

.desktop-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInButtons 1.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.desktop-nav-item:nth-child(1) { animation-delay: 0.2s; }
.desktop-nav-item:nth-child(2) { animation-delay: 0.25s; }
.desktop-nav-item:nth-child(3) { animation-delay: 0.3s; }
.desktop-nav-item:nth-child(4) { animation-delay: 0.35s; }
.desktop-nav-item:nth-child(5) { animation-delay: 0.4s; }
.desktop-nav-item:nth-child(6) { animation-delay: 0.45s; }
.desktop-nav-item:nth-child(7) { animation-delay: 0.5s; }
.desktop-nav-item:nth-child(8) { animation-delay: 0.55s; }
.desktop-nav-item:nth-child(9) { animation-delay: 0.6s; }
.desktop-nav-item:nth-child(10) { animation-delay: 0.65s; }
.desktop-nav-item:nth-child(11) { animation-delay: 0.7s; }
.desktop-nav-item:nth-child(12) { animation-delay: 0.75s; }
.desktop-nav-item:nth-child(13) { animation-delay: 0.8s; }
.desktop-nav-item:nth-child(14) { animation-delay: 0.85s; }

.desktop-nav-item:hover, .desktop-nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.desktop-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.desktop-nav-item:hover i { transform: scale(1.1); text-shadow: 0 0 10px rgba(255,255,255,0.8); }

.desktop-nav-item span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.desktop-nav-item.destaque-share span {
    font-size: 8px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* KEYFRAMES */
@keyframes slideInSidebar {
    0% { transform: translateX(-250px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInButtons {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* OVERRIDE FINAL - Garantir que setas sem .visible fiquem SEMPRE ocultas */
.desktop-scroll-indicator:not(.visible) {
    opacity: 0 !important;
    pointer-events: none !important;
}
