/* public/assets/css/audio/guitar-tuner.css */

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

.tuner-workspace { max-width: 650px; margin: 0 auto; background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border: 1px solid #334155; border-radius: 24px; padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,0.4); display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; transition: box-shadow 0.3s, border-color 0.3s; }
.tuner-workspace.in-tune { border-color: #10b981; box-shadow: 0 0 40px rgba(16, 185, 129, 0.3), inset 0 0 20px rgba(16, 185, 129, 0.1); }
.tuner-workspace.in-tune .display-note { color: #10b981; text-shadow: 0 0 20px rgba(16, 185, 129, 0.8); }

/* 麦克风控制区 */
.tuner-controls { margin-bottom: 24px; }
.tuner-btn-primary { padding: 14px 32px; font-size: 1.1rem; font-weight: 800; background: linear-gradient(to right, #3b82f6, #8b5cf6); color: #fff; border: none; border-radius: 30px; cursor: pointer; transition: 0.2s; box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); text-transform: uppercase; letter-spacing: 1px; }
.tuner-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(59, 130, 246, 0.5); }
.tuner-btn-danger { padding: 14px 32px; font-size: 1.1rem; font-weight: 800; background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 2px solid rgba(239, 68, 68, 0.3); border-radius: 30px; cursor: pointer; transition: 0.2s; text-transform: uppercase; letter-spacing: 1px; }
.tuner-btn-danger:hover { background: #ef4444; color: #fff; }

/* 🌟 琴弦试听交互区 (Reference Zone) */
.tuner-reference-zone { width: 100%; background: #0b1120; border: 1px solid #334155; border-radius: 12px; padding: 16px 20px; margin-bottom: 40px; box-shadow: inset 0 4px 10px rgba(0,0,0,0.5); }
.ref-label { text-align: center; font-size: 0.75rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.guitar-strings { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.string-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(to bottom, #1e293b, #0f172a); border: 1px solid #475569; border-bottom: 4px solid #000; border-radius: 8px; padding: 12px 0; cursor: pointer; transition: 0.1s; box-shadow: 0 4px 6px rgba(0,0,0,0.4); min-width: 60px; }
.string-btn:active, .string-btn.playing { transform: translateY(3px); border-bottom: 1px solid #000; box-shadow: 0 1px 2px rgba(0,0,0,0.6), inset 0 0 15px rgba(59, 130, 246, 0.4); border-color: #3b82f6; }
.string-btn .str-name { font-family: 'Times New Roman', Times, serif; font-size: 1.6rem; font-weight: 800; color: #f8fafc; line-height: 1; }
.string-btn .str-desc { font-size: 0.65rem; color: #94a3b8; margin-top: 4px; font-weight: 600; text-transform: uppercase; }
.string-btn.playing .str-name { color: #60a5fa; text-shadow: 0 0 10px rgba(96, 165, 250, 0.8); }

/* 核心半圆仪表盘 */
.tuner-dial-container { position: relative; width: 300px; height: 150px; margin-bottom: 20px; }
.tuner-dial-bg { position: absolute; bottom: 0; left: 0; width: 300px; height: 150px; border-top-left-radius: 150px; border-top-right-radius: 150px; border: 10px solid #334155; border-bottom: none; box-sizing: border-box; }
.dial-mark { position: absolute; color: #64748b; font-weight: 700; font-size: 0.8rem; font-family: monospace; }
.dial-mark.left { bottom: 10px; left: -30px; }
.dial-mark.right { bottom: 10px; right: -35px; }
.dial-mark.center { top: -25px; left: 50%; transform: translateX(-50%); color: #10b981; }

.tuner-needle { position: absolute; bottom: 0; left: 50%; width: 4px; height: 140px; background: linear-gradient(to top, transparent 10%, #ef4444 100%); margin-left: -2px; transform-origin: bottom center; transform: rotate(0deg); transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1); border-radius: 2px; z-index: 10; }
.tuner-workspace.in-tune .tuner-needle { background: linear-gradient(to top, transparent 10%, #10b981 100%); box-shadow: 0 0 10px #10b981; }

/* 中心数据显示 */
.tuner-display { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); text-align: center; background: #0f172a; width: 120px; height: 100px; border-top-left-radius: 60px; border-top-right-radius: 60px; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 10px; z-index: 20; border-top: 1px solid #334155; }
.display-note { font-size: 3.5rem; font-weight: 800; color: #f8fafc; line-height: 1; margin-bottom: 4px; font-family: 'Times New Roman', Times, serif; transition: color 0.3s, text-shadow 0.3s; }
.display-cents { font-size: 0.8rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; }

/* 底部数据 */
.tuner-stats { display: flex; justify-content: center; gap: 40px; width: 100%; border-top: 1px solid #334155; padding-top: 24px; }
.stat-box { text-align: center; }
.stat-label { font-size: 0.75rem; color: #64748b; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.stat-value { font-family: 'Courier New', Courier, monospace; font-size: 1.5rem; font-weight: 700; color: #cbd5e1; }
.stat-value small { font-size: 0.9rem; color: #94a3b8; }

.tuner-visualizer { max-width: 650px; margin: 24px auto 0 auto; background: #0f172a; border-radius: 12px; border: 1px solid #334155; padding: 12px; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); }
#tunerCanvas { width: 100%; height: 80px; display: block; }
.tuner-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: 768px) {
    .guitar-strings { gap: 4px; }
    .string-btn { min-width: 45px; padding: 8px 0; }
    .tuner-dial-container { transform: scale(0.8); margin-bottom: 0; }
    .tuner-stats { gap: 20px; }
}