/* Language Suggestion Popup */
.language-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

.language-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.language-popup {
    background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid rgba(232, 116, 59, 0.3);
}

.language-popup-overlay.show .language-popup {
    transform: scale(1) translateY(0);
}

.language-popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.language-popup-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    line-height: 1;
}

.language-popup-icon img {
    display: block;
    border-radius: 4px;
}

.language-popup-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.language-popup-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
}

.language-popup-message strong {
    color: #e8743b;
    font-weight: 600;
}

.language-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.language-popup-alt-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.language-popup-button {
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.language-popup-button-accept {
    background: linear-gradient(135deg, #e8743b 0%, #d45e25 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(232, 116, 59, 0.4);
}

.language-popup-button-accept:hover {
    background: linear-gradient(135deg, #d45e25 0%, #c04f1d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 116, 59, 0.6);
}

.language-popup-button-decline {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    padding: 12px 20px;
}

.language-popup-button-decline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-popup-button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
    min-width: 0;
    font-size: 14px;
    padding: 12px 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-popup-button-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.language-popup-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.language-popup-flag img {
    display: block;
    border-radius: 3px;
}

.language-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.language-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .language-popup {
        padding: 30px 20px;
        max-width: calc(100% - 40px);
    }

    .language-popup-icon img {
        width: 40px;
        height: 30px;
    }

    .language-popup-title {
        font-size: 20px;
    }

    .language-popup-message {
        font-size: 15px;
    }

    .language-popup-button {
        padding: 13px 20px;
        font-size: 15px;
    }

    .language-popup-button-decline {
        font-size: 13px;
    }

    .language-popup-button-secondary {
        padding: 12px 10px;
        font-size: 13px;
        gap: 8px;
    }

    .language-popup-alt-buttons {
        gap: 8px;
    }

    .language-popup-flag img {
        width: 20px;
        height: 15px;
    }
}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-popup-overlay.show .language-popup {
    animation: slideInUp 0.5s ease;
}
