/* Playlist UI Styles */

.playlist-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.playlist-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1db954;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.playlist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

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

.playlist-empty h3 {
    margin: 0 0 8px 0;
    color: #333;
}

.playlist-empty p {
    margin: 0 0 24px 0;
    color: #666;
    max-width: 400px;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.playlist-header h2 {
    margin: 0;
    color: #333;
    font-size: 28px;
}

.platform-section {
    margin-bottom: 40px;
}

.platform-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.platform-icon {
    font-size: 24px;
}

.playlist-count {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-left: 8px;
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.playlist-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.playlist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #1db954;
}

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

.playlist-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    flex: 1;
    margin-right: 12px;
}

.playlist-role {
    background: #1db954;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.playlist-card-body {
    margin-bottom: 16px;
}

.playlist-platform {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.playlist-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.playlist-card-actions {
    display: flex;
    gap: 8px;
}

/* Button Styles */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #1db954;
    color: white;
}

.btn-primary:hover {
    background: #1ed760;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #1db954;
    border: 1px solid #1db954;
}

.btn-outline:hover {
    background: #1db954;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Toast Styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: #1db954;
}

.toast-error {
    background: #e74c3c;
}

.toast-info {
    background: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .playlist-container {
        padding: 16px;
    }

    .playlist-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .playlist-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .playlist-card {
        padding: 16px;
    }

    .toast {
        right: 16px;
        left: 16px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .playlist-header h2 {
        font-size: 24px;
    }

    .platform-title {
        font-size: 18px;
    }

    .playlist-title {
        font-size: 16px;
    }
}
