/* ==========================================================================
   Super Nav — Desktop Sidebar
   ========================================================================== */

.gniyes-snav-wrapper {
    display: block;
}

.gniyes-snav-sidebar {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.gniyes-snav-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 0 8px;
}

.gniyes-snav-branding-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00205b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.gniyes-snav-branding-icon .material-symbols-outlined {
    font-size: 20px;
}

.gniyes-snav-branding-text {
    display: flex;
    flex-direction: column;
}

.gniyes-snav-branding-title {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #00205b;
    line-height: 1.2;
}

.gniyes-snav-branding-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gniyes-snav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gniyes-snav-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gniyes-snav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    color: #475569;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: background-color 0.15s ease, color 0.15s ease;
    border-left: 4px solid transparent;
}

.gniyes-snav-link:hover {
    text-decoration: none !important;
}

.gniyes-snav-item:not(.gniyes-snav-item--active) .gniyes-snav-link:hover {
    background-color: #f1f5f9;
    color: #00205b;
}

.gniyes-snav-item:not(.gniyes-snav-item--active) .gniyes-snav-link:hover .gniyes-snav-icon {
    color: #00205b;
}

.gniyes-snav-item--active .gniyes-snav-link {
    background-color: rgba(0, 32, 91, 0.1);
    color: #00205b;
    font-weight: 700;
    border-left-color: #d4af37;
}

.gniyes-snav-item--active .gniyes-snav-icon {
    color: #00205b;
}

.gniyes-snav-icon {
    font-size: 20px;
    color: #94a3b8;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.gniyes-snav-label {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gniyes-snav-placeholder {
    font-family: 'Lato', sans-serif;
}

/* Hide mobile nav on desktop */
.gniyes-snav-mobile {
    display: none;
}

/* ==========================================================================
   Super Nav — Mobile: Horizontal sidebar-style bar
   ========================================================================== */

@media (max-width: 1023px) {
    .gniyes-snav-sidebar {
        display: none;
    }

    .gniyes-snav-mobile {
        display: block;
        background: #f8f9fa;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        overflow: hidden;
        position: relative;
    }

    .gniyes-snav-mobile .gniyes-snav-mobile-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gniyes-snav-mobile .gniyes-snav-mobile-menu::-webkit-scrollbar {
        display: none;
    }

    .gniyes-snav-mobile .gniyes-snav-item {
        flex-shrink: 0;
        margin: 0;
        padding: 0;
    }

    .gniyes-snav-mobile .gniyes-snav-link {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border-radius: 8px;
        border-left: none;
        color: #475569;
        font-family: 'Lato', sans-serif;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        text-decoration: none !important;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .gniyes-snav-mobile .gniyes-snav-item:not(.gniyes-snav-item--active) .gniyes-snav-link:hover {
        background-color: #f1f5f9;
        color: #00205b;
    }

    .gniyes-snav-mobile .gniyes-snav-item:not(.gniyes-snav-item--active) .gniyes-snav-link:hover .gniyes-snav-icon {
        color: #00205b;
    }

    .gniyes-snav-mobile .gniyes-snav-item--active .gniyes-snav-link {
        background-color: rgba(0, 32, 91, 0.1);
        color: #00205b;
        font-weight: 700;
    }

    .gniyes-snav-mobile .gniyes-snav-item--active .gniyes-snav-icon {
        color: #00205b;
    }

    .gniyes-snav-mobile .gniyes-snav-icon {
        font-size: 20px;
        color: #94a3b8;
        flex-shrink: 0;
    }

    /* Scroll arrow buttons */
    .gniyes-snav-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
        color: #475569;
        transition: opacity 0.2s ease, background-color 0.15s ease;
        padding: 0;
    }

    .gniyes-snav-arrow:hover {
        background: #f1f5f9;
        color: #00205b;
    }

    .gniyes-snav-arrow--left {
        left: 4px;
    }

    .gniyes-snav-arrow--right {
        right: 4px;
    }

    .gniyes-snav-arrow--hidden {
        opacity: 0;
        pointer-events: none;
    }

    .gniyes-snav-arrow .material-symbols-outlined {
        font-size: 18px;
    }

    /* Fade edges for scroll indication */
    .gniyes-snav-mobile::before,
    .gniyes-snav-mobile::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40px;
        pointer-events: none;
        z-index: 1;
        transition: opacity 0.2s ease;
    }

    .gniyes-snav-mobile::before {
        left: 0;
        background: linear-gradient(to left, transparent, #f8f9fa);
        border-radius: 12px 0 0 12px;
        opacity: 0;
    }

    .gniyes-snav-mobile.gniyes-snav-scrolled-start::before {
        opacity: 1;
    }

    .gniyes-snav-mobile::after {
        right: 0;
        background: linear-gradient(to right, transparent, #f8f9fa);
        border-radius: 0 12px 12px 0;
    }

    .gniyes-snav-mobile.gniyes-snav-scrolled-end::after {
        opacity: 0;
    }

    /* Nudge animation on load */
    @keyframes gniyes-snav-nudge {
        0% { transform: translateX(0); }
        30% { transform: translateX(-20px); }
        60% { transform: translateX(0); }
        100% { transform: translateX(0); }
    }

    .gniyes-snav-mobile-menu--nudge {
        animation: gniyes-snav-nudge 0.8s ease-out;
    }
}
