/* ============================================
   Chord Pads Styles (forest-chords.css)
   ============================================ */

.chords-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 30px;
}

.chords-header {
    text-align: center;
    margin-bottom: 40px;
}

.chords-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: #8cc082;
    margin-bottom: 10px;
}

.chords-subtitle {
    font-size: 1.1rem;
    color: #5a8a56;
    font-style: italic;
}

/* Control Sections */
.chord-controls {
    background: linear-gradient(135deg, rgba(15, 35, 20, 0.9), rgba(10, 25, 15, 0.95));
    border: 1px solid rgba(124, 184, 112, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.control-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.control-section {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.control-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #9ac89a;
    margin-bottom: 12px;
    text-align: center;
}

.chord-btn-group {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.chord-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    padding: 8px 14px;
    border: 1px solid rgba(124, 184, 112, 0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(20, 50, 25, 0.5);
    color: #7a9a7a;
    letter-spacing: 0.5px;
    min-width: 42px;
}

.chord-btn:hover {
    border-color: rgba(124, 184, 112, 0.4);
    background: rgba(30, 70, 35, 0.6);
    color: #9ac89a;
}

.chord-btn.active {
    background: linear-gradient(135deg, rgba(124, 184, 112, 0.3), rgba(100, 160, 90, 0.4));
    border-color: #7cb870;
    color: #c8dcc8;
    box-shadow: 0 0 12px rgba(124, 184, 112, 0.2);
}

/* Visualizer */
.visualizer-container {
    background: linear-gradient(135deg, rgba(15, 35, 20, 0.9), rgba(10, 25, 15, 0.95));
    border: 1px solid rgba(124, 184, 112, 0.15);
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 20px;
}

.visualizer {
    width: 100%;
    height: 100px;
    display: block;
    border-radius: 8px;
}

/* Chord Pads Grid */
.chord-pads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.chord-pad {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 60, 30, 0.8), rgba(20, 45, 25, 0.9));
    border: 2px solid rgba(124, 184, 112, 0.3);
    border-radius: 12px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    user-select: none;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.chord-pad:hover {
    border-color: rgba(124, 184, 112, 0.5);
    background: linear-gradient(135deg, rgba(40, 75, 40, 0.8), rgba(30, 60, 30, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 184, 112, 0.15);
}

.chord-pad:active, .chord-pad.pressed {
    background: linear-gradient(135deg, rgba(124, 184, 112, 0.4), rgba(100, 160, 90, 0.5));
    border-color: #7cb870;
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(124, 184, 112, 0.3);
}

.chord-pad .pad-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #c8dcc8;
    font-weight: 700;
}

.chord-pad .pad-roman {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #8fa88e;
    font-style: italic;
}

.chord-pad .pad-type {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #5a8a56;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Chord pad variants for different chord qualities */
.chord-pad.major {
    background: linear-gradient(135deg, rgba(30, 70, 35, 0.7), rgba(20, 50, 25, 0.8));
}

.chord-pad.minor {
    background: linear-gradient(135deg, rgba(35, 45, 70, 0.7), rgba(20, 30, 55, 0.8));
}

.chord-pad.dim {
    background: linear-gradient(135deg, rgba(50, 30, 40, 0.7), rgba(35, 20, 30, 0.8));
}

.chord-pad.aug {
    background: linear-gradient(135deg, rgba(60, 40, 20, 0.7), rgba(45, 30, 15, 0.8));
}

.chord-pad.seventh {
    background: linear-gradient(135deg, rgba(45, 50, 30, 0.7), rgba(30, 35, 20, 0.8));
}

.chord-pad.maj7 {
    background: linear-gradient(135deg, rgba(30, 55, 55, 0.7), rgba(20, 40, 40, 0.8));
}

.chord-pad.min7 {
    background: linear-gradient(135deg, rgba(35, 40, 65, 0.7), rgba(22, 28, 48, 0.8));
}

.chord-pad.dim7 {
    background: linear-gradient(135deg, rgba(55, 25, 35, 0.7), rgba(40, 18, 25, 0.8));
}

/* Chord Panels */
.chord-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.chord-panel {
    background: linear-gradient(135deg, rgba(15, 35, 20, 0.9), rgba(10, 25, 15, 0.95));
    border: 1px solid rgba(124, 184, 112, 0.15);
    border-radius: 16px;
    padding: 20px;
}

.panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #9ac89a;
    margin-bottom: 16px;
}

.controls-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Sliders */
.chord-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(124, 184, 112, 0.2);
    border-radius: 3px;
    outline: none;
    margin: 5px 0;
}

.chord-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #7cb870;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chord-slider::-webkit-slider-thumb:hover {
    background: #9ac89a;
    box-shadow: 0 0 10px rgba(124, 184, 112, 0.5);
}

/* Chord info display */
.chord-info {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, rgba(15, 35, 20, 0.9), rgba(10, 25, 15, 0.95));
    border: 1px solid rgba(124, 184, 112, 0.15);
    border-radius: 12px;
    margin-bottom: 20px;
}

.chord-info .info-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #9ac89a;
}

.chord-info .info-detail {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #5a8a56;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .chords-container {
        padding: 20px 10px;
    }

    .control-row {
        flex-direction: column;
        gap: 15px;
    }

    .chord-pads-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 8px;
    }

    .chord-pad {
        padding: 18px 10px;
        min-height: 85px;
    }

    .chord-pad .pad-name {
        font-size: 1rem;
    }

    .chord-pad .pad-roman {
        font-size: 0.75rem;
    }

    .chord-panels {
        grid-template-columns: 1fr;
    }

    .controls-row {
        flex-direction: column;
        gap: 12px;
    }
}