/* Основные стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #e6f0fa 0%, #f0f7ff 100%);
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    width: 100%;
    padding: 20px;
    margin: 20px 0;
}

/* Карточка */
.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.card1 {
    
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

/* Бургер-меню в шапке */
.header-info .burger-menu {
    position: static; /* Убираем абсолютное позиционирование */
    display: flex;
    align-items: center; /* Центрируем по вертикали */
    margin-right: 15px; /* Отступ для отделения от приветствия */
}

.burger-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: #333;
}

.burger-dropdown {
    display: none;
    position: absolute;
    top: 100%; /* Располагаем под кнопкой */
    left: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1000;
}

.burger-dropdown a {
    display: block;
    padding: 8px 16px;
    width: 100%;
    text-align: left;
    font-size: 14px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
}

.burger-dropdown a:hover {
    background: #f5f5f5;
}

.burger-dropdown.active {
    display: block;
}

/* Заголовки */
h1 {
    font-size: 28px;
    font-weight: 600;
    color: #2196F3;
    text-align: center;
    margin-bottom: 15px;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

/* Форма входа */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #666;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    background: #f9f9f9;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2196F3;
    background: #ffffff;
}

/* Кнопки */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #2196F3;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: #1e88e5;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    width: auto;
}

/* Информация в шапке */
.header-info {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    position: relative;
    justify-content: space-between; /* Распределяем элементы */
}

.greeting {
    font-size: 16px;
    font-weight: 500;
}

.level-tag {
    background: #2196F3;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-left: auto; /* Сдвигаем "Eng B1" к правому краю */
}

/* Контейнеры сессий */
.session-container {
    text-align: center;
}

/* Карточка слова */
.word-card {
    text-align: center;
    position: relative;
}

.word-counter {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.word-text {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.transcription {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.hint-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #fafafa;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    color: #858585;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hint-btn:hover {
    background: #d0d0d0;
}

/* Варианты ответа */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.option-btn {
    padding: 16px;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

/* Унифицируем стили для всех типов упражнений */
.russian-word, .english-word, .definition-text {
    color: #333;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 15px;
    text-align: center;
}

/* Стили для вариантов ответов в зависимости от типа упражнения */
.definition-option {
    font-size: 14px;
    line-height: 1.4;
    padding: 16px 20px;
    white-space: normal;
    height: auto;
    min-height: 80px;
}

.word-option {
    font-weight: 500;
    font-size: 18px;
}

.option-btn:hover {
    background: #f0f0f0;
}

.option-btn.selected {
    background: #e3f2fd;
    border-color: #2196F3;
}

.option-btn.correct {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.option-btn.incorrect {
    background: #ffebee;
    border-color: #f44336;
}

/* Результаты ответа */
.result-container {
    margin-top: 15px;
    padding: 15px;
    text-align: center;
}

.result-message {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 500;
}

.result-message.correct {
    color: #4CAF50;
}

.result-message.incorrect {
    color: #f44336;
}

.try-again-text {
    color: #f44336;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Адаптивность */
@media (max-width: 600px) {
    .container {
        padding: 15px;
        margin: 10px 0;
    }

    .card {
        padding: 15px;
        border-radius: 12px;
    }

    .card1 {
        padding: 15px;
        border-radius: 12px;
    }

    .word-text {
        font-size: 28px;
    }

    .btn {
        padding: 12px;
        font-size: 14px;
    }

    .option-btn {
        padding: 12px;
        font-size: 14px;
        width: 100%;
    }

    .header-info {
        padding: 10px 15px;
    }

    .header-info .burger-menu {
        margin-right: 10px; /* Меньший отступ на мобильных */
    }

    .greeting {
        font-size: 14px;
    }

    .level-tag {
        padding: 4px 8px;
        font-size: 12px;
    }

    .hint-btn {
        bottom: 15px;
        right: 15px;
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .russian-word, .english-word, .definition-text {
        font-size: 20px;
    }
}

.hint-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.hint-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.hint-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

.hint-text {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}
