/* ==============================================
   Artists Page Styles
   Scoped with .page-artists to prevent conflicts
   ============================================== */

/* Page-specific variables and base styles */
.page-artists {
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', sans-serif;
}

.page-artists h1,
.page-artists h2,
.page-artists h3,
.page-artists h4,
.page-artists h5,
.page-artists h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

/* Hero Section Override for Artists */
.page-artists .hero-section {
    min-height: 35vh;
}

/* Filters Section */
.page-artists .filters-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

/* Filter Scroll Wrapper - horizontal scroll */
.page-artists .filter-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
}

.page-artists .filter-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* Filter Controls - inline */
.page-artists .filter-controls {
    display: flex;
    gap: 0.5rem;
    width: max-content;
    margin: 0 auto;
}

/* Filter Button - minimal style */
.page-artists .filter-btn {
    white-space: nowrap;
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.page-artists .filter-btn:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.page-artists .filter-btn.active {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* Artists Grid */
.page-artists .artists-grid {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

/* Override global style.css conflicts - visibility and transform */
.page-artists .artists-grid .artist-card {
    display: flex !important;
    opacity: 1 !important;
    transform: none !important;
    /* Override translateX(100px) from style.css */
}

/* Hover: must use higher specificity + !important to override both style.css and the rule above */
.page-artists .artists-grid .artist-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--text-primary);
}

.page-artists .artist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: var(--bg-primary);
    text-decoration: none;
    color: inherit;
}

[data-theme="dark"] .page-artists .artist-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.page-artists .artist-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid var(--border);
    background-color: var(--bg-secondary);
}

.page-artists .artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-artists .artist-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3rem;
    font-weight: 700;
}

.page-artists .artist-name {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.page-artists .artist-genre {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 500;
}

.page-artists .artist-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 280px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-artists .artist-stats {
    display: flex;
    gap: 2rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    width: 100%;
    justify-content: center;
}

.page-artists .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-artists .stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.page-artists .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Pagination */
.page-artists .pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    max-width: 1440px;
    margin: 0 auto;
}

.page-artists .pagination-btn {
    padding: 0.75rem 1.5rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-artists .pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-artists .pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-artists .page-info {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Empty State */
.page-artists .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 1024px) {
    .page-artists .artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .page-artists .hero-section {
        min-height: 30vh;
    }

    .page-artists .filter-controls {
        gap: 0.5rem;
    }

    .page-artists .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .page-artists .artists-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem 3rem;
    }

    .page-artists .artist-avatar {
        width: 120px;
        height: 120px;
    }

    .page-artists .pagination-controls {
        gap: 1rem;
        padding: 1.5rem;
    }

    .page-artists .pagination-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}