/* CSS isolado para o exercício de respiração */
.breathing-game-container {
    background-color: #f6f6f6;
    padding: 60px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.breathing-game-intro {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
    color: #2c3e50;
}

.breathing-game-exercise {
    position: relative;
    margin: 30px auto;
    max-width: 320px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ajuste base do círculo de respiração */
.breathing-game-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, #74b9ff 0%, #3498db 60%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
    -webkit-tap-highlight-color: transparent;
    
    /* Transições base */
    transition-property: transform, background, box-shadow;
    transition-duration: 4s, 1s, 1s;
    transition-timing-function: ease-in-out, ease, ease;
    
    position: relative;
    z-index: 10;
}

/* Fase de inspiração - gradiente azul mais claro */
.breathing-game-circle.breathing-game-inhale {
    transform: scale(1.3);
    background: radial-gradient(circle, #a6e1fa 0%, #3498db 70%, #2980b9 100%);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.7);
}

/* Fase de segurar - azul sólido */
.breathing-game-circle.breathing-game-hold {
    transform: scale(1.3);
    background: #3498db;
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.7);
}

/* Fase de expiração - a bolinha vai até o tamanho exato da fase de pausa */
.breathing-game-circle.breathing-game-exhale {
    transform: scale(0.9); /* Mesmo tamanho final que será usado na pausa */
    background: radial-gradient(circle, #a7f5d1 0%, #2ecc71 70%, #27ae60 100%);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
    
    /* Transição linear para exalação uniforme */
    transition-property: transform, background, box-shadow;
    transition-duration: 8s, 1s, 1s;
    transition-timing-function: linear, ease, ease;
    will-change: transform;
}

/* Fase de pausa - gradiente cinza mas SEM transição para o tamanho */
.breathing-game-circle.breathing-game-pause {
    /* Mesmo tamanho que a exalação termina */
    transform: scale(0.9);
    /* Apenas muda a cor para cinza */
    background: radial-gradient(circle, #ecf0f1 0%, #95a5a6 70%, #7f8c8d 100%);
    box-shadow: 0 0 15px rgba(127, 140, 141, 0.5);
    
    /* Transição apenas para a cor e sombra, NÃO para transform */
    transition-property: background, box-shadow;
    transition-duration: 0.5s, 0.5s;
    transition-timing-function: ease, ease;
}

/* Feedback visual de toque */
.breathing-game-circle.breathing-game-touched {
    background: radial-gradient(circle, #d4f8f6 0%, #1abc9c 70%, #16a085 100%);
    transform: scale(0.95);
}

/* Visual para indicar que está pronto para interação */
.breathing-game-circle.breathing-game-ready {
    animation: pulse-indicator 2s infinite;
}

@keyframes pulse-indicator {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}
.breathing-game-timer {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.breathing-game-instructions-container {
    text-align: center;
    margin-bottom: 20px;
}

.breathing-game-instructions {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.breathing-game-cycle-counter {
    font-size: 1.1rem;
    color: #3498db;
    font-weight: 500;
}

.breathing-game-info {
    margin-top: 10px;
    font-size: 1rem;
    color: #7f8c8d;
}

.breathing-game-congratulations {
    background-color: #3498db;
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 20px auto;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

.breathing-game-congratulations h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
}

.breathing-game-congratulations p {
    margin-bottom: 15px;
}

.breathing-game-restart-btn {
    background-color: white;
    color: #3498db;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
}

/* Botão de fallback para dispositivos móveis */
.breathing-game-fallback-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mostrar a mensagem apenas em dispositivos móveis */
.breathing-game-mobile-message {
    display: none;
}

@media (max-width: 768px) {
    .breathing-game-circle {
        /* Aumentar área de toque em dispositivos móveis */
        width: 160px;
        height: 160px;
    }
}