/* Employer Menu - Unified Styles v4 */
/* This file contains all styles for the employer dashboard navigation menu */
/* Last updated: 2025-11-05 - Fixed globe icon spacing and overlapping issues */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    color: #1d1d1f;
    padding: 0;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.18);
    z-index: 9999;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
    padding: 0 22px;
}

.logo {
    font-size: 1.25em;
    font-weight: 600;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 2;
}

.logo:hover {
    opacity: 0.7;
}

.logo-image {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    padding: 6px 14px;
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.2px;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link:hover {
    color: #000000;
}

.nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}

.nav-link.active::before {
    background: #000000;
    opacity: 1;
    transform: scale(1);
}

.nav-link.active span {
    color: #ffffff !important;
}

.nav-link span {
    position: relative;
    z-index: 1;
}

/* Language Switcher - Apple Style with proper spacing */
#language-switcher-nav {
    display: flex;
    align-items: center;
    margin-right: 12px;
    padding-right: 12px;
    border-right: 1px solid rgba(0, 0, 0, 0.12);
}

#language-switcher-nav .language-switcher__trigger {
    background: transparent !important;
    border: none !important;
    padding: 6px 8px !important;
    width: auto !important;
    min-width: auto !important;
    transition: all 0.2s ease !important;
}

#language-switcher-nav .language-switcher__trigger:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    border-radius: 8px !important;
    transform: scale(1.05);
}

#language-switcher-nav .language-switcher__globe {
    font-size: 20px !important;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

#language-switcher-nav .language-switcher__trigger:hover .language-switcher__globe {
    opacity: 1;
}

#language-switcher-nav .language-switcher__icon {
    display: none !important;
}

.nav-link.create-btn {
    background: #0071e3;
    color: white;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 113, 227, 0.3);
    margin-left: 4px;
}

.nav-link.create-btn::before {
    display: none;
}

.nav-link.create-btn:hover {
    background: #0077ed;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.4);
    transform: translateY(-0.5px);
}

/* Hide email on narrower screens to prevent overlap */
@media (max-width: 1350px) {
    .user-email {
        display: none;
    }
}

/* Responsive adjustments for menu to prevent overlapping */
@media (max-width: 1400px) {
    .nav-menu {
        gap: 6px;
    }

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

@media (max-width: 1300px) {
    .nav-menu {
        gap: 4px;
    }

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

    #language-switcher-nav {
        margin-right: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 2px;
    }

    .nav-link {
        padding: 6px 8px;
        font-size: 13px;
    }

    .nav-link.create-btn {
        margin-left: 2px;
    }

    #language-switcher-nav {
        margin-right: 6px;
        padding-right: 6px;
        border-right: none; /* Remove border on smaller screens */
    }

    #language-switcher-nav .language-switcher__globe {
        font-size: 18px !important; /* Smaller globe icon */
    }
}

@media (max-width: 1100px) {
    .nav-link span {
        font-size: 12px;
    }

    #language-switcher-nav {
        margin-right: 4px;
        padding-right: 0;
    }

    #language-switcher-nav .language-switcher__trigger {
        padding: 4px 6px !important;
    }
}

.user-info {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 5px;
    background: rgba(0, 0, 0, 0.05);
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

.user-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.04);
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-button:hover::before {
    opacity: 1;
}

.user-button:hover {
    transform: scale(1.02);
    border-color: rgba(0, 0, 0, 0.1);
}

.user-button:active {
    transform: scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    position: relative;
    z-index: 1;
}

.user-email {
    font-size: 13px;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow:
        0 0 0 0.5px rgba(0, 0, 0, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 20px 48px rgba(0, 0, 0, 0.08);
    min-width: 240px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transform-origin: top right;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

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

.dropdown-user-info {
    padding: 10px 14px;
    margin-bottom: 4px;
}

.dropdown-user-email {
    font-size: 13px;
    color: #6e6e73;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.dropdown-divider {
    height: 0.5px;
    background: rgba(0, 0, 0, 0.06);
    margin: 4px 0;
}

.dropdown-item {
    padding: 10px 14px;
    color: #1d1d1f;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.01em;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.04);
    opacity: 0;
    transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover::before {
    opacity: 1;
}

.dropdown-item:hover {
    transform: scale(0.98);
}

.dropdown-item:active {
    transform: scale(0.96);
    transition: all 0.05s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
}

.dropdown-item span {
    position: relative;
    z-index: 1;
}
