/*
========================================
File: artists-page-pro.css
========================================
*/

/* --- Page Header --- */
.page-header--artists {
    padding: var(--spacing-8) 0;
    text-align: center;
}

.page-header--artists .page-header__title {
    font-size: var(--fs-5xl);
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.1;
}

.page-header--artists .page-header__title i {
    color: var(--color-primary);
    font-weight: normal;
    vertical-align: middle;
}

.page-header--artists .page-header__subtitle {
    max-width: 500px;
    margin: var(--spacing-2) auto 0;
    color: var(--color-text-secondary);
}

@media (min-width: 768px) {
    .page-header--artists .page-header__title {
        font-size: 5rem;
        /* ~80px */
    }
}

/* --- Filtro Alfabético --- */
.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-1);
    background-color: var(--color-bg-content);
    padding: var(--spacing-2);
    border-radius: var(--border-radius-lg);
    margin: var(--spacing-8) auto;
    max-width: fit-content;
}

.alphabet-filter__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
}

.alphabet-filter__link:hover {
    background-color: var(--color-bg-elevated);
    color: var(--color-text-primary);
}

.alphabet-filter__link.active {
    background-color: var(--color-primary);
    color: var(--color-bg-dark);
}

/* --- Grid de Artistas Assimétrico --- */
.artist-gallery-grid {
    display: grid;
    gap: var(--spacing-6);
    grid-template-columns: repeat(2, 1fr);
    /* 2 colunas em mobile */
}

/* NOVO: Layout Principal da Página de Artistas */
.artist-page-layout {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile first: uma coluna */
    gap: var(--spacing-8);
    margin-top: var(--spacing-10);
}

@media (min-width: 1024px) {

    /* lg */
    .artist-page-layout {
        /* Desktop: Conteúdo principal (9/12) + Sidebar (3/12) */
        grid-template-columns: repeat(12, 1fr);
    }

    .artist-page-layout__main {
        grid-column: span 9 / span 9;
    }

    .artist-page-layout__sidebar {
        grid-column: span 3 / span 3;
    }
}

.artist-page-layout__sidebar .sidebar-sticky-content {
    position: sticky;
    top: 6rem;
    /* Altura do header + espaçamento */
}

@media (min-width: 768px) {

    /* md */
    .artist-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {

    /* lg */
    .artist-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {

    /* xl */
    .artist-gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.artist-card-pro {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.artist-card-pro:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Card em Destaque */
@media (min-width: 768px) {
    .artist-card-pro--featured {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: 1 / 1;
        /* Mantém quadrado mesmo ocupando mais espaço */
    }
}

.artist-card-pro__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.artist-card-pro:hover .artist-card-pro__image {
    transform: scale(1.1);
}

.artist-card-pro__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.artist-card-pro:hover .artist-card-pro__overlay,
.artist-card-pro:focus-within .artist-card-pro__overlay {
    opacity: 1;
}

.artist-card-pro__name {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    transform: translateY(10px);
    transition: transform 0.3s ease 0.1s;
}

.artist-card-pro:hover .artist-card-pro__name {
    transform: translateY(0);
}

/* --- Sidebar (Reutilizada com pequenos ajustes) --- */
.sidebar {
    display: none;
    /* Escondida por padrão em mobile */
}

@media (min-width: 1024px) {

    /* lg */
    .sidebar {
        display: block;
    }
}

.sidebar-section {
    background-color: var(--color-bg-content);
    padding: var(--spacing-6);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-8);
}

.sidebar-section__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-4);
}

.sidebar-list__item {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-2);
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
}

.sidebar-list__item:hover {
    background-color: var(--color-bg-elevated);
}

.sidebar-list__image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
}

.sidebar-list__info {
    overflow: hidden;
}

.sidebar-list__title {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-list__item:hover .sidebar-list__title {
    color: var(--color-text-primary);
}

.sidebar-list__subtitle {
    font-size: var(--fs-xs);
    color: var(--color-text-tertiary);
}

.sidebar__view-all {
    display: block;
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--color-primary);
    margin-top: var(--spacing-4);
}

.sidebar__view-all:hover {
    text-decoration: underline;
}