/* ===== ADAPTIVE ARTISTS PAGE-SPECIFIC STYLES ===== */


/* ======== REUSABLE PAGE STYLES ======== */
.aa-page-nav-spacer {
    height: 80px;
    background: var(--aa-gradient-harmony-hero);
    width: 100%;
}


/* ===== ARTISTS PAGE STYLES ===== */

/* Artists Preview Info Cards in Hero */
.artists-preview-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.preview-stat-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(4px);
}

.preview-icon {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    min-width: 2rem;
}

.preview-details h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.preview-details p {
    margin: 0;
    font-size: 0.875rem;
}

/* Active Filters Bar */
.aa-active-filters-bar {
    background: white;
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(var(--aa-primary-rgb), 0.08);
    border: 1px solid rgba(var(--aa-primary-rgb), 0.1);
}

.aa-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--aa-gradient-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 2rem;
    font-size: var(--text-xs);
    font-weight: 500;
    transition: all 0.2s ease;
}

.aa-filter-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--aa-primary-rgb), 0.3);
}

.aa-filter-badge-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    color: white;
    font-size: 0.7rem;
    margin-left: 0.15rem;
    flex-shrink: 0;
}

.aa-filter-badge-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.aa-clear-filters-link {
    color: var(--aa-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.aa-clear-filters-link:hover {
    background: rgba(var(--aa-primary-rgb), 0.1);
    color: var(--aa-primary-dark);
    text-decoration: none;
}

/* Artists Toolbar */
.aa-artists-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(var(--aa-primary-rgb), 0.08);
    border: 1px solid rgba(var(--aa-primary-rgb), 0.1);
}

.toolbar-left h2 {
    margin: 0;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.aa-sort-select {
    border: 1px solid var(--aa-medium-gray);
    border-radius: 0.5rem;
    background-color: white;
    color: var(--aa-dark-gray);
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 180px;
}

.aa-sort-select:focus {
    border-color: var(--aa-primary);
    box-shadow: 0 0 0 3px rgba(var(--aa-primary-rgb), 0.1);
    outline: none;
}

.aa-filter-button {
    border-radius: 0.5rem;
    border: 2px solid var(--aa-primary);
    color: var(--aa-primary);
    background: white;
    font-weight: 600;
    transition: all 0.2s ease;
}

.aa-filter-button:hover {
    background: var(--aa-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--aa-primary-rgb), 0.2);
}

/* Artists Grid */
.aa-artists-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.aa-artist-grid-item {
    width: 100%;
    height: 100%;
    display: flex;
    transition: all 0.3s ease;
}

.aa-artist-grid-item:hover {
    z-index: 10;
}

/* No Results Card */
.aa-no-results-card {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed var(--aa-medium-gray);
    background: linear-gradient(135deg, var(--aa-light) 0%, white 100%);
}

/* Results Summary */
.aa-results-summary {
    padding: 1rem 2rem;
    background: white;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(var(--aa-primary-rgb), 0.08);
    border: 1px solid rgba(var(--aa-primary-rgb), 0.1);
}

/* ===== ARTIST CARD COMPONENT STYLES ===== */

/* Card Container */
.aa-artist-card-container {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.aa-artist-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--aa-primary-rgb), 0.1);
}

.aa-artist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(var(--aa-primary-rgb), 0.15);
}

/* Card Header */
.aa-artist-card-header {
    background: var(--aa-gradient-primary);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(var(--aa-primary-rgb), 0.2);
}

.aa-artist-card-title {
    color: white;
    font-weight: 700;
    text-align: center;
}

/* Card Body */
.aa-artist-card-body {
    flex: 1;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--aa-light) 0%, white 100%);
}

/* Artist Photo */
.aa-artist-photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.75rem;
    background: var(--aa-light-gray);
}

.aa-artist-photo-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--artist-bg-url);
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.9);
    transition: filter 0.3s;
}

.aa-artist-photo {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Artist Bio */
.aa-artist-bio {
    line-height: 1.6;
    max-height: auto;
    overflow-y: hidden;
}

.aa-artist-bio::-webkit-scrollbar {
    width: 4px;
}

.aa-artist-bio::-webkit-scrollbar-track {
    background: var(--aa-light-gray);
    border-radius: 2px;
}

.aa-artist-bio::-webkit-scrollbar-thumb {
    background: var(--aa-primary);
    border-radius: 2px;
}

/* Artist Tags Area */
.aa-artist-tags {
    margin-top: auto;
}

/* Artwork Panel (Slide-out) */
.aa-artwork-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248, 246, 251, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
    box-shadow: -4px 0 16px rgba(var(--aa-primary-rgb), 0.15);
    z-index: 10;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    overflow: hidden;
}

.aa-artwork-panel.aa-panel-closed {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.aa-artwork-panel.aa-panel-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.aa-panel-content {
    padding: 1rem;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.aa-panel-content::-webkit-scrollbar {
    width: 6px;
}

.aa-panel-content::-webkit-scrollbar-track {
    background: var(--aa-light-gray);
}

.aa-panel-content::-webkit-scrollbar-thumb {
    background: var(--aa-primary);
    border-radius: 3px;
}

.aa-panel-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--aa-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(var(--aa-primary-rgb), 0.3);
}

.aa-panel-close:hover {
    background: var(--aa-primary-dark);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(var(--aa-primary-rgb), 0.4);
}

.aa-panel-heading {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--aa-primary);
}

/* Artwork Gallery in Panel */
.aa-artwork-gallery {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
}

/* Custom scrollbar for horizontal artwork gallery */
.aa-artwork-gallery::-webkit-scrollbar {
    height: 6px;
}

.aa-artwork-gallery::-webkit-scrollbar-track {
    background: var(--aa-light-gray);
    border-radius: 3px;
}

.aa-artwork-gallery::-webkit-scrollbar-thumb {
    background: var(--aa-primary);
    border-radius: 3px;
}

.aa-artwork-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--aa-primary-dark);
}

.aa-artwork-item {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(var(--aa-primary-rgb), 0.08);
    transition: all 0.2s ease;
    border:  1px solid rgba(var(--aa-primary-rgb), 0.1);
    min-width: 200px;
    flex-shrink: 0;
}

.aa-artwork-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(var(--aa-primary-rgb), 0.15);
}

.aa-artwork-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--aa-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aa-artwork-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.aa-artwork-item:hover .aa-artwork-image {
    transform: scale(1.05);
}

.aa-artwork-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--aa-light) 0%, var(--aa-light-gray) 100%);
    color: var(--aa-medium-gray);
}

/* ===== HOME PAGE SPOTLIGHT INTERACTIVE STYLES ===== */

.aa-artwork-clickable {
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.aa-artwork-clickable:hover {
    transform: translateY(-2px) scale(1.02);
    z-index: 10;
}

.aa-artwork-clickable:focus {
    outline: 3px solid var(--aa-accent-cool);
    outline-offset: 3px;
    z-index: 10;
}

.spotlight-artwork-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.artwork-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--aa-primary-rgb), 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.5rem;
}

.aa-artwork-clickable:hover .artwork-hover-overlay {
    opacity: 1;
}

.artwork-hover-icon {
    font-size: 2rem;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.aa-artwork-clickable:hover .artwork-hover-icon {
    transform: scale(1);
}

.spotlight-artwork-img {
    transition: transform 0.3s var(--ease-out);
}

.aa-artwork-clickable:hover .spotlight-artwork-img {
    transform: scale(1.05);
}

/* Artist portrait clickable effects */
.artist-spotlight-frame {
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.artist-spotlight-frame:hover {
    transform: translateY(-3px) scale(1.02);
    z-index: 10;
}

.artist-spotlight-frame:focus {
    outline: 3px solid var(--aa-accent-warm);
    outline-offset: 3px;
    z-index: 10;
}

/* ===== TAGS DISPLAY COMPONENT STYLES ===== */

.aa-tags-display {
    width: 100%;
}

.aa-tags-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.aa-tag-group {
    display: flex;
    flex-direction: column;
}

.aa-tag-type-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.aa-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.aa-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--tag-color);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    font-size: var(--text-xs);
}

.aa-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.aa-tag-name {
    user-select: none;
    line-height: 1.2;
}

.aa-tag-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    color: white;
    font-size: 0.65rem;
    margin-left: 0.15rem;
    flex-shrink: 0;
}

.aa-tag-remove:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.aa-tag-remove:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.aa-tag-warning {
    color: var(--aa-warning);
    display: flex;
    align-items: center;
    font-size: var(--text-xs);
    margin-top: 0.25rem;
}

.aa-tag-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.aa-tag-button {
    background: var(--aa-gradient-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    font-size: var(--text-sm);
}

.aa-tag-button:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--aa-primary-rgb), 0.3);
}

.aa-tag-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== REUSABLE ARTWORK MINI COMPONENTS ===== */

/* Mini Artwork Grid - Reusable across pages */
.mini-artwork {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mini-artwork:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.8);
}

.mini-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-artwork-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mini-artwork:hover .mini-artwork-overlay {
    opacity: 1;
}

.artwork-title {
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Journey Piece - Reusable for small artwork previews */
.journey-piece {
    width: 60px;
    height: 60px;
    border-radius: 0.375rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.journey-piece:hover {
    transform: translateY(-2px) scale(1.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.journey-piece img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== REUSABLE BADGE COMPONENTS ===== */

.artist-featured-badge,
.community-badge,
.journey-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: var(--text-xs);
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

/* ===== REUSABLE GRID COMPONENTS ===== */

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    flex: 1;
}

.favorite-artwork {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.favorite-artwork:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.favorite-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-votes {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.125rem;
}