/*
========================================
File: albums-page-pro.css
========================================
*/

/* --- Header da Página (Reutilizado e Simplificado) --- */
.page-header--albums-pro {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-8);
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid var(--color-border);
}

.page-header--albums-pro .page-header__title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--color-text-primary);
}

@media (min-width: 768px) {
    .page-header--albums-pro .page-header__title {
        font-size: var(--fs-4xl);
    }
}

/* --- Card de Álbum em Destaque --- */
.album-highlight {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile */
    gap: var(--spacing-6);
    background: var(--color-bg-content);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-10);
}

.album-highlight__image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.album-highlight__content {
    padding: 0 var(--spacing-6) var(--spacing-6);
    display: flex;
    flex-direction: column;
}

.album-highlight__tag {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-2);
}

.album-highlight__title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--color-text-primary);
}

.album-highlight__artist {
    font-size: var(--fs-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-4);
}

.album-highlight__actions {
    margin-top: auto;
    /* Empurra para o final */
    display: flex;
    gap: var(--spacing-3);
}

@media (min-width: 768px) {
    .album-highlight {
        grid-template-columns: 280px 1fr;
        height: 280px;
    }

    .album-highlight__content {
        padding: var(--spacing-8);
        justify-content: center;
    }
}

/* --- 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);
    }
}

/* --- Card de Álbum Refinado --- */
.album-card-pro {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-color: var(--color-bg-content);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-card-pro:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.album-card-pro__artwork {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.album-card-pro:hover .album-card-pro__artwork {
    transform: scale(1.1);
}

.album-card-pro__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Para posicionar o conteúdo e o botão */
    padding: var(--spacing-4);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-card-pro:hover .album-card-pro__overlay,
.album-card-pro:focus-within .album-card-pro__overlay {
    opacity: 1;
}

.album-card-pro__info {
    transform: translateY(15px);
    transition: transform 0.3s ease 0.1s;
}

.album-card-pro:hover .album-card-pro__info {
    transform: translateY(0);
}

.album-card-pro__title {
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.album-card-pro__meta {
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
}

.album-card-pro__play-btn {
    position: absolute;
    bottom: var(--spacing-4);
    right: var(--spacing-4);
    width: 44px;
    height: 44px;
    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);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);

    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.album-card-pro:hover .album-card-pro__play-btn {
    opacity: 1;
    transform: scale(1);
}