/* ==========================================================================
   Artists Archive Page Styles - Akordha
   ========================================================================== */

/* Breadcrumb */
.ak-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ak-breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}
.ak-breadcrumb a:hover {
    color: var(--primary);
}

/* Header Hero Card */
.artists-hero-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 28px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 280px;
}

.hero-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
    max-width: 650px;
}

.hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stat-box {
    background: rgba(108, 92, 231, 0.06);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 14px;
    padding: 12px 18px;
    text-align: center;
    min-width: 95px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: transform 0.2s ease;
}

.hero-stat-box:hover {
    transform: translateY(-2px);
}

.hero-stat-box .stat-number {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
}

.hero-stat-box .stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-stat-box.highlight-chords {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.18);
}
.hero-stat-box.highlight-chords .stat-number {
    color: #10b981;
}

.hero-stat-box.highlight-bt {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}
.hero-stat-box.highlight-bt .stat-number {
    color: #f59e0b;
}

/* Toolbar & Instant Search */
.artists-toolbar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px 22px;
    margin-bottom: 25px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    right: 18px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.artist-search-input {
    width: 100%;
    height: 52px;
    padding: 10px 48px 10px 48px;
    background: var(--bg-body, #f8fafc);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1.02rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.artist-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15);
}

.search-clear-btn {
    position: absolute;
    left: 16px;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Toolbar Controls */
.toolbar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.filter-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-chip:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

.filter-chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 3px 12px rgba(108, 92, 231, 0.3);
}

.filter-chip.chip-bt {
    border-color: rgba(245, 158, 11, 0.3);
    color: #d97706;
}
.filter-chip.chip-bt:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}
.filter-chip.chip-bt.active {
    background: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35);
}

.filter-chip .chip-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 7px;
    border-radius: 20px;
    font-size: 0.76rem;
}
.filter-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.toolbar-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-counter {
    font-size: 0.86rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.artist-sort-select {
    padding: 7px 14px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-dark);
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}
.artist-sort-select:focus {
    border-color: var(--primary);
}

/* Artists Grid */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 50px;
}

/* Artist Card */
.artist-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.artist-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.12);
}

/* Backing Track Spotlight Card */
.artist-card.is-bt-artist {
    border-color: rgba(245, 158, 11, 0.28);
    background: linear-gradient(135deg, var(--card-bg) 70%, rgba(245, 158, 11, 0.04) 100%);
}
.artist-card.is-bt-artist:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.16);
}

.card-ribbon-bt {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-bottom-right-radius: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
    z-index: 2;
}

/* Avatar */
.artist-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    font-weight: 900;
    font-size: 1.55rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.25s ease;
}

.artist-card:hover .artist-avatar {
    transform: scale(1.06);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vibrant Gradients for Avatars */
.grad-1 { background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%); }
.grad-2 { background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%); }
.grad-3 { background: linear-gradient(135deg, #00b894 0%, #55efc4 100%); }
.grad-4 { background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%); }
.grad-5 { background: linear-gradient(135deg, #e84393 0%, #fd79a8 100%); }
.grad-6 { background: linear-gradient(135deg, #636e72 0%, #b2bec3 100%); }

/* Artist Info */
.artist-info {
    flex: 1;
    min-width: 0;
}

.artist-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.artist-card:hover .artist-name {
    color: var(--primary);
}

.artist-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.badge-item {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.chord-badge {
    background: rgba(108, 92, 231, 0.08);
    color: var(--primary);
}

.bt-badge {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.general-badge {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

/* Chevron */
.card-chevron {
    color: var(--text-muted);
    opacity: 0.4;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.artist-card:hover .card-chevron {
    opacity: 1;
    color: var(--primary);
    transform: translateX(-4px);
}

/* Empty State */
.artists-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: 20px;
    margin: 20px 0 50px 0;
}

.empty-icon {
    margin-bottom: 15px;
    opacity: 0.6;
}

.empty-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.empty-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
    .artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 14px;
    }
    .hero-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .artists-hero-card {
        padding: 22px 18px;
        flex-direction: column;
        align-items: stretch;
    }
    .hero-stats {
        width: 100%;
        justify-content: space-between;
    }
    .hero-stat-box {
        flex: 1;
        min-width: 0;
        padding: 10px 8px;
    }
    .hero-stat-box .stat-number {
        font-size: 1.25rem;
    }
    
    .artists-toolbar {
        padding: 16px 14px;
    }
    
    .toolbar-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-chips {
        width: 100%;
    }
    
    .toolbar-status {
        width: 100%;
        justify-content: space-between;
    }

    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .artist-card {
        padding: 14px 12px;
        gap: 12px;
    }

    .artist-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .artist-name {
        font-size: 0.92rem;
        margin-bottom: 4px;
    }

    .badge-item {
        font-size: 0.68rem;
        padding: 2px 6px;
    }

    .card-chevron {
        display: none;
    }
}

@media (max-width: 440px) {
    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .artist-card {
        padding: 12px 10px;
        gap: 10px;
    }

    .artist-avatar {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    .artist-name {
        font-size: 0.86rem;
    }

    .badge-item {
        font-size: 0.65rem;
        padding: 2px 5px;
    }

    .card-ribbon-bt {
        font-size: 0.62rem;
        padding: 2px 6px;
    }
}
