/**
 * Floating Navigation Menu - Glass Neomorphism
 * 
 * @package Bargtunes
 */

/* ========================================
   FLOATING MENU - GLASS NEOMORPHISM
======================================== */

.floating-nav-menu {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    pointer-events: none;
    max-width: 90%;
}

@media (min-width: 768px) {
    .floating-nav-menu {
        max-width: none;
    }
}

.floating-nav-container {
    position: relative; /* For mobile menu positioning */
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 24px;
    
    /* Glass Neomorphism Effect */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    /* Neomorphism Shadow */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1);
    
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: all;
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-nav-container:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ========================================
   LEFT & RIGHT SECTIONS
======================================== */

.floating-nav-left,
.floating-nav-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.floating-nav-left {
    margin-right: 10px;
}

.floating-nav-right {
    margin-left: 10px;
}

/* ========================================
   LOGO SECTION
======================================== */

.floating-nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-nav-logo a {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.floating-nav-logo a:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.floating-nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.floating-nav-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.floating-nav-logo-placeholder svg {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   MENU ITEMS
======================================== */

.floating-nav-menu-items {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    justify-content: center;
}

.floating-nav-link {
    position: relative;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
}

.floating-nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

.floating-nav-link:hover::before {
    opacity: 1;
}

.floating-nav-link.active {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.08);
}

/* ========================================
   CONTACT BUTTON
======================================== */

.floating-nav-contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #000000;
    background: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.floating-nav-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.floating-nav-contact-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.floating-nav-contact-btn:hover svg {
    transform: translateX(3px);
}

/* ========================================
   MOBILE MENU TOGGLE BUTTON
======================================== */

.floating-nav-menu-toggle {
    display: none; /* Hidden by default */
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #000000;
    background: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.floating-nav-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.floating-nav-menu-toggle.active .menu-toggle-icon {
    transform: rotate(45deg);
}

.menu-toggle-icon {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* ========================================
   MOBILE EXPANDED MENU
======================================== */

.floating-nav-mobile-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.floating-nav-mobile-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.floating-nav-mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

.floating-nav-mobile-link {
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-align: center;
}

.floating-nav-mobile-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.floating-nav-mobile-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #000000;
    background: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.floating-nav-mobile-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.floating-nav-mobile-contact svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

/* Show/Hide for Desktop/Mobile */
.floating-nav-mobile-only {
    display: none !important;
}

.floating-nav-desktop-only {
    display: flex !important;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Tablet Large (1024px - 1439px) */
@media (max-width: 1439px) {
    .floating-nav-container {
        gap: 15px;
        padding: 10px 20px;
    }
    
    .floating-nav-logo a {
        width: 45px;
        height: 45px;
    }
    
    .floating-nav-link {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .floating-nav-contact-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .floating-nav-menu {
        bottom: 20px;
    }
    
    .floating-nav-container {
        gap: 12px;
        padding: 8px 16px;
    }
    
    .floating-nav-left {
        margin-right: 5px;
    }
    
    .floating-nav-right {
        margin-left: 5px;
    }
    
    .floating-nav-logo a {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    
    .floating-nav-menu-items {
        gap: 4px;
    }
    
    .floating-nav-link {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .floating-nav-contact-btn {
        padding: 8px 16px;
        font-size: 11px;
        gap: 6px;
    }
    
    .floating-nav-contact-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Mobile Large (640px - 767px) */
@media (max-width: 767px) {
    .floating-nav-menu {
        bottom: 15px;
        left: 15px;
        right: 15px;
        transform: none;
    }
    
    .floating-nav-container {
        gap: 10px;
        padding: 8px 12px;
        border-radius: 40px;
        justify-content: space-between;
    }
    
    .floating-nav-left,
    .floating-nav-right {
        margin: 0;
    }
    
    .floating-nav-logo a {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .floating-nav-menu-items {
        display: none !important; /* Hide on mobile */
    }
    
    /* Show mobile elements, hide desktop elements */
    .floating-nav-mobile-only {
        display: flex !important;
    }
    
    .floating-nav-desktop-only {
        display: none !important;
    }
    
    .floating-nav-menu-toggle {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Mobile Standard (480px - 639px) */
@media (max-width: 639px) {
    .floating-nav-menu {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }
    
    .floating-nav-container {
        gap: 8px;
        padding: 6px 10px;
    }
    
    .floating-nav-logo a {
        width: 32px;
        height: 32px;
    }
    
    .floating-nav-menu-toggle {
        padding: 8px 16px;
        font-size: 11px;
    }
}

/* Mobile Small (below 480px) */
@media (max-width: 479px) {
    .floating-nav-menu {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    
    .floating-nav-container {
        padding: 6px 8px;
        border-radius: 35px;
    }
    
    .floating-nav-logo a {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }
    
    .floating-nav-menu-toggle {
        padding: 8px 14px;
        font-size: 10px;
        gap: 4px;
    }
    
    .menu-toggle-icon {
        font-size: 16px;
    }
}

/* Landscape Mobile/Tablets */
@media (max-height: 500px) and (orientation: landscape) {
    .floating-nav-menu {
        bottom: 10px;
    }
    
    .floating-nav-container {
        padding: 6px 12px;
    }
    
    .floating-nav-logo a {
        width: 32px;
        height: 32px;
    }
    
    .floating-nav-link {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .floating-nav-contact-btn {
        padding: 6px 14px;
        font-size: 10px;
    }
}

/* ========================================
   ANIMATIONS
======================================== */

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

@media (min-width: 768px) {
    .floating-nav-menu {
        animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
    }
}

/* Mobile Animation */
@media (max-width: 767px) {
    @keyframes slideUpMobile {
        from {
            opacity: 0;
            transform: translateY(100px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .floating-nav-menu {
        animation: slideUpMobile 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .floating-nav-menu,
    .floating-nav-link,
    .floating-nav-contact-btn,
    .floating-nav-logo a {
        animation: none;
        transition: none;
    }
}
.floating-nav-lang-switch {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    margin-right: 12px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 50%;
    transition: background 0.16s;
}
.floating-nav-lang-switch:hover {background: rgba(255,255,255,0.10);}
.floating-lang-link {
    display: flex;
    align-items: center;
    padding: 0;
    background: none;
    border: none;
}
.floating-lang-link svg {
    width: 22px;
    height: 22px;
}