/* Breathwork Feature Styles */
/* Styles specific to the breathwork feature */

.breathwork-container {
    text-align: center;
}

.breath-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.1s linear, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transform: scale(0.8);
}

/* Phase-specific colors */
.breath-circle.breathing-in {
    background: #4A9B9B; /* Muted turquoise */
    box-shadow: 0 10px 30px rgba(74, 155, 155, 0.3);
    color: white;
}

.breath-circle.hold {
    background: #A8E6CF; /* Pale mint */
    box-shadow: 0 10px 30px rgba(168, 230, 207, 0.3);
    color: #2d3748; /* Dark text for contrast */
}

.breath-circle.breathing-out {
    background: #FFB3BA; /* Blush coral */
    box-shadow: 0 10px 30px rgba(255, 179, 186, 0.3);
    color: #2d3748; /* Dark text for contrast */
}

.breath-circle.pause {
    background: #8B9DC3; /* Soft slate */
    box-shadow: 0 10px 30px rgba(139, 157, 195, 0.3);
    color: white;
}

.breath-circle-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
}

@media (min-width: 768px) {
    .breath-circle {
        width: 200px;
        height: 200px;
        margin: 40px auto;
    }
}

/* Circle scale is now controlled by JavaScript for precise timing */
.breath-circle.breathing-in,
.breath-circle.breathing-out,
.breath-circle.hold,
.breath-circle.pause {
    /* Scale is set via inline style from JavaScript */
}

.breath-instruction {
    font-size: 18px;
    font-weight: 500;
    color: inherit; /* Inherit from parent circle */
    text-align: center;
    margin: 0;
}

@media (min-width: 768px) {
    .breath-instruction {
        font-size: 24px; /* Increased from 22px for better readability on desktop */
    }
}

/* Landscape mobile: reduce circle size to prevent overflow */
@media (max-height: 600px) {
    .breath-circle {
        width: 120px;
        height: 120px;
        margin: 20px auto;
    }
    
    .breath-instruction {
        font-size: 16px;
    }
}

.breath-progress {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 120px;
    margin-top: 5px;
    min-height: 4px;
}

/* Single segment progress bar (1 second duration) */
.breath-progress:has(.breath-progress-segment[style*="width: 100%"]) {
    gap: 0;
}

.breath-progress-segment {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.breath-progress-segment.active {
    background: rgba(255, 255, 255, 0.9);
}

/* Progress bar colors adapt to phase */
.breath-circle.breathing-in .breath-progress-segment.active {
    background: rgba(255, 255, 255, 0.9);
}

.breath-circle.hold .breath-progress-segment.active {
    background: rgba(45, 55, 72, 0.7); /* Dark for pale mint */
}

.breath-circle.breathing-out .breath-progress-segment.active {
    background: rgba(45, 55, 72, 0.7); /* Dark for blush coral */
}

.breath-circle.pause .breath-progress-segment.active {
    background: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
    .breath-progress {
        max-width: 150px;
    }
    
    .breath-progress-segment {
        height: 5px;
    }
}

.breathwork-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.breathwork-pattern-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.breathwork-pattern-select label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.breathwork-select {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: #2d3748;
    cursor: pointer;
    min-width: 120px;
}

.breathwork-select:focus {
    outline: none;
    border-color: #667eea;
}

.breathwork-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pattern-description {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    font-size: 0.9em;
    line-height: 1.6;
    color: #4a5568;
    text-align: left;
    max-width: 100%;
}

@media (min-width: 768px) {
    .pattern-description {
        margin-top: 15px;
        padding: 15px 20px;
        font-size: 1em;
    }
}

.btn-breathwork {
    min-width: 120px;
}

.btn-breathwork-start {
    background: #48bb78;
    color: white;
}

.btn-breathwork-start:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

.btn-breathwork-stop {
    background: #e53e3e;
    color: white;
}

.btn-breathwork-stop:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 62, 62, 0.4);
}

.breathwork-timer {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
    margin: 20px 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

.breathwork-cycle-count {
    font-size: 18px;
    font-weight: 500;
    color: #4a5568;
    text-align: center;
    margin: -10px 0 20px 0;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
    .breathwork-timer {
        font-size: 32px;
        margin: 30px 0;
    }
    
    .breathwork-cycle-count {
        font-size: 20px;
        margin: -15px 0 30px 0;
    }
}

@media (min-width: 768px) {
    .breath-instruction {
        font-size: 1.5em;
        margin: 20px 0;
    }
    
    .breathwork-controls {
        gap: 15px;
        margin-top: 30px;
    }
    
    .breath-presets {
        gap: 10px;
    }
}