/* Стили для приложения "Учим звуки" */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 600px;
}

.letter-display {
    font-size: 150px;
    font-weight: bold;
    color: #2196F3;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    background: white;
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    color: #333;
    border: none;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 300px;
    height: 80px;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.play-button:active {
    transform: translateY(0);
}

.play-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.play-icon {
    font-size: 24px;
}

.mic-indicator {
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
    filter: drop-shadow(0 0 10px rgba(244, 67, 54, 0.5));
}

.mic-indicator svg {
    color: #f44336;
}

.mic-indicator.visible {
    opacity: 1;
    display: block;
}

.mic-indicator.recording {
    animation: blink 0.5s infinite;
}

@keyframes blink {
    0%, 100% { 
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(244, 67, 54, 0.8));
    }
    50% { 
        opacity: 0.5;
        filter: drop-shadow(0 0 5px rgba(244, 67, 54, 0.3));
    }
}

.result-text {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    min-height: 30px;
    padding: 15px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.result-text.success {
    color: #4CAF50;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.result-text.error {
    color: #f44336;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
}

.result-text.listening {
    color: #FF9800;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

/* Адаптивность */
@media (max-width: 600px) {
    .letter-display {
        font-size: 100px;
        padding: 30px 50px;
    }
    
    .play-button {
        min-width: 250px;
        font-size: 16px;
        padding: 15px 30px;
    }
    
    .result-text {
        font-size: 18px;
    }
}

