/* Language Selection Modal */
.language-selection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.language-selection-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.language-selection-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.language-selection-overlay.hidden .language-selection-card {
    transform: scale(0.9);
}

.language-selection-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.language-selection-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.language-option-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 1rem 2.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.language-option-btn:hover {
    border-color: #8B4513;
    background: #f8f6f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.language-option-btn:active {
    transform: translateY(0);
}

/* Flag Icons - Matching the language switcher exactly */
.language-option-btn .flag-icon {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* UK Flag - Union Jack (matching language switcher) */
.language-option-btn .flag-icon.flag-uk {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23012169"/%3E%3Cpath d="M0,0 L60,30 M60,0 L0,30" stroke="%23fff" stroke-width="6"/%3E%3Cpath d="M0,0 L60,30 M60,0 L0,30" stroke="%23C8102E" stroke-width="4"/%3E%3Cpath d="M30,0 L30,30 M0,15 L60,15" stroke="%23fff" stroke-width="10"/%3E%3Cpath d="M30,0 L30,30 M0,15 L60,15" stroke="%23C8102E" stroke-width="6"/%3E%3C/svg%3E');
}

/* US Flag - Stars and Stripes (matching language switcher) */
.language-option-btn .flag-icon.flag-us {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23B22234"/%3E%3Cpath d="M0,2.3h60M0,4.6h60M0,6.9h60M0,9.2h60M0,11.5h60M0,13.8h60M0,16.1h60M0,18.4h60M0,20.7h60M0,23h60M0,25.3h60M0,27.6h60M0,29.9h60" stroke="%23fff" stroke-width="1.15"/%3E%3Crect width="24" height="15" fill="%233C3B6E"/%3E%3C/svg%3E');
}

/* French Flag - Tricolor (matching language switcher) */
.language-option-btn .flag-icon.flag-fr {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="20" height="30" fill="%23002395"/%3E%3Crect x="20" width="20" height="30" fill="%23fff"/%3E%3Crect x="40" width="20" height="30" fill="%23ED2939"/%3E%3C/svg%3E');
}

@media (max-width: 480px) {
    .language-selection-card {
        padding: 2rem;
        margin: 1rem;
    }

    .language-selection-title {
        font-size: 1.5rem;
    }

    .language-selection-subtitle {
        font-size: 1rem;
    }

    .language-option-btn {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
}