/*
========================================
File: playlists-page-pro.css
========================================
*/

/* --- Header da Página (Simplificado) --- */
.page-header--playlists-pro {
    margin-bottom: var(--spacing-6);
}

.page-header--playlists-pro .page-header__title {
    font-size: var(--fs-4xl);
    font-weight: 800;
    color: var(--color-text-primary);
}

@media (min-width: 768px) {
    .page-header--playlists-pro .page-header__title {
        font-size: var(--fs-5xl);
    }
}

/* --- Filtros (Reutilizado com pequenos ajustes) --- */
.filters-bar {
    display: flex;
    overflow-x: auto;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-10);
    padding-bottom: var(--spacing-2);
    /* Espaço para scrollbar */
}

.filters-bar::-webkit-scrollbar {
    height: 4px;
}

.filters-bar::-webkit-scrollbar-track {
    background: transparent;
}

.filters-bar::-webkit-scrollbar-thumb {
    background: var(--color-bg-elevated);
    border-radius: var(--border-radius-full);
}

/* --- Grid de Playlists (Mosaico) --- */
.playlists-grid-pro {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-6);
}

@media (min-width: 640px) {
    .playlists-grid-pro {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .playlists-grid-pro {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .playlists-grid-pro {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* --- Card de Playlist Refinado --- */
.playlist-card-pro {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--color-bg-content);
    /* Fallback */
}

.playlist-card-pro:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.playlist-card-pro__artwork {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.playlist-card-pro:hover .playlist-card-pro__artwork {
    transform: scale(1.1);
}

.playlist-card-pro__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-4);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 30%, transparent 60%);

    opacity: 0;
    transition: opacity 0.3s ease;
}

.playlist-card-pro:hover .playlist-card-pro__overlay,
.playlist-card-pro:focus-within .playlist-card-pro__overlay {
    opacity: 1;
}

.playlist-card-pro__content {
    transform: translateY(10px);
    transition: transform 0.3s ease 0.1s;
}

.playlist-card-pro:hover .playlist-card-pro__content {
    transform: translateY(0);
}

.playlist-card-pro__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-1);
    line-height: 1.2;
}

.playlist-card-pro__creator {
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
}

.playlist-card-pro__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 56px;
    height: 56px;
    background-color: var(--color-primary);
    color: var(--color-bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-3xl);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);

    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.playlist-card-pro:hover .playlist-card-pro__play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Card em Destaque */
.playlist-card-pro--featured {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 639px) {

    /* sm */
    .playlist-card-pro--featured {
        grid-column: span 2;
        /* Ocupa a largura toda em mobile */
        aspect-ratio: 16 / 9;
    }
}