/* Kudumija Navbar & Mobile Drawer Styles */

#main-navbar {
    position: absolute;
    top: 32px;
    left: 2.5vw; /* 36px / 1440 */
    width: 95vw; /* 1368px / 1440 */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 4px;
    z-index: 100;
    padding: 0 24px;
}

.navbar-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
}

#main-navbar .navbar-brand {
    display: flex;
    align-items: center;
    color: #CC4443 !important;
    text-decoration: none;
    flex-shrink: 0;
}

#main-navbar .nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

#main-navbar .nav-links li a {
    font-size: 0.9rem;
    font-weight: 400;
    color: #222;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

#main-navbar .nav-links li a:hover { color: #CC4443; }
#main-navbar .nav-links li a.active { color: #CC4443; font-weight: 600; }

.lang-btn {
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.82rem;
    color: #333;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    text-decoration: none;
}

.lang-btn:hover { border-color: #CC4443; color: #CC4443; }

.dropdown-menu.lang-dropdown {
    min-width: 80px;
    padding: 4px 0;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 4px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.lang-dropdown .dropdown-item {
    font-size: 0.82rem;
    padding: 6px 16px;
    color: #333;
}

.lang-dropdown .dropdown-item:hover {
    background-color: #F4F4F4;
    color: #CC4443;
}

.lang-dropdown .dropdown-item.active {
    background-color: transparent;
    color: #CC4443;
    font-weight: 700;
}

.ham-btn {
    display: none;
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #333;
    font-size: 1.4rem;
    line-height: 1;
}

.nav-collapse {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: center;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ===== RESPONSIVE NAVBAR ===== */
@media (max-width: 991px) {
    #main-navbar {
        top: 16px;
        left: 2.5vw !important;
        width: 95vw !important;
    }
    .ham-btn { display: flex; align-items: center; }
    .lang-btn { display: none; }
    .nav-collapse { display: none !important; }
}

/* ===== MOBILE DRAWER ===== */
#drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#drawer-overlay.visible { display: block; }
#drawer-overlay.open { opacity: 1; }

#mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #182532;
    z-index: 2001;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0,0,0,0.2);
}
#mobile-drawer.open { left: 0; }

.drawer-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.drawer-header .drawer-logo {
    color: #CC4443;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
}
.drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}
.drawer-nav {
    flex: 1;
    padding: 24px 0;
    overflow-y: auto;
}
.drawer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.drawer-nav ul li a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.2s;
}
.drawer-nav ul li a:hover { background: rgba(255,255,255,0.05); }
.drawer-nav ul li a.active { color: #CC4443; font-weight: 700; }
.drawer-nav ul li a i { font-size: 1.2rem; color: #CC4443; }

.drawer-footer {
    padding: 32px 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.drawer-lang {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.drawer-lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
}
.drawer-social {
    display: flex;
    gap: 16px;
}
.drawer-social a {
    color: #fff;
    font-size: 1.4rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.drawer-social a:hover { opacity: 1; }
