/* Navbar styles for Kwezzly */

/* --- Navbar: Fixed, Full-Width, Top --- */
.top-nav.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    background: white;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.top-nav .navbar-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 32px;
}

nav.nav {
    width: 100%;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 64px;
    min-height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.logo img {
    height: 44px;
    width: 44px;
    object-fit: contain;
    display: inline-block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.nav-link.cta {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 8px 22px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.18);
    font-size: 1rem;
}

.nav-link.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 172, 254, 0.22);
}

.user-dropdown {
    margin-left: 20px;
    position: relative;
}

.user-avatar-container {
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    background: rgba(79, 172, 254, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-container:hover {
    background: rgba(79, 172, 254, 0.18);
    transform: scale(1.07);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e7ef;
    background: #f8f8f8;
    transition: all 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 56px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
}

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

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-user-info {
    flex: 1;
    min-width: 0;
}

.dropdown-user-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-email {
    color: #666;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #4facfe;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: #666;
}

.dropdown-item:hover i {
    color: #4facfe;
}

@media (max-width: 768px) {
    .nav-inner {
        height: 48px;
        min-height: 48px;
    }

    .logo img {
        height: 32px;
        width: 32px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .nav-link.cta {
        padding: 7px 12px;
        font-size: 0.98rem;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .dropdown-menu {
        top: 44px;
        min-width: 160px;
    }
}