/*
===================================================================
LANGUAGE SELECTOR - Globe & Radio Style
===================================================================
*/

.language-selector {
    position: relative;
    display: inline-block;
    margin-right: 0;
}

.lang-btn {
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    padding: 8px 12px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px !important;
    min-width: 130px;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lang-btn:hover {
    border-color: #9ca3af !important;
    background: #f9fafb !important;
}

.globe-icon {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    /* Gray color for globe */
    flex-shrink: 0;
}

.lang-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    flex: 1;
    text-align: left;
    white-space: nowrap;
    line-height: normal !important;
    /* Reset inherited nav line-height */
}

.dropdown-arrow {
    width: 10px;
    height: 6px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.lang-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    /* Explicitly set width to match container/button */
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.15s ease;
    z-index: 1000;
    padding: 6px 0;
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #374151;
    text-decoration: none;
    transition: background 0.1s ease;
    cursor: pointer;
    line-height: normal !important;
    /* Reset inherited nav line-height */
}

.lang-option:hover {
    background: #f3f4f6;
}

.lang-option .lang-text {
    font-size: 14px;
    color: #374151;
    line-height: normal !important;
    /* Reset inherited nav line-height */
}

/* Empty Radio Circle for options */
.radio-circle {
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Scrolled nav */
nav.scroll .lang-btn {
    background: #fff !important;
    border-color: #d1d5db !important;
}

/* Mobile */
@media (max-width: 991px) {
    .language-selector {
        padding: 15px 15px 0 15px;
        width: 100%;
        border-top: none;
    }

    .lang-btn {
        width: 100%;
        background: #fff !important;
        border: 1px solid #d1d5db !important;
        color: #374151 !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        /* Restore shadow */
        justify-content: space-between;
    }

    .globe-icon,
    .dropdown-arrow {
        color: #9ca3af;
        /* Restore icon color */
    }

    .lang-text {
        color: #374151;
        /* Restore text color */
    }

    .lang-dropdown {
        position: static;
        /* Keep static for accordion effect on mobile */
        width: 100%;
        box-shadow: none;
        /* Shadow might be weird in static, but border is needed */
        background: #fff;
        border: 1px solid #d1d5db;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 6px 0;
        margin-top: 5px;
        /* Add spacing */
        display: none;
        /* Hide by default, toggle via JS sets active */
    }

    .lang-dropdown.active {
        display: block;
    }

    .lang-option {
        padding: 8px 12px;
    }

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

    .lang-option:hover {
        background: #f3f4f6;
        /* Restore hover gray */
    }

    .radio-circle {
        border-color: #d1d5db;
        /* Restore radio border */
    }

    .lang-option .lang-text {
        color: #374151;
        line-height: 2 !important;
    }
}

/* 
===================================================================
AUTH BUTTONS 
===================================================================
*/
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    padding: 8px 16px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Added gap for icon */
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px !important;
    color: #374151 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: normal !important;
    min-width: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nav-btn:hover {
    border-color: #9ca3af !important;
    background: #f9fafb !important;
    color: #111827 !important;
}

/* Primary "Blue" Button Style */
.nav-btn.btn-primary {
    background: #049CFF !important;
    border-color: #049CFF !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-btn.btn-primary:hover {
    background: #3081c8 !important;
    border-color: #3081c8 !important;
    color: #ffffff !important;
}

.nav-btn:hover {
    border-color: #9ca3af !important;
    background: #f9fafb !important;
    color: #111827 !important;
}

/* Mobile Styles for Auth Buttons */
@media (max-width: 991px) {
    .auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-btn {
        width: 100%;
        background: transparent !important;
        border-color: #d1d5db !important;
        color: #4b5563 !important;
        box-shadow: none;
        padding: 11px 12px !important;
    }

    .nav-btn:hover {
        background: rgba(255, 255, 255, 0.05) !important;
    }

    .nav-btn.btn-primary {
        background: #049CFF !important;
        border-color: #049CFF !important;
        color: #ffffff !important;
    }
}