/**
 * Chord Panel Styles
 * Slide-up panel for displaying chord diagrams
 */

.chord-panel {
    position: fixed;
    bottom: -250px; /* Start hidden */
    left: 0;
    right: 0;
    height: 250px;
    background: #ffffff;
    border-top: 2px solid #39CCA8;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.chord-panel.open {
    bottom: 0;
}

.chord-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    height: 40px;
}

.chord-panel-header h3 {
    margin: 0;
    color: #333;
}

.close-panel {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.close-panel:hover {
    background-color: #e9ecef;
    color: #333;
}

.chord-panel-content {
    height: calc(100% - 40px);
    overflow: hidden;
}

.chord-diagrams-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    padding: 12px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: #39CCA8 #f1f1f1;
}

.chord-diagrams-container.has-scroll {
    justify-content: flex-start;
}

.chord-diagrams-container::-webkit-scrollbar {
    height: 6px;
}

.chord-diagrams-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chord-diagrams-container::-webkit-scrollbar-thumb {
    background: #39CCA8;
    border-radius: 3px;
}

.chord-diagrams-container::-webkit-scrollbar-thumb:hover {
    background: #2fa488;
}

.chord-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 132px; /* Increased by 10% from 120px */
    width: 132px; /* Increased by 10% from 120px */
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    overflow: hidden;
    flex-shrink: 0;
    height: 172px; /* Reduced to account for smaller diagram height */
}

.chord-item:hover {
    border-color: #dee2e6;
}

.chord-item.highlighted {
    background-color: #ffffff;
    border-color: #39CCA8;
    box-shadow: none;
}

.chord-diagram {
    width: 132px; /* Increased by 10% from 120px */
    height: 97px; /* Adjusted to match new SVG height (150 * 1.1 = 165px) */
    margin-bottom: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.chord-name {
    color: #333;
    margin: 0;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.chord-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #333;
}

.chord-pagination button {
    background: #ffffff;
    border: 1px solid #39CCA8;
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #39CCA8;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chord-pagination button:hover {
    background-color: #39CCA8;
    border-color: #39CCA8;
    color: #ffffff;
}

.chord-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f1f1;
    border-color: #ccc;
    color: #999;
}

.chord-pagination .current-variation {
    color: #39CCA8;
    min-width: 30px;
    text-align: center;
}

.missing-chords-indicator {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b6b;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 120px;
    max-width: 300px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    z-index: 10;
}

.missing-chords-indicator .missing-count {
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.missing-chords-indicator .missing-list {
    line-height: 1.3;
    word-wrap: break-word;
    max-height: 80px;
    overflow-y: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chord-panel {
        height: 200px;
        bottom: -200px;
    }
    
    .chord-panel-header {
        padding: 6px 12px;
        height: 36px;
    }
    
    .chord-diagrams-container {
        padding: 8px 12px;
        gap: 12px;
    }
    
    .chord-item {
        min-width: 121px; /* Increased by 10% from 110px */
        width: 121px; /* Increased by 10% from 110px */
        padding: 6px;
        overflow: hidden;
        flex-shrink: 0;
        height: 158px; /* Reduced to account for smaller diagram height */
    }
    
    .chord-diagram {
        width: 121px; /* Increased by 10% from 110px */
        height: 89px; /* Adjusted to match new SVG height for mobile */
        overflow: hidden;
    }
    
    .chord-pagination {
    gap: 4px;
}
    
    .chord-pagination button {
        padding: 2px 6px;
        min-width: 20px;
    }
    
    .chord-pagination .current-variation {
        min-width: 25px;
    }
}

/* Animation for chord items */
.chord-item {
    animation: slideInFromBottom 0.3s ease-out;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.chord-panel.loading .chord-diagrams-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chord-panel.loading .chord-diagrams-container::after {
    content: "Akor diyagramları yükleniyor...";
    color: #666;
    font-style: italic;
}

/* Empty state */
.chord-panel.empty .chord-diagrams-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chord-panel.empty .chord-diagrams-container::after {
    content: "Bu şarkıda akor bulunamadı";
    color: #666;
    font-style: italic;
} 