/* Spotify Content Display - Frontend Styles */

.scd-albums-container {
    margin: 20px 0;
}

/* Card Layout Styles */
.scd-layout-card {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.scd-album-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e1e5e9;
}

.scd-album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.scd-album-image {
    position: relative;
    overflow: hidden;
}

.scd-album-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.scd-album-card:hover .scd-album-image img {
    transform: scale(1.05);
}

.scd-album-info {
    padding: 20px;
}

.scd-album-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.scd-album-title a {
    color: #1db954;
    text-decoration: none;
    transition: color 0.3s ease;
}

.scd-album-title a:hover {
    color: #1ed760;
    text-decoration: underline;
}

.scd-album-artist {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.scd-album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #888;
}

.scd-album-meta span {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.scd-listen-button {
    display: inline-block;
    background: #1db954;
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.scd-listen-button:hover {
    background: #1ed760;
    text-decoration: none;
}

/* List Layout Styles */
.scd-layout-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

.scd-album-list-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
    transition: box-shadow 0.3s ease;
}

.scd-album-list-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.scd-album-thumbnail {
    flex-shrink: 0;
    margin-right: 16px;
}

.scd-album-thumbnail img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}

.scd-album-details {
    flex-grow: 1;
    min-width: 0;
}

.scd-album-list-item .scd-album-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.scd-album-list-item .scd-album-artist {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
}

.scd-album-list-item .scd-album-meta {
    margin: 0;
    font-size: 12px;
    color: #888;
}

.scd-album-list-item .scd-album-meta span {
    background: none;
    padding: 0;
}

.scd-album-actions {
    flex-shrink: 0;
    margin-left: 16px;
}

.scd-album-list-item .scd-listen-button {
    padding: 8px 16px;
    font-size: 12px;
}

/* View All Button Styles */
.scd-view-all-container {
    text-align: center;
    margin: 30px 0 20px 0;
}

.scd-view-all-button {
    display: inline-block;
    background: #1db954;
    color: white !important;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #1db954;
}

.scd-view-all-button:hover {
    background: #1ed760;
    border-color: #1ed760;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

/* Error and No Results Styles */
.scd-error {
    background: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid #c33;
    margin: 16px 0;
}

.scd-no-results {
    background: #f9f9f9;
    color: #666;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin: 16px 0;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .scd-layout-card {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .scd-album-list-item {
        flex-direction: column;
        text-align: center;
    }
    
    .scd-album-thumbnail {
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .scd-album-actions {
        margin-left: 0;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .scd-layout-card {
        grid-template-columns: 1fr;
    }
    
    .scd-album-info {
        padding: 16px;
    }
}

/* Song Styles (similar to album styles but for custom post type) */
.scd-songs-container {
    margin: 20px 0;
}

.scd-song-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e1e5e9;
}

.scd-song-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.scd-song-image {
    position: relative;
    overflow: hidden;
}

.scd-song-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.scd-song-card:hover .scd-song-image img {
    transform: scale(1.05);
}

.scd-song-info {
    padding: 20px;
}

.scd-song-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.scd-song-title a {
    color: #1db954;
    text-decoration: none;
    transition: color 0.3s ease;
}

.scd-song-title a:hover {
    color: #1ed760;
    text-decoration: underline;
}

.scd-song-artist {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.scd-song-album {
    margin: 0 0 12px 0;
    color: #888;
    font-size: 13px;
    font-style: italic;
}

.scd-song-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #888;
}

.scd-song-meta span {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.scd-song-excerpt {
    margin-bottom: 16px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.scd-song-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.scd-read-more-button {
    display: inline-block;
    background: #666;
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: background-color 0.3s ease;
}

.scd-read-more-button:hover {
    background: #555;
    text-decoration: none;
}

/* Song List Item Styles */
.scd-song-list-item {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
    transition: box-shadow 0.3s ease;
}

.scd-song-list-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.scd-song-thumbnail {
    flex-shrink: 0;
    margin-right: 16px;
}

.scd-song-thumbnail img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}

.scd-song-details {
    flex-grow: 1;
    min-width: 0;
}

.scd-song-list-item .scd-song-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.scd-song-list-item .scd-song-artist {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #666;
}

.scd-song-list-item .scd-song-meta {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #888;
}

.scd-song-list-item .scd-song-meta span {
    background: none;
    padding: 0;
}

.scd-song-list-item .scd-song-excerpt {
    margin: 0;
    font-size: 13px;
}

.scd-song-list-item .scd-song-actions {
    flex-shrink: 0;
    margin-left: 16px;
    flex-direction: column;
    gap: 8px;
}

.scd-song-list-item .scd-read-more-button,
.scd-song-list-item .scd-listen-button {
    padding: 6px 12px;
    font-size: 12px;
    text-align: center;
    min-width: 80px;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .scd-album-card,
    .scd-album-list-item,
    .scd-song-card,
    .scd-song-list-item {
        background: #1a1a1a;
        border-color: #333;
        color: #fff;
    }
    
    .scd-album-artist,
    .scd-song-artist {
        color: #ccc;
    }
    
    .scd-album-meta,
    .scd-song-meta {
        color: #aaa;
    }
    
    .scd-album-meta span,
    .scd-song-meta span {
        background: #333;
        color: #ccc;
    }
    
    .scd-song-album,
    .scd-song-excerpt {
        color: #ccc;
    }
    
    .scd-no-results {
        background: #2a2a2a;
        color: #ccc;
    }
    
    .scd-view-all-button {
        background: #1db954;
        border-color: #1db954;
    }
    
    .scd-view-all-button:hover {
        background: #1ed760;
        border-color: #1ed760;
    }
    
    .scd-read-more-button {
        background: #555;
    }
    
    .scd-read-more-button:hover {
        background: #666;
    }
}
