/* BREATH HOLD TRAINING Overlay Styles */

.breath-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #001020 0%, #000408 100%); /* Deep ocean gradient */
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

/* Retro CRT Scanline Effect (Optimized for mobile GPU) */
.breath-overlay::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 2;
    pointer-events: none;
}

/* Bubbles Container */
.breath-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -20px;
    background-color: transparent;
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 50%;
    animation: floatUp 10s infinite linear;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) translateX(20px);
        opacity: 0;
    }
}

.breath-overlay.visible {
    opacity: 1;
}

.breath-overlay-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    z-index: 10;
}

.breath-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.breath-timer {
    font-family: 'Courier Prime', monospace;
    font-size: 5rem;
    color: #00e5ff; /* Cyan glowing text */
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums; /* Monospace numbers */
    transition: color 0.3s ease, text-shadow 0.3s ease;
    z-index: 5;
}

.breath-timer.running {
    color: #0088aa;
    text-shadow: 0 0 5px rgba(0, 136, 170, 0.3);
}

.breath-result {
    text-align: center;
    margin-top: 30px;
    animation: fadeIn 0.5s ease forwards;
}

.breath-smiley {
    font-family: 'Courier Prime', monospace;
    font-size: 2.5rem;
    color: #00e5ff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
    margin-bottom: 10px;
}

.breath-status-text {
    font-family: 'Courier Prime', monospace;
    font-size: 1rem;
    color: #88ccdd;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.breath-disclaimer {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: #444444;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
