/* Language Selector Styles */
.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

.lang-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    min-width: 150px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
}

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

.lang-dropdown li {
    margin: 0;
}

.lang-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 0.95rem;
}

.lang-dropdown a:hover {
    background: #f3f4f6;
}

.lang-dropdown a:active {
    background: #e5e7eb;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lang-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
       
        color: var(--primary-color);
    }

    .lang-toggle:hover {
        background: var(--light-gray);
        border-color: var(--accent-color);
    }

    .lang-dropdown {
        right: 0;
        left: auto;
    }
}

/* Header integration */
header nav {
    display: flex;
    align-items: center;
}

header .nav-links {
    display: flex;
    flex: 1;
    justify-content: center;
}

/* Ensure proper positioning in header */
nav > .language-selector {
    margin-left: auto;
    margin-right: 1rem;
}
