/* public/assets/css/life/meditation-timer-online.css */

.medit-wrapper { padding: 32px; border-radius: var(--radius-lg); position: relative; transition: background 1s ease; }
.medit-header { text-align: center; margin-bottom: 32px; transition: opacity 1s ease; }
.medit-title { font-size: 2rem; font-weight: 800; color: var(--text-main); margin-bottom: 12px; letter-spacing: -0.5px; }
.medit-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; line-height: 1.6; }

.medit-workspace { max-width: 800px; margin: 0 auto; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 20px; padding: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; }

/* 核心视觉区：呼吸光环 */
.medit-visual-zone { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; position: relative; height: 320px; justify-content: center; width: 100%; }

.medit-breathe-circle { width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%); box-shadow: 0 0 40px rgba(16, 185, 129, 0.2), inset 0 0 20px rgba(16, 185, 129, 0.1); display: flex; justify-content: center; align-items: center; position: absolute; top: 50%; left: 50%; margin-top: -100px; margin-left: -100px; transition: transform ease-in-out; transform: scale(1); border: 1px solid rgba(16, 185, 129, 0.3); }

/* 吸气变大，呼气变小 */
.medit-breathe-circle.inhale { transform: scale(1.6); background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.05) 100%); box-shadow: 0 0 60px rgba(59, 130, 246, 0.3); border-color: rgba(59, 130, 246, 0.4); }
.medit-breathe-circle.hold { transform: scale(1.6); background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.05) 100%); box-shadow: 0 0 60px rgba(139, 92, 246, 0.3); border-color: rgba(139, 92, 246, 0.4); }
.medit-breathe-circle.exhale { transform: scale(1); }

.medit-breathe-text { font-size: 1.2rem; font-weight: 600; color: var(--text-main); letter-spacing: 2px; text-transform: uppercase; z-index: 10; transition: opacity 0.5s; }

.medit-timer-display { font-size: 4rem; font-weight: 800; font-family: 'Courier New', Courier, monospace; color: var(--text-main); position: absolute; bottom: -20px; letter-spacing: -2px; z-index: 10; text-shadow: 0 4px 20px var(--bg-body); }

/* 控制区 */
.medit-controls { display: flex; flex-direction: column; align-items: center; width: 100%; margin-bottom: 40px; }
.medit-duration-selector { text-align: center; margin-bottom: 24px; transition: opacity 0.5s; }
.medit-duration-selector label { display: block; font-size: 0.9rem; color: var(--text-muted); font-weight: 600; margin-bottom: 12px; }

.medit-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.medit-chip { padding: 8px 20px; border-radius: 20px; border: 1px solid var(--border-color); background: var(--bg-body); color: var(--text-muted); font-weight: 700; cursor: pointer; transition: 0.2s; font-size: 1rem; }
.medit-chip:hover { border-color: #10b981; color: #10b981; }
.medit-chip.active { background: #10b981; border-color: #10b981; color: #fff; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }

.medit-custom-input { width: 80px; padding: 8px 12px; border-radius: 20px; border: 1px solid var(--border-color); background: var(--bg-body); color: var(--text-main); font-weight: 600; outline: none; text-align: center; }
.medit-custom-input:focus { border-color: #10b981; }

.medit-actions { display: flex; gap: 16px; justify-content: center; }
.medit-btn-primary { padding: 14px 40px; font-size: 1.1rem; font-weight: 700; background: #10b981; color: #fff; border: none; border-radius: 30px; cursor: pointer; transition: 0.2s; letter-spacing: 1px; box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); }
.medit-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(16, 185, 129, 0.4); background: #059669; }
.medit-btn-secondary { padding: 14px 40px; font-size: 1.1rem; font-weight: 700; background: #f59e0b; color: #fff; border: none; border-radius: 30px; cursor: pointer; transition: 0.2s; }
.medit-btn-secondary:hover { background: #d97706; }
.medit-btn-outline { padding: 14px 30px; font-size: 1.1rem; font-weight: 600; background: transparent; color: var(--text-muted); border: 2px solid var(--border-color); border-radius: 30px; cursor: pointer; transition: 0.2s; }
.medit-btn-outline:hover { color: #ef4444; border-color: #ef4444; background: rgba(239, 68, 68, 0.05); }

/* 白噪音混音器 */
.medit-mixer-panel { width: 100%; background: var(--bg-body); border-radius: 16px; padding: 24px; border: 1px solid var(--border-color); transition: opacity 0.5s; }
.medit-mixer-title { font-size: 1rem; color: var(--text-main); font-weight: 700; margin-bottom: 20px; text-align: center; letter-spacing: 0.5px; }
.medit-mixer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.medit-mixer-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.medit-mixer-label { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.medit-slider { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--border-color); outline: none; cursor: pointer; }
.medit-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #10b981; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: transform 0.1s; }
.medit-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* 专注模式隐藏其他元素 */
.medit-wrapper.focused .medit-header, 
.medit-wrapper.focused .tool-seo-article { opacity: 0; pointer-events: none; height: 0; overflow: hidden; margin: 0; transition: 0.5s ease; }
.medit-wrapper.focused .medit-duration-selector { opacity: 0; pointer-events: none; height: 0; overflow: hidden; margin: 0; }

.medit-info-card { background: var(--bg-surface); padding: 24px; border-radius: 16px; border: 1px solid var(--border-color); max-width: 800px; margin: 0 auto; }

@media (max-width: 600px) {
    .medit-mixer-grid { grid-template-columns: 1fr; gap: 16px; }
    .medit-visual-zone { height: 260px; }
    .medit-timer-display { font-size: 3rem; bottom: -10px; }
    .medit-actions { flex-direction: column; width: 100%; }
    .medit-actions button { width: 100%; }
}