/* --- LANGUAGE DROPDOWN --- */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 20px;
}

.lang-dropbtn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(160, 233, 255, 0.2);
    color: white;
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.chevron-icon {
    width: 16px;
    fill: currentColor;
    transition: transform 0.3s;
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%; /* Positions it exactly at the bottom of the button */
    padding-top: 0; /* Ensures no gap exists */
    background: rgba(26, 28, 58, 0.95);
    min-width: 140px;
    border-radius: 0 0 6px 6px; /* Rounded corners only at the bottom */
    /* ... keep your other styles ... */
}

.lang-dropdown-content a {
    color: #888;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: 0.3s;
}

/* Hover States */
.lang-dropdown:hover .lang-dropbtn {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-dropdown:hover .chevron-icon {
    transform: rotate(180deg);
}

.lang-dropdown-content a:hover {
    background: rgba(160, 233, 255, 0.1);
    color: white;
}

/* --- MOBILE FIX: Class to force display via JS --- */
.lang-dropdown-content.show {
    display: block;
}

/* Optional: Increase tap area for mobile links */
@media (max-width: 768px) {
    .lang-dropdown-content a {
        padding: 15px 20px; /* Bigger touch targets */
    }
}