/* public/assets/css/tools/life/breathing-training.css */

.breath-wrapper { padding: 32px 16px; background: var(--bg-surface); }
.breath-header { text-align: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.breath-title { margin: 0 0 10px 0; font-size: 1.8rem; color: var(--text-main); }
.breath-subtitle { margin: 0 auto; color: var(--text-muted); font-size: 1rem; line-height: 1.6; max-width: 600px; }

.breath-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* --- 呼吸视觉中心 --- */
.breath-visualizer {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

/* 背景呼吸圈 (由 JS 控制 scale 和 transition-duration) */
.breath-circle {
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, #38bdf8 0%, #0284c7 100%);
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(8px);
    /* 默认平滑过渡，JS中会动态调整这个 duration */
    transition: transform 1s linear, background 1s ease;
    transform: scale(1);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

/* 中心文字区 */
.breath-indicator {
    position: relative;
    z-index: 10;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
[data-theme="dark"] .breath-indicator { background: rgba(0, 0, 0, 0.2); border-color: rgba(255, 255, 255, 0.1); }

.breath-phase {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-main);
    letter-spacing: 2px;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(255,255,255,0.5);
}
[data-theme="dark"] .breath-phase { text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

.breath-timer {
    font-size: 2.2rem;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 800;
    color: #0ea5e9;
    line-height: 1;
}

/* --- 底部控制面板 --- */
.breath-controls {
    width: 100%;
    background: var(--bg-body);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.breath-ctrl-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.breath-lbl { font-size: 1rem; font-weight: 600; color: var(--text-main); }
.breath-select {
    padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border-color);
    background: var(--bg-surface); color: var(--text-main); font-size: 1rem; outline: none; cursor: pointer;
}

.breath-btn-row {
    display: flex;
    gap: 16px;
}

.breath-btn {
    flex: 1; padding: 14px; border-radius: 12px; font-size: 1.1rem; font-weight: bold;
    cursor: pointer; transition: 0.2s; border: none; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.breath-btn-primary { background: var(--primary-color); color: #fff; box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2); }
.breath-btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
/* 停止状态的按钮样式 */
.breath-btn-danger { background: #ef4444; color: #fff; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2); }
.breath-btn-danger:hover { background: #dc2626; transform: translateY(-2px); }

.breath-btn-outline { background: transparent; border: 2px solid var(--border-color); color: var(--text-main); }
.breath-btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* 暗黑模式适配 */
[data-theme="dark"] .breath-controls { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .breath-select { background: #0f172a; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .breath-btn-outline { color: #f8fafc; border-color: #475569; }
[data-theme="dark"] .breath-btn-outline:hover { border-color: #60a5fa; color: #60a5fa; }