/**
 * AOS Songs Module Styles
 * Extracted from aos-songs.php shortcode
 */

/* Songs Wrapper */
.aos-songs-wrapper {
    padding: 20px;
}

.aos-songs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.aos-songs-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.aos-view-toggle {
    padding: 8px 12px;
    font-size: 18px;
}

.aos-view-active {
    background: #0073aa;
    color: white;
}

.aos-songs-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

/* Songs Grid */
.aos-songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.aos-song-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.aos-song-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.aos-song-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.aos-song-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.aos-song-actions {
    display: flex;
    gap: 8px;
}

.aos-song-artist {
    margin: 0 0 8px 0;
    color: #64748b;
    font-size: 14px;
}

.aos-song-status {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 8px;
}

.aos-song-excerpt {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

/* Empty State */
.aos-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.aos-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.aos-empty-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}

.aos-empty-description {
    font-size: 14px;
}

/* Kanban Board */
.aos-kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
}

.aos-kanban-column {
    min-width: 280px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.aos-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.aos-column-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.aos-column-count {
    background: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.aos-column-tasks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100px;
}

.aos-kanban-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.aos-kanban-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.aos-kanban-card.aos-dragging {
    opacity: 0.5;
    transform: rotate(3deg);
}

.aos-column-tasks.aos-drag-over {
    background: #f1f5f9;
    border-radius: 6px;
}

.aos-kanban-card-title {
    cursor: grabbing;
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.aos-kanban-card-artist {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #64748b;
}

.aos-kanban-card-desc {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Song-specific Buttons */
.aos-btn-versions {
    background: #3b82f6;
    color: white;
}

.aos-btn-versions:hover {
    background: #2563eb;
}

.aos-btn-edit {
    background: #3b82f6;
    color: white;
}

.aos-btn-edit:hover {
    background: #2563eb;
}

.aos-btn-delete {
    background: #ef4444;
    color: white;
}

.aos-btn-delete:hover {
    background: #dc2626;
}

/* Modal (Song-specific) */
.aos-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.aos-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aos-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.aos-modal-large .aos-modal-content {
    max-width: 700px;
}

.aos-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.aos-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.aos-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
}

.aos-modal-close:hover {
    color: #333;
}

.aos-modal-body {
    padding: 20px;
}

/* Song Form */
.aos-song-form {
    padding: 20px;
}

.aos-form-group {
    margin-bottom: 16px;
}

.aos-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.aos-form-group input,
.aos-form-group select,
.aos-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.aos-form-group input:focus,
.aos-form-group select:focus,
.aos-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.aos-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Versions Modal */
.aos-versions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.aos-versions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.aos-version-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.aos-version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.aos-version-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.aos-version-final {
    background: #22c55e;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.aos-version-instrument {
    display: inline-block;
    padding: 4px 12px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.aos-version-item audio {
    width: 100%;
    margin-bottom: 8px;
}

.aos-version-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #64748b;
}

.aos-version-actions {
    display: flex;
    gap: 8px;
}

/* Comparison Panel */
.aos-comparison-panel {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
}

.aos-comparison-panel h4 {
    margin: 0 0 15px 0;
}

.aos-comparison-panel > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.aos-comparison-panel p {
    color: #64748b;
}

/* Song Detail Modal */
.aos-song-detail-content {
    padding: 20px;
}

.aos-song-detail-info {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.aos-song-detail-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.aos-song-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aos-meta-item {
    display: flex;
    gap: 8px;
}

.aos-meta-label {
    font-weight: 600;
    color: #64748b;
    min-width: 100px;
}

.aos-meta-value {
    color: #1e293b;
}

.aos-song-detail-versions {
    padding-top: 20px;
}

.aos-song-detail-versions h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.aos-detail-versions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.aos-detail-version-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.aos-detail-version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.aos-detail-version-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.aos-detail-version-final {
    background: #22c55e;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.aos-detail-version-item audio {
    width: 100%;
    margin-bottom: 8px;
}

.aos-detail-version-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
}

/* Loading Spinner */
.aos-loading-spinner {
    display: inline-block;
}
