/* ============================================
   VOICE NAME CALIBRATION MODAL
   ============================================
   Used at scorecard start to train pronunciation
   of player names for better recognition
*/

.voice-calibration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.voice-calibration-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease-out;
    color: white;
}

.voice-calibration-modal h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    text-align: center;
    color: white;
}

.voice-calibration-modal .subtitle {
    text-align: center;
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.calibration-player {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.calibration-player-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.calibration-instruction {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.calibration-progress {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.calibration-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.calibration-progress-dot.active {
    background: #4CAF50;
    box-shadow: 0 0 10px #4CAF50;
    transform: scale(1.3);
}

.calibration-progress-dot.completed {
    background: #4CAF50;
}

.calibration-mic-btn {
    background: #f44336;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 40px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(244, 67, 54, 0.4);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.calibration-mic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(244, 67, 54, 0.6);
}

.calibration-mic-btn.listening {
    animation: pulseMic 1.5s infinite;
    background: #4CAF50;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.6);
}

.calibration-status {
    text-align: center;
    font-size: 16px;
    margin: 15px 0;
    min-height: 24px;
    font-weight: 600;
}

.calibration-heard {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calibration-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.calibration-buttons button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calibration-skip-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.calibration-skip-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.calibration-continue-btn {
    background: #4CAF50;
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.calibration-continue-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.calibration-continue-btn:disabled {
    background: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    box-shadow: none;
}

.calibration-summary {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.calibration-summary h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    text-align: center;
}

.calibration-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.calibration-error {
    background: rgba(244, 67, 54, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    border: 2px solid rgba(244, 67, 54, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulseMic {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(76, 175, 80, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 30px rgba(76, 175, 80, 0.8);
    }
}

/* Mobile responsive */
@media (max-width: 600px) {
    .voice-calibration-modal {
        padding: 30px 20px;
        width: 95%;
    }
    
    .calibration-player-name {
        font-size: 28px;
    }
    
    .calibration-mic-btn {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }
}
