/**
 * Language Popup Styles
 * Стили для попапа выбора языка
 */

/* Overlay - затемненный фон */
.language-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Контейнер попапа */
.language-popup-container {
    position: relative;
    background: #FFFFFF;
    box-shadow: 0px 26px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Контент попапа */
.language-popup-content {
    padding: 60px;
    padding-top: 70px;
    position: relative;
    display: flex;
    gap: 25px;
    flex-direction: column;
}

/* Кнопка закрытия */
.language-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 50px;
    line-height: 1;
    color: #000;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s ease;
    z-index: 10;
}

.language-popup-close:hover {
    color: #C8102E;
}

/* Заголовок */
.language-popup-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.language-popup-title {
    font-size: 36px;
    font-weight: 500;
   margin: 0;
    color: #0D0D0D;
    text-align: center;
}

.language-popup-description {
     font-weight: 400;
    font-size: 22px;
   text-align: center;
    color: #000000;
    margin: 0;
}

/* Тело попапа */
.language-popup-body {
   
}

/* Опции языков - горизонтально в ряд */
.language-options {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Кнопка выбора языка - вертикальная */
.language-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px 20px 15px;

    background: #FFFFFF;
    border: none;
   
    cursor: pointer;
    transition: all 0.2s ease;
   
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #0D0D0D;
    text-decoration: none;
    box-sizing: border-box;
    border: 1px solid #E6E6E6;

    min-width: 120px;
    min-height: 110px;
    ;
}

.language-option-btn:hover {
    background: #FFFFFF;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    color: #0D0D0D;
    text-decoration: none;
}

.language-option-btn:focus {
    color: #0D0D0D;
    text-decoration: none;
    outline: none;
}

/* .language-option-btn.active {
    background: #FFFFFF;
    box-shadow: 0px 8px 24px rgba(200, 16, 46, 0.15);
    border: 2px solid #C8102E;
} */

/* Обертка для флага */
.language-flag-wrapper {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

/* Флаг языка - круглый */
.language-flag {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
  
}

/* SVG флаги */
.language-flag-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.language-flag-placeholder svg {
    width: 100%;
    height: 100%;
}

/* Название языка */
.language-name {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .language-popup-content {
        padding: 70px 20px 60px 20px;

    }

    .language-popup-title {
        font-size: 28px;
        line-height: 100%;

      
    }

    .language-popup-description {
        font-size: 20px;
      
    }

    .language-option-btn {
    
        font-size: 16px;
        min-width: 90px;
        min-height: 90px;
    }

    .language-flag-wrapper {
        width: 40px;
        height: 40px;
       
    }
    .language-options {
        gap: 10px;
    }

    .language-flag,
    .language-flag-placeholder {
        width: 40px;
        height: 40px;
    }
}


