/* constructor.css */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    min-height: 100vh;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* КОНТЕНТ тянется 
.content {
    flex: 1;
    max-width: 95%;
    margin: 0 auto;
    padding: 30px 0px;
    display: flex;
    flex-direction: column;
    width: 100%;
}*/

/* КОНТЕНТ — убираем лишние отступы */
.content {
    flex: 1;
    max-width: 99%;
    margin: 0 auto;
    padding: 10px 0 0 0;  /* Уменьшаем верхний отступ */
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;      /* Прячем общий скролл */
}

/* ЗАДАНИЕ 
.task {
    background: linear-gradient(145deg, #4CAF50, #45a049);
    padding: 10px 30px;
    border-radius: 12px;
    font-size: clamp(20px, 5vw, 40px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 6px rgba(76,175,80,0.2);
}*/

/* ЗАДАНИЕ — фиксируем сверху */
.task {
    flex-shrink: 0;        /* Не сжимается */
    background: linear-gradient(145deg, #4CAF50, #45a049);
    padding: 10px 30px;
    border-radius: 12px;
    font-size: clamp(20px, 5vw, 40px);
    font-weight: 700;
    text-align: center;
    margin: 0 0 8px 0;     /* Только отступ снизу */
    box-shadow: 0 10px 6px rgba(76, 175, 80, 0.2);
}

/* ПОДСКАЗКА */
.hint {
    background: rgba(0,0,0,0.3);
    border-left: 4px solid #FF9800;
    border-radius: 12px;
    padding: 5px;
    margin: 20px 0;
    font-size: 18px;
}

/* Секция ввода */
.input-section {
    margin-top: auto; /* толкает вниз */
    margin-bottom: 2px;
    width: 100%;
}

#answer {
    width: 100%;
    padding: 16px;
    border: 2px solid #444;
    border-radius: 12px;
    background: #333;
    color: white;
    font-size: 18px;
    margin-bottom: 12px;
}

#check {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
}

.button-pair {
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 3px 0;
    margin: 10px 0;
}

.button-pair button {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#check {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

#next {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
}

.button-pair button:active {
    transform: scale(0.98);
}


.voice-mode-btn {
    background: linear-gradient(45deg, #FF9800, #F57C00);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    margin: 2px auto;
    display: block;
    box-sizing: border-box;   /* ← Важно! */
}

.voice-mode-btn.active {
    background: linear-gradient(45deg, #f44336, #d32f2f);
}

.voice-mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,152,0,0.4);
}

.voice-status {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
    color: #FF9800;
}

/* В медиа-запрос для мобилок добавить: */
@media (max-width: 768px) {
    .button-pair button {
        padding: 12px;
        font-size: 18px;
    }
}

/* НИЖНЯЯ ПАНЕЛЬ - просто div в потоке */
.bottom-panel {
    background: rgba(0,0,0,0.98);
    backdrop-filter: blur(30px);
    border-top: 2px solid #444;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-shrink: 0;
}

.btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    padding: 5px;
}

.home {
    background: rgba(76,175,80,0.3);
    color: #4CAF50;
    border: 2px solid #4CAF50;
    font-size: 16px;
}

.home-2 {
    background: linear-gradient(62deg, #6e6e6e, #545454);
    color: #4CAF50;
    border: 2px solid #62b3ac;
    font-size: 16px;
}

.home-3 {
    background: rgba(76,175,80,0.3);
    color: #4CAF50;
    border: 2px solid #4CAF50;
    font-size: 36px;
}

.settings {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
    border: 2px solid #2196F3;
}

.user {
    color: #ccc;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
}



.hint-buttons {
    margin: 20px 0;
    min-height: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hint-btn {
    background: linear-gradient(145deg, #FF9800, #F57C00);
    border: none;
    border-radius: 12px;
    padding: 8px 20px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 5px 20px rgba(255,152,0,0.3);
    width: 100%;
    /*max-width: 300px;*/
}

.hint-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,152,0,0.4);
}

.hint-btn:active {
    transform: translateY(0);
}

.hint-message {
    background: rgba(255,152,0,0.2);
    border-left: 4px solid #FF9800;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 18px;
    text-align: center;
    width: 100%;
}

.hint-message.tense-info {
    color: #FF9800;
    font-weight: 500;
}

.hint-message.answer-hint {
    color: #4CAF50;
    font-weight: bold;
    font-size: 22px;
}

/* Компьютеры */
@media (min-width: 1024px) {
    .content {
        max-width: 800px; /* или 900px - как хочешь */
        padding: 10px 20px;
    }
    
    .task {
        font-size: 40px; /* покрупнее на компе */
        padding: 10px 40px;
    }
    
    #answer {
        font-size: 24px;
        padding: 10px;
    }
    
    #check {
        font-size: 20px;
        padding: 16px;
    }
}

/* Очень большие экраны */
@media (min-width: 1600px) {
    .content {
        max-width: 1000px;
    }
    
    .task {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 8px 8px 0 8px;
    }
    
    .task {
        padding: 8px 15px;
        margin-bottom: 6px;
    }
    
    .hint-buttons {
        margin: 4px 0;
    }
    
    .hint {
        margin: 2px 0;
        padding: 2px;
    }
    
    #answer {
        padding: 10px;
        margin-bottom: 5px;
    }
    
    #check {
        padding: 16px;
    }
    
    .input-section {
        padding-bottom: 0;
    }
}