/* Modern Navigation Styles */

.header-modern {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 32px;
}

/* Logo */
.logo {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: #1a1a1a;
    white-space: nowrap;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-main {
    color: #1a1a1a;
}

.logo-kz {
    color: var(--main-green);
}

/* Main Navigation */
.nav-main {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--main-green);
    background: rgba(159, 188, 11, 0.08);
}

.nav-link.active {
    color: var(--main-green);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--main-green);
    border-radius: 2px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
}

.lang-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--main-green);
    background: rgba(159, 188, 11, 0.1);
}

.lang-divider {
    color: #ccc;
    font-size: 12px;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    padding: 8px 18px;
    border: 2px solid var(--main-green);
    background: transparent;
    color: var(--main-green);
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-login:hover {
    background: var(--main-green);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(159, 188, 11, 0.3);
}

.btn-register {
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--main-green) 0%, var(--main-green-light) 100%);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(159, 188, 11, 0.3);
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(159, 188, 11, 0.4);
}

/* User Profile */
.user-profile {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    transition: all 0.2s;
}

.profile-btn:hover {
    background: rgba(159, 188, 11, 0.1);
    color: var(--main-green);
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 180px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.user-profile:hover .profile-dropdown {
    display: block;
}

.profile-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.profile-dropdown a:hover {
    background: rgba(159, 188, 11, 0.08);
    color: var(--main-green);
}

.logout-btn {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #dc3545 !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-nav {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    padding: 12px 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-nav-link:hover {
    background: rgba(159, 188, 11, 0.08);
    color: var(--main-green);
}

.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-btn-login,
.mobile-btn-register {
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s;
}

.mobile-btn-login {
    border: 2px solid var(--main-green);
    color: var(--main-green);
    background: transparent;
}

.mobile-btn-register {
    background: linear-gradient(135deg, var(--main-green) 0%, var(--main-green-light) 100%);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-main {
        gap: 16px;
    }

    .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
        height: 60px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-main,
    .lang-switcher,
    .auth-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}