/* Language Selector Styles */
.language-selector-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 28px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 101;
    min-width: 44px;
    min-height: 44px;
    opacity: 1 !important;
    visibility: visible !important;
}

.language-selector-btn:hover {
    background: rgba(255, 152, 0, 0.1);
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

.language-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.language-modal-backdrop.show {
    display: flex;
}

.language-modal-panel {
    background: #1a1a1a;
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 152, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-modal-header h3 {
    margin: 0;
    color: #ff9800;
    font-size: 18px;
    font-weight: 700;
}

.language-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.language-modal-close:hover {
    color: #ff9800;
}

.language-modal-body {
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
}

.language-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-item {
    display: block;
}

.language-option {
    background: rgba(255, 152, 0, 0.05);
    border: 2px solid rgba(255, 152, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    width: 100%;
    font-size: 14px;
}

.language-option:hover {
    background: rgba(255, 152, 0, 0.15);
    border-color: #ff9800;
    transform: translateY(-2px);
}

.language-option.active {
    background: #ff9800;
    border-color: #ff9800;
    color: #0b0b0b;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.language-flag {
    font-size: 20px;
    margin-bottom: 6px;
    display: block;
}

.language-name {
    font-size: 12px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-modal-panel {
        max-width: 90vw;
    }
    
    .language-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
