/*
========================================
File: albums-page-pro.css (Estilos para o Header da Página)
========================================
*/

/* --- Page Header (usado como base) --- */
.page-header {
    text-align: center;
    padding: var(--spacing-8) 0;
}

/* --- Variação para a Página de Álbuns --- */
.page-header--albums {
    /* Herda o padding e text-align do .page-header */
}

.page-header--albums .page-header__icon-wrapper {
    display: inline-block;
    padding: var(--spacing-3);
    background-color: var(--color-primary-darker);
    border-radius: var(--border-radius-full);
    margin-bottom: var(--spacing-4);
    box-shadow: 0 0 20px var(--color-primary-darker);
    /* Animação sutil opcional */
    transition: transform 0.3s ease;
}

.page-header--albums .page-header__icon-wrapper:hover {
    transform: scale(1.1);
}

.page-header--albums .page-header__icon {
    color: var(--color-primary);
    font-size: var(--fs-4xl);
    /* 36px */
    display: block;
    /* Para garantir alinhamento correto dentro do wrapper */
}

.page-header--albums .page-header__title {
    font-size: var(--fs-4xl);
    /* 36px */
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-2);
}

.page-header--albums .page-header__title i {
    color: var(--color-primary);
    font-weight: normal;
    vertical-align: middle;
}

.page-header--albums .page-header__subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: var(--fs-lg);
    /* 18px */
    color: var(--color-text-secondary);
}

/* Media Query para telas maiores */
@media (min-width: 768px) {
    .page-header--albums .page-header__title {
        font-size: 5rem;
        /* 48px */
    }
}

/*
========================================
File: albums-page-pro.css
========================================
*/


/* --- Barra de Ações --- */
.actions-bar--albums {
    display: flex;
    justify-content: flex-end;
    /* Alinha o seletor à direita */
    margin-bottom: var(--spacing-8);
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid var(--color-border);
}

/* O componente .actions-bar__sort-select é reutilizado do CSS principal */


/* --- Grid de Álbuns --- */
.albums-grid-pro {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-6);
}

@media (min-width: 640px) {
    .albums-grid-pro {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .albums-grid-pro {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .albums-grid-pro {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1280px) {
    .albums-grid-pro {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* --- Card de Álbum Refinado --- */
.album-card-pro {
    display: block;
    /* Para o <a> se comportar como bloco */
    position: relative;
    transition: var(--transition-fast);
}

.album-card-pro .ds-title {
    top: 0;
    position: absolute;
    padding: 10px;
    display: block;
    overflow: hidden;
}

.ds-title h3,
.ds-title p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 10.5rem;
}

.album-card-pro__artwork-wrapper {
    position: relative;
    margin-bottom: var(--spacing-3);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: var(--transition-fast);
}

.album-card-pro:hover .album-card-pro__artwork-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.album-card-pro__artwork {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.album-card-pro:hover .album-card-pro__artwork {
    transform: scale(1.05);
}

.album-card-pro__play-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.37);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: var(--transition-fast);
}

.album-card-pro:hover .album-card-pro__play-overlay {
    opacity: 1;
}

.album-card-pro__play-btn {
    width: 50px;
    height: 50px;
    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-2xl);
    transform: scale(0.8);
    opacity: 0;
    transition: var(--transition-fast);
}

.album-card-pro:hover .album-card-pro__play-btn {
    transform: scale(1);
    opacity: 1;
}

.album-card-pro__title {
    display: block;
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition-fast);
    font-size: var(--fs-sm);
    margin-top: var(--spacing-1);
}

.album-card-pro:hover .album-card-pro__title {
    color: var(--color-primary);
}

.album-card-pro__meta {
    display: block;
    font-size: var(--fs-xs);
    color: var(--color-text-secondary);
}