/* This file contains all the styles for your Pitch Detector tool. */

/* Wrapper for the tool section */
.tool-section-wrapper {
    padding: 60px 20px;
    background-color: #f8faff;
    border-top: 1px solid #eef2f9;
    border-bottom: 1px solid #eef2f9;
}

.ultimate-pitch-detector-wp {
    all: initial;
    --primary-hue: 220;
    --primary: hsl(var(--primary-hue), 85%, 55%);
    --primary-dark: hsl(var(--primary-hue), 85%, 45%);
    --success: hsl(142, 76%, 36%);
    --error: hsl(0, 84%, 60%);
    --text-primary: hsl(220, 26%, 14%);
    --text-secondary: hsl(220, 9%, 46%);
    --text-muted: hsl(220, 9%, 60%);
    --bg-primary: hsl(0, 0%, 100%);
    --bg-secondary: hsl(220, 14%, 96%);
    --bg-tertiary: hsl(220, 14%, 93%);
    --border-light: hsl(220, 13%, 91%);
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    display: block;
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--border-light);
}

.ultimate-pitch-detector-wp *,
.ultimate-pitch-detector-wp *::before,
.ultimate-pitch-detector-wp *::after {
    box-sizing: border-box;
    all: revert;
}

.ultimate-pitch-detector-wp .detector-header { text-align: center; margin-bottom: 24px; }
.ultimate-pitch-detector-wp .main-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; }
.ultimate-pitch-detector-wp .tagline { font-size: 1rem; color: var(--text-secondary); max-width: 45ch; margin: 0 auto; }
.ultimate-pitch-detector-wp .note-display-section { text-align: center; margin: 32px 0; }
.ultimate-pitch-detector-wp .note-display { font-size: clamp(4rem, 15vw, 7rem); font-weight: 900; color: var(--primary); line-height: 1; min-height: 1.1em; display: flex; align-items: center; justify-content: center; transition: color 0.2s ease; font-family: var(--font-mono); }
.ultimate-pitch-detector-wp .note-display.in-tune { color: var(--success); }
.ultimate-pitch-detector-wp .note-display.off-tune { color: var(--error); }
.ultimate-pitch-detector-wp .note-confidence { font-size: 0.875rem; color: var(--text-muted); min-height: 1.2em; }
.ultimate-pitch-detector-wp .frequency-container { display: flex; justify-content: center; gap: 24px; margin-top: 16px; font-family: var(--font-mono); font-weight: 600; font-size: 1.25rem; }
.ultimate-pitch-detector-wp .frequency-display { color: var(--text-secondary); }
.ultimate-pitch-detector-wp .cents-display { color: var(--text-muted); }
.ultimate-pitch-detector-wp .tuning-meter-section { margin-bottom: 32px; }
.ultimate-pitch-detector-wp .meter-labels { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.ultimate-pitch-detector-wp .meter-container { background: var(--bg-secondary); padding: 8px; border-radius: 12px; }
.ultimate-pitch-detector-wp .meter-track { position: relative; height: 12px; border-radius: 6px; overflow: hidden; }
.ultimate-pitch-detector-wp .meter-gradient { position: absolute; inset: 0; background: linear-gradient(90deg, var(--error) 0%, var(--success) 50%, var(--error) 100%); opacity: 0.7; }
.ultimate-pitch-detector-wp .meter-center-line { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 3px; background: var(--success); transform: translateX(-50%); }
.ultimate-pitch-detector-wp .meter-needle { position: absolute; top: -12px; left: 50%; width: 28px; height: 28px; background: white; border: 4px solid var(--primary); border-radius: 50%; transform: translateX(-50%); transition: left 0.1s ease-out; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.ultimate-pitch-detector-wp .meter-feedback { text-align: center; font-weight: 600; color: var(--text-secondary); margin-top: 12px; min-height: 1.2em; }
.ultimate-pitch-detector-wp .controls-section { border-top: 1px solid var(--border-light); padding-top: 24px; }
.ultimate-pitch-detector-wp .primary-action-btn { width: 100%; padding: 16px; font-size: 1.1rem; font-weight: 700; border: none; border-radius: 12px; cursor: pointer; transition: all 0.2s ease; margin-bottom: 24px; }
.ultimate-pitch-detector-wp .primary-action-btn.start { background: var(--primary); color: white; }
.ultimate-pitch-detector-wp .primary-action-btn.start:hover { background: var(--primary-dark); }
.ultimate-pitch-detector-wp .primary-action-btn.stop { background: var(--error); color: white; }
.ultimate-pitch-detector-wp .settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.ultimate-pitch-detector-wp .control-label { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; display: block; }
.ultimate-pitch-detector-wp .control-select { width: 100%; padding: 10px 14px; background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: 12px; font-size: 1rem; font-weight: 600; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-position: right .75rem center; background-repeat: no-repeat; background-size: 1.5em 1.5em; padding-right: 2.5rem; }
.ultimate-pitch-detector-wp .message-area { padding: 1rem; border-radius: 8px; text-align: center; font-weight: 500; margin-top: 1rem; display: none; }
.ultimate-pitch-detector-wp .message-area.error { background: rgba(239, 68, 68, 0.1); color: var(--error); border: 1px solid rgba(239, 68, 68, 0.2); display: block; }
.ultimate-pitch-detector-wp .detector-footer { text-align: center; font-size: 0.875rem; color: var(--text-muted); margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-light); }

