/* ============================================
   NAVIGATION - Modern Responsive Menu
   ============================================ */

/* Navigation Container */
.landing-nav {
    position: relative;
    z-index: 1000;
    background: linear-gradient(135deg, #0f1515 0%, #152820 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

/* Brand Logo */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.3s ease;
    z-index: 1001;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.nav-brand svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Navigation Right Side */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: #ffffff;
}

/* Demo Button */
.nav-cta {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-cta-disabled {
    background: rgba(90, 117, 117, 0.8);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    border: none;
    pointer-events: none;
}

.nav-cta-disabled:hover,
.nav-cta-disabled:active,
.nav-cta-disabled:focus {
    background: rgba(90, 117, 117, 0.8);
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.6;
}

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

.language-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.language-switcher-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.language-switcher-toggle .flag-emoji {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
}

.language-switcher-toggle .current-language {
    min-width: 75px;
    text-align: left;
}

.language-switcher-toggle .chevron-icon {
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.language-switcher.active .chevron-icon {
    transform: rotate(180deg);
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: #2c4a4a;
    border: 1px solid #3a5555;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

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

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-start;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.language-option.active {
    background: #243d3d;
    color: #ffffff;
}

.language-option .flag-emoji {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
}

.language-option span {
    text-align: left;
}

.language-option .check-icon {
    color: #ffffff;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .nav-brand svg {
        width: 28px;
        height: 28px;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Mobile Menu Overlay */
    .nav-right {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 2rem 1rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-right.active {
        transform: translateX(0);
    }

    /* Mobile Menu Items */
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        color: #374151;
        font-size: 1rem;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a:hover {
        color: #667eea;
    }

    .nav-cta-disabled {
        display: block;
        text-align: center;
        margin-top: 0.5rem;
        background: #e5e7eb;
        color: #6b7280;
        border: 1px solid #d1d5db;
        pointer-events: none;
        opacity: 0.7;
    }

    .nav-cta-disabled:hover,
    .nav-cta-disabled:active,
    .nav-cta-disabled:focus {
        background: #e5e7eb;
        color: #6b7280;
    }

    /* Mobile Language Switcher */
    .language-switcher {
        width: 100%;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 2px solid #f3f4f6;
    }

    .language-switcher-toggle {
        display: none;
    }

    .language-switcher::before {
        content: 'JĘZYK';
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 1px;
        color: #9ca3af;
        margin-bottom: 1rem;
        text-transform: uppercase;
    }

    .language-dropdown {
        position: static;
        transform: none;
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
    }

    .language-option {
        padding: 0.9rem 0;
        color: #374151;
        background: transparent;
        border-bottom: 1px solid #f3f4f6;
        gap: 12px;
    }

    .language-option:last-child {
        border-bottom: none;
    }

    .language-option:hover {
        background: transparent;
        color: #667eea;
    }

    .language-option.active {
        background: transparent;
        color: #667eea;
        font-weight: 600;
    }

    .language-option .check-icon {
        display: none;
    }

    .language-option .flag-emoji {
        font-size: 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-brand {
        font-size: 1.1rem;
    }

    .language-option {
        padding: 0.8rem 0;
        font-size: 0.95rem;
    }
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    body.menu-open {
        position: fixed;
        width: 100%;
    }
}

/* Footer Language Links */
.footer-column a.active {
    color: #5a7575;
    font-weight: 600;
}

.footer-column h4 {
    margin-bottom: 0.75rem;
}
