/* ========================================
   ATCSOL - Navigation Stylesheet
   ======================================== */

.page-navigation {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 50px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Hamburger Menu - Hidden on desktop */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 8px;
}

.page-navigation .nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.page-navigation .nav-link:hover {
    background: rgba(73, 80, 188, 0.3);
    transform: translateY(-2px);
}

.page-navigation .nav-link:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 20px;
    margin-right: 8px;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-current {
    background: none;
    border: none;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-current:hover {
    background: rgba(73, 80, 188, 0.3);
}

.lang-current i {
    font-size: 14px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 8px;
    margin-top: 8px;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-btn {
    display: block;
    padding: 10px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 4px;
}

.lang-btn:hover {
    background: rgba(73, 80, 188, 0.3);
}

.lang-btn.active {
    background: rgba(73, 80, 188, 0.5);
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-navigation {
        top: 80px;
        padding: 12px;
        border-radius: 12px;
        width: auto;
        min-width: 50px;
    }

    /* Show hamburger menu */
    .hamburger-menu {
        display: block;
    }

    /* Hide nav links by default */
    .nav-links {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        min-width: 200px;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .page-navigation .nav-link {
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 8px;
        text-align: center;
        width: 100%;
    }

    .page-navigation .nav-link:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-right: 20px;
        padding-bottom: 12px;
        margin-right: 0;
        margin-bottom: 8px;
        border-radius: 0;
    }

    .page-navigation .nav-link:hover {
        transform: none;
        background: rgba(73, 80, 188, 0.5);
    }

    /* Language Switcher Mobile */
    .lang-switcher {
        width: 100%;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .lang-current {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .lang-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 8px;
        background: rgba(73, 80, 188, 0.2);
    }

    .lang-btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        min-width: 180px;
    }

    .page-navigation .nav-link {
        font-size: 14px;
        padding: 10px 16px;
    }
}
