/**
 * Search Results Page Styles
 * Source: https://www.w3schools.com/css/
 */

/* Search Results Page Container */
.search-results-page {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.search-header {
    margin-bottom: 32px;
}

.search-header .section-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.search-query {
    font-weight: 400;
    color: #b3b3b3;
    font-size: 24px;
}

.results-count {
    color: #b3b3b3;
    font-size: 14px;
    margin: 0;
}

/* Empty State */
.search-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.search-empty-state h3 {
    color: #fff;
    font-size: 24px;
    margin: 0 0 8px 0;
}

.search-empty-state p {
    color: #b3b3b3;
    font-size: 14px;
    margin: 0;
}

/* Result Sections */
.search-result-section {
    margin-bottom: 40px;
}

.result-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #404040;
}

/* Songs List */
.songs-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.song-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.song-row:hover {
    background: #282828;
}

.song-row:hover .play-btn {
    opacity: 1;
}

.song-image {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    background: #404040;
    flex-shrink: 0;
}

.song-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.song-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.song-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    color: #b3b3b3;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-album {
    color: #b3b3b3;
    font-size: 14px;
    width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-duration {
    color: #b3b3b3;
    font-size: 14px;
    width: 50px;
    text-align: right;
}

.song-row .play-btn {
    background: #1db954;
    border: none;
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.song-row .play-btn:hover {
    transform: scale(1.1);
}

/* Albums Grid */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.album-card-result {
    background: #181818;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.album-card-result:hover {
    background: #282828;
}

.album-card-result:hover .play-overlay {
    opacity: 1;
    transform: translateY(0);
}

.album-cover {
    width: 100%;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    background-color: #404040;
    border-radius: 4px;
    margin-bottom: 12px;
    position: relative;
}

.play-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    background: #1db954;
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.album-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.album-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-artist {
    color: #b3b3b3;
    font-size: 12px;
}

.album-year {
    color: #6a6a6a;
    font-size: 12px;
}

/* Artists Grid */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.artist-card {
    background: #181818;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
}

.artist-card:hover {
    background: #282828;
}

.artist-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #404040;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    font-size: 48px;
}

.artist-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.artist-name {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.artist-username {
    color: #b3b3b3;
    font-size: 14px;
}

.artist-albums {
    color: #6a6a6a;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .song-album {
        display: none;
    }
    
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }
    
    .artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .artist-avatar {
        width: 80px;
        height: 80px;
    }
    
    .avatar-icon {
        font-size: 32px;
    }
}
