/* ============================================
   One Page Navigation Widget - Base Styles
   ============================================ */

.unlockafe-one-page-nav {
    position: relative;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.unlockafe-one-page-nav * {
    box-sizing: border-box;
}

/* ============================================
   Sticky Navigation
   ============================================ */

.unlockafe-one-page-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.3s ease;
    width: 100%;
}

.unlockafe-one-page-nav.sticky.nav-bottom {
    top: auto;
    bottom: 0;
}

.unlockafe-one-page-nav.sticky.nav-left {
    left: 0;
    top: 0;
    bottom: 0;
    right: auto;
    width: auto;
    height: 100vh;
    max-width: 300px;
}

.unlockafe-one-page-nav.sticky.nav-right {
    right: 0;
    top: 0;
    bottom: 0;
    left: auto;
    width: auto;
    height: 100vh;
    max-width: 300px;
}

/* ============================================
   Navigation Menu Base
   ============================================ */

.unlockafe-one-page-nav .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    width: 100%;
}

/* ============================================
   Horizontal Menu Style
   ============================================ */

.unlockafe-one-page-nav .nav-menu.horizontal {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.unlockafe-one-page-nav .nav-menu.horizontal .nav-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.unlockafe-one-page-nav .nav-menu.horizontal .nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
}

/* ============================================
   Vertical Menu Style
   ============================================ */

.unlockafe-one-page-nav .nav-menu.vertical {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
}

.unlockafe-one-page-nav .nav-menu.vertical .nav-item {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.unlockafe-one-page-nav .nav-menu.vertical .nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
    width: 100%;
    padding: 0.875rem 1.25rem;
    text-align: left;
}

/* ============================================
   Sidebar Menu Style
   ============================================ */

.unlockafe-one-page-nav .nav-menu.sidebar {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.5rem;
}

.unlockafe-one-page-nav .nav-menu.sidebar .nav-item {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.unlockafe-one-page-nav .nav-menu.sidebar .nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unlockafe-one-page-nav .nav-menu.sidebar .nav-item:last-child .nav-link {
    margin-bottom: 0;
}

.unlockafe-one-page-nav .nav-menu.sidebar .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.unlockafe-one-page-nav .nav-menu.sidebar .nav-link.active {
    background-color: rgba(102, 126, 234, 0.1);
    font-weight: 600;
}

/* ============================================
   Dots Navigation Style
   ============================================ */

.unlockafe-one-page-nav .nav-menu.dots {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.unlockafe-one-page-nav .nav-menu.dots .nav-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.unlockafe-one-page-nav .nav-menu.dots .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0;
    flex-shrink: 0;
}

.unlockafe-one-page-nav .nav-menu.dots .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.unlockafe-one-page-nav .nav-menu.dots .nav-link.active {
    background-color: #667eea;
    transform: scale(1.2);
}

.unlockafe-one-page-nav .nav-menu.dots .nav-link.active .nav-icon {
    color: #ffffff;
}

.unlockafe-one-page-nav .nav-menu.dots .nav-label {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    max-width: 80px;
}

/* ============================================
   Navigation Icon
   ============================================ */

.unlockafe-one-page-nav .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
}

.unlockafe-one-page-nav .nav-menu.dots .nav-icon {
    margin-right: 0;
    margin-bottom: 0;
}

.unlockafe-one-page-nav .nav-menu.vertical .nav-icon,
.unlockafe-one-page-nav .nav-menu.sidebar .nav-icon {
    margin-right: 0.75rem;
}

.unlockafe-one-page-nav .nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.unlockafe-one-page-nav .nav-icon i,
.unlockafe-one-page-nav .nav-icon svg {
    width: 1em;
    height: 1em;
    font-size: 1.2em;
}

.unlockafe-one-page-nav .nav-icon img {
    max-width: 20px;
    max-height: 20px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ============================================
   Navigation Label
   ============================================ */

.unlockafe-one-page-nav .nav-label {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.4;
}

.unlockafe-one-page-nav .nav-menu.vertical .nav-label,
.unlockafe-one-page-nav .nav-menu.sidebar .nav-label {
    flex: 1;
    min-width: 0;
}

/* ============================================
   Active Indicator Styles
   ============================================ */

/* Underline Indicator - Horizontal */
.unlockafe-one-page-nav .nav-menu.horizontal .nav-link[data-indicator-type="underline"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #667eea;
    transition: width 0.3s ease;
}

.unlockafe-one-page-nav .nav-menu.horizontal .nav-link.active[data-indicator-type="underline"]::after {
    width: 100%;
}

/* Underline Indicator - Vertical/Sidebar */
.unlockafe-one-page-nav .nav-menu.vertical .nav-link[data-indicator-type="underline"]::after,
.unlockafe-one-page-nav .nav-menu.sidebar .nav-link[data-indicator-type="underline"]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    height: 0;
    background-color: #667eea;
    transition: height 0.3s ease;
}

.unlockafe-one-page-nav .nav-menu.vertical .nav-link.active[data-indicator-type="underline"]::after,
.unlockafe-one-page-nav .nav-menu.sidebar .nav-link.active[data-indicator-type="underline"]::after {
    height: 100%;
}

.unlockafe-one-page-nav .nav-menu.dots .nav-link[data-indicator-type="underline"]::after {
    display: none;
}

/* Background Indicator */
.unlockafe-one-page-nav .nav-link[data-indicator-type="background"] {
    border-radius: 6px;
}

.unlockafe-one-page-nav .nav-link.active[data-indicator-type="background"] {
    background-color: rgba(102, 126, 234, 0.1);
}

/* Dot Indicator */
.unlockafe-one-page-nav .indicator-dot {
    display: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #667eea;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.unlockafe-one-page-nav .nav-link.active .indicator-dot {
    display: inline-block;
}

.unlockafe-one-page-nav .nav-menu.dots .indicator-dot {
    position: absolute;
    margin: 0;
    width: 12px;
    height: 12px;
    top: -4px;
    right: -4px;
}

/* Border Indicator */
.unlockafe-one-page-nav .nav-link[data-indicator-type="border"] {
    border: 2px solid transparent;
    border-radius: 6px;
}

.unlockafe-one-page-nav .nav-link.active[data-indicator-type="border"] {
    border-color: #667eea;
}

/* ============================================
   Active State
   ============================================ */

.unlockafe-one-page-nav .nav-link {
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.unlockafe-one-page-nav .nav-link.active {
    font-weight: 600;
}

/* ============================================
   Smooth Scroll Behavior
   ============================================ */

html.smooth-scroll-enabled {
    scroll-behavior: smooth;
}

/* ============================================
   Sticky Navigation Animation
   ============================================ */

.unlockafe-one-page-nav.sticky {
    animation: slideDown 0.3s ease;
}

.unlockafe-one-page-nav.sticky.nav-bottom {
    animation: slideUp 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   Responsive Design - Large Tablet (≤1024px)
   ============================================ */

@media (max-width: 1024px) {
    .unlockafe-one-page-nav.sticky.nav-left,
    .unlockafe-one-page-nav.sticky.nav-right {
        max-width: 250px;
    }

    .unlockafe-one-page-nav .nav-menu.horizontal .nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.95rem;
    }

    .unlockafe-one-page-nav .nav-menu.vertical .nav-link,
    .unlockafe-one-page-nav .nav-menu.sidebar .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .unlockafe-one-page-nav .nav-menu.dots .nav-link {
        width: 45px;
        height: 45px;
    }
}

/* ============================================
   Responsive Design - Tablet (≤768px)
   ============================================ */

@media (max-width: 768px) {
    .unlockafe-one-page-nav {
        width: 100% !important;
    }

    .unlockafe-one-page-nav.sticky {
        position: fixed !important;
        width: 100% !important;
    }

    .unlockafe-one-page-nav.sticky.nav-left,
    .unlockafe-one-page-nav.sticky.nav-right {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        position: fixed !important;
        top: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        right: 0 !important;
    }

    .unlockafe-one-page-nav.sticky.nav-bottom {
        top: auto !important;
        bottom: 0 !important;
    }

    .unlockafe-one-page-nav .nav-menu {
        width: 100%;
    }

    /* Horizontal Menu - Tablet */
    .unlockafe-one-page-nav .nav-menu.horizontal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .unlockafe-one-page-nav .nav-menu.horizontal .nav-item {
        margin: 0;
    }

    .unlockafe-one-page-nav .nav-menu.horizontal .nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }

    /* Vertical Menu - Tablet */
    .unlockafe-one-page-nav .nav-menu.vertical {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }

    .unlockafe-one-page-nav .nav-menu.vertical .nav-item {
        width: auto;
        flex: 0 0 auto;
    }

    .unlockafe-one-page-nav .nav-menu.vertical .nav-link {
        width: auto;
        padding: 0.625rem 1rem;
        justify-content: center;
        text-align: center;
    }

    .unlockafe-one-page-nav .nav-menu.vertical .nav-link[data-indicator-type="underline"]::after {
        left: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        height: 3px;
    }

    .unlockafe-one-page-nav .nav-menu.vertical .nav-link.active[data-indicator-type="underline"]::after {
        height: 3px;
        width: 100%;
    }

    /* Sidebar Menu - Tablet */
    .unlockafe-one-page-nav .nav-menu.sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .unlockafe-one-page-nav .nav-menu.sidebar .nav-item {
        width: auto;
        flex: 0 0 auto;
    }

    .unlockafe-one-page-nav .nav-menu.sidebar .nav-link {
        width: auto;
        padding: 0.625rem 1rem;
        margin-bottom: 0;
        justify-content: center;
        text-align: center;
        min-width: auto;
    }

    .unlockafe-one-page-nav .nav-menu.sidebar .nav-link[data-indicator-type="underline"]::after {
        left: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        height: 3px;
    }

    .unlockafe-one-page-nav .nav-menu.sidebar .nav-link.active[data-indicator-type="underline"]::after {
        height: 3px;
        width: 100%;
    }

    /* Dots Menu - Tablet */
    .unlockafe-one-page-nav .nav-menu.dots {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .unlockafe-one-page-nav .nav-menu.dots .nav-link {
        width: 45px;
        height: 45px;
    }

    .unlockafe-one-page-nav .nav-menu.dots .nav-label {
        display: none;
    }

    /* Icon adjustments */
    .unlockafe-one-page-nav .nav-icon {
        margin-right: 0.375rem;
    }

    .unlockafe-one-page-nav .nav-menu.vertical .nav-icon,
    .unlockafe-one-page-nav .nav-menu.sidebar .nav-icon {
        margin-right: 0.5rem;
    }
}

/* ============================================
   Responsive Design - Mobile (≤480px)
   ============================================ */

@media (max-width: 480px) {
    .unlockafe-one-page-nav {
        padding: 0.5rem !important;
    }

    /* Horizontal Menu - Mobile */
    .unlockafe-one-page-nav .nav-menu.horizontal {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    .unlockafe-one-page-nav .nav-menu.horizontal .nav-item {
        margin: 0;
    }

    .unlockafe-one-page-nav .nav-menu.horizontal .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Vertical Menu - Mobile */
    .unlockafe-one-page-nav .nav-menu.vertical {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    .unlockafe-one-page-nav .nav-menu.vertical .nav-item {
        width: auto;
    }

    .unlockafe-one-page-nav .nav-menu.vertical .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Sidebar Menu - Mobile */
    .unlockafe-one-page-nav .nav-menu.sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    .unlockafe-one-page-nav .nav-menu.sidebar .nav-item {
        width: auto;
    }

    .unlockafe-one-page-nav .nav-menu.sidebar .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    /* Dots Menu - Mobile */
    .unlockafe-one-page-nav .nav-menu.dots {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }

    .unlockafe-one-page-nav .nav-menu.dots .nav-link {
        width: 40px;
        height: 40px;
    }

    /* Icon adjustments - Mobile */
    .unlockafe-one-page-nav .nav-icon {
        margin-right: 0.25rem;
        font-size: 1rem;
    }

    .unlockafe-one-page-nav .nav-icon img {
        max-width: 16px;
        max-height: 16px;
    }

    .unlockafe-one-page-nav .nav-menu.vertical .nav-icon,
    .unlockafe-one-page-nav .nav-menu.sidebar .nav-icon {
        margin-right: 0.375rem;
    }
}

/* ============================================
   Extra Small Mobile (≤360px)
   ============================================ */

@media (max-width: 360px) {
    .unlockafe-one-page-nav .nav-menu.horizontal .nav-link,
    .unlockafe-one-page-nav .nav-menu.vertical .nav-link,
    .unlockafe-one-page-nav .nav-menu.sidebar .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .unlockafe-one-page-nav .nav-menu.dots .nav-link {
        width: 35px;
        height: 35px;
    }

    .unlockafe-one-page-nav .nav-icon {
        font-size: 0.9rem;
    }

    .unlockafe-one-page-nav .nav-icon img {
        max-width: 14px;
        max-height: 14px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .unlockafe-one-page-nav {
        display: none;
    }
}
