/* MCPOTAR User Playlists - Styles */

.mvup-playlists-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.mvup-playlists-container h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.mvup-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mvup-btn-primary {
    background-color: #C8860A;
    color: white;
    margin-bottom: 20px;
}

.mvup-btn-primary:hover {
    background-color: #a86f08;
}

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

.mvup-btn-secondary:hover {
    background-color: #e0e0e0;
}

.mvup-btn-danger {
    background-color: #dc3545;
    color: white;
}

.mvup-btn-danger:hover {
    background-color: #c82333;
}

/* Playlists Grid */
.mvup-playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mvup-playlist-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mvup-playlist-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.mvup-playlist-header {
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mvup-playlist-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.mvup-playlist-count {
    font-size: 12px;
    opacity: 0.9;
}

.mvup-playlist-body {
    padding: 16px;
}

.mvup-playlist-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.mvup-playlist-meta {
    font-size: 11px;
    color: #999;
    margin-bottom: 12px;
}

.mvup-playlist-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-right: 8px;
}

.mvup-playlist-badge.public {
    background: #d4edda;
    color: #155724;
}

.mvup-playlist-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.mvup-playlist-actions button {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
}

/* Modal */
.mvup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.mvup-modal.active {
    display: flex;
}

.mvup-modal-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.mvup-modal-header {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.mvup-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

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

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

.mvup-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    color: #333;
}

.mvup-form-group input,
.mvup-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}

.mvup-form-group input:focus,
.mvup-form-group textarea:focus {
    outline: none;
    border-color: #C8860A;
    box-shadow: 0 0 0 3px rgba(200, 134, 10, 0.1);
}

.mvup-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.mvup-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mvup-checkbox-group input[type="checkbox"] {
    width: auto;
}

.mvup-modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.mvup-modal-footer button {
    padding: 10px 20px;
}

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

.mvup-empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.mvup-empty-state-text {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Loading */
.mvup-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #C8860A;
    border-radius: 50%;
    animation: mvup-spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .mvup-playlists-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .mvup-modal-content {
        padding: 20px;
    }

    .mvup-playlist-actions {
        flex-direction: column;
    }

    .mvup-playlist-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .mvup-playlists-grid {
        grid-template-columns: 1fr;
    }

    .mvup-playlists-container {
        padding: 10px;
    }

    .mvup-playlists-container h2 {
        font-size: 22px;
    }
}
