/* Learn/Test Page Styles */

.learn-container {
    max-width: 800px;
    margin: 0 auto;
}

.test-header {
    display: flex;
    justify-content: flex-end;  /* Кнопка справа, убрали Question */
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.test-progress {
    font-size: 14px;
    color: #6B7280;
}

.save-button-container {
    display: flex;
    align-items: center;
    gap: 12px;  /* Расстояние между таймером и кнопкой */
    justify-content: flex-end;
}

/* Guest auth prompt */
.auth-prompt-text {
    font-size: 14px;
    color: #DC2626;
    font-weight: 600;
    margin-right: 12px;
}

.guest-login-button {
    display: inline-block;
    padding: 8px 16px;
    background: #10B981;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.guest-login-button:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.save-button {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.save-button:disabled {
    background: #10B981;  /* Зелёный для "Сохранено" */
    cursor: not-allowed;
}

.save-button:hover:not(:disabled) {
    background: var(--primary-hover);
}

.save-timer {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
}

/* Guest auth prompt */
.guest-auth-prompt {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.auth-prompt-text {
    font-size: 13px;
    color: #DC2626;
    font-weight: 600;
}

.auth-button {
    padding: 8px 16px !important;
    font-size: 14px !important;
    white-space: nowrap;
}

/* New Words Introduction */
.new-words-intro {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.new-words-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.new-word-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════════
   AUDIO BUTTON - СТИЛЬ КАК В /INPUT/
   ═══════════════════════════════════════════ */

.audio-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4CAF50;
    border: none;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    font-size: 36px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.audio-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #4CAF50;
    animation: pulse-audio 1.5s infinite;
}

.audio-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.audio-button:active {
    transform: scale(0.95);
}

@keyframes pulse-audio {
    0% { 
        transform: scale(1); 
        opacity: 1; 
    }
    100% { 
        transform: scale(1.5); 
        opacity: 0; 
    }
}

/* Контейнер: аудио + текст в один ряд */
.question-with-audio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px; /* ДОБАВЛЕНО: отступ снизу */
}

.question-with-audio .question-text {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* ДОБАВЛЕНО: стиль для отдельного question-text (без аудио, этап 1) */
.question-word > .question-text {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 24px 0; /* ДОБАВЛЕНО: отступ снизу */
    text-align: center;
}

/* Старый контейнер (для совместимости) */
.question-audio {
    display: flex;
    justify-content: center;
}

/* Мобильные размеры */
@media (max-width: 480px) {
    .audio-button {
        width: 40px;
        height: 40px;
        font-size: 32px;
    }
    
    .question-with-audio {
        gap: 16px;
        margin-bottom: 20px; /* Меньше на мобильных */
    }
    
    .question-with-audio .question-text {
        font-size: 24px;
    }
    
    .question-word > .question-text {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

@media (max-width: 409px) {
    .audio-button {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .question-with-audio {
        gap: 12px;
    }
    
    .question-with-audio .question-text {
        font-size: 20px;
    }
    
    .question-word > .question-text {
        font-size: 20px;
    }
}
.answer-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.answer-option {
    padding: 20px;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.answer-option:hover {
    border-color: var(--primary-color);
    background: #EEF2FF;
}

.answer-option.selected {
    border-color: var(--primary-color);
    background: #EEF2FF;
}

.answer-option.correct {
    border-color: var(--success-color);
    background: #D1FAE5;
    color: #065F46;
}

.answer-option.incorrect {
    border-color: var(--error-color);
    background: #FEE2E2;
    color: #991B1B;
}

.answer-option.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Next Button */
.next-button-container {
    text-align: center;
    margin-bottom: 1px;
}

.next-button {
    padding: 10px 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.next-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.next-button:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
    opacity: 0.6;
}

.next-button:disabled:hover {
    transform: none;
}

/* Completion Screen */
.completion-screen {
    text-align: center;
    background: white;
    border-radius: 8px;
    padding: 48px;
    box-shadow: var(--shadow);
}

.completion-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.completion-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.completion-message {
    font-size: 16px;
    color: #6B7280;
    margin-bottom: 32px;
}

.guest-benefits {
    text-align: left;
    max-width: 400px;
    margin: 32px auto;
    padding: 24px;
    background: #F0FDF4;
    border-radius: 8px;
    border: 2px solid #10B981;
}

.guest-benefits h3 {
    margin-bottom: 16px;
    color: #065F46;
}

.guest-benefits ul {
    list-style: none;
    padding: 0;
}

.guest-benefits li {
    padding: 8px 0;
    font-size: 16px;
    color: #1F2937;
}

@media (max-width: 768px) {
    .question-text {
        font-size: 24px;
    }
    
    .answer-options {
        grid-template-columns: 1fr;
    }
    
    .answer-option {
        font-size: 16px;
        padding: 5px;
    }
    
    .question-card {
        padding: 20px;
    }
}

/* Guest completion screen */
.guest-completion .completion-message {
    font-size: 18px;
    margin-bottom: 8px;
}

.guest-benefits {
    margin: 32px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.guest-benefits h3 {
    font-size: 20px;
    margin-bottom: 16px;
    text-align: center;
}

.guest-benefits ul {
    list-style: none;
    padding: 0;
}

.guest-benefits li {
    font-size: 16px;
    padding: 8px 0;
    text-align: left;
}
/* ═══════════════════════════════════════════

@media (max-width: 480px) {
    .question-card {
        padding: 16px 12px;
    }
}

/* ═══════════════════════════════════════════

@media (max-width: 480px) {
    .question-card {
        padding: 16px 12px;
    }
}

/* ═══════════════════════════════════════════

@media (max-width: 480px) {
    .question-card {
        padding: 16px 12px;
    }
}

/* ═══════════════════════════════════════════
   УБИРАЕМ PADDING КОНТЕЙНЕРА НА МОБИЛЬНЫХ
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
    .question-card {
        padding: 0 !important;
        border-radius: 0 !important;
    }
    
    /* Внутренние элементы добавляют свой padding */
    .test-header {
        padding: 16px;
    }
    
    .question-word {
        padding: 10px 16px;
    }
    
    .answer-options {
        padding: 0 16px 20px 16px;
    }
    
    .next-button-container {
        padding: 0 16px 20px 16px;
    }
}

@media (max-width: 480px) {
    .test-header {
        padding: 12px;
    }
    
    .question-word {
        padding: 10px 12px;
    }
    
    .answer-options {
        padding: 0 12px 16px 12px;
    }
    
    .next-button-container {
        padding: 0 12px 16px 12px;
    }
}
/* ═══════════════════════════════════════════
   СТИЛИ ДЛЯ НОВЫХ СЛОВ
   ═══════════════════════════════════════════ */

.word-en {
    font-size: 18px;
    font-weight: 700;       /* Жирное английское слово */
    color: var(--text-color);
}

.word-ru {
    font-size: 16px;
    font-weight: 400;       /* Обычный русский перевод */
    color: #6B7280;
}

/* Скрываем название темы */
.topic-badge {
    display: none !important;
}

/* Только аудио кнопка (режим audio_to_ru) */
.question-audio-only {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}