/**
 * Lyrics3s - Artist Directory Stylesheet (archive-artists.css)
 * Tối ưu hóa Database Listing & Directory Scanning: Card compact, Grid 3 cột, Alphabet Bar
 *
 * @package Lyrics3s_Theme
 * < 350 lines per rule 11
 */

@import url('archive-artists-grid.css');
@import url('archive-artists-filters.css');

.l3s-artist-directory-page {
    padding-bottom: 70px;
}

/* ==========================================================================
   1. BREADCRUMB
   ========================================================================== */
.l3s-artist-directory-page .l3s-breadcrumb {
    margin: 0 0 12px 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.l3s-artist-directory-page .l3s-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.l3s-artist-directory-page .l3s-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.l3s-artist-directory-page .l3s-breadcrumb a:hover {
    color: var(--primary);
}
.l3s-artist-directory-page .l3s-breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ==========================================================================
   2. HERO SECTION (Ô LY TÍM NHẠT / PURPLE GRID PATTERN)
   ========================================================================== */
.l3s-artist-hero-section {
    position: relative;
    background-color: var(--bg-card);
    background-image: 
        linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: left top;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0 34px 0;
    margin-bottom: 24px;
    overflow: visible;
    z-index: 50;
}
.l3s-artist-hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 65%, var(--bg-app) 100%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}
.l3s-artist-hero-section .l3s-inner-container {
    position: relative;
    z-index: 1;
}

body.l3s-dark-mode .l3s-artist-hero-section {
    background-color: var(--bg-card);
    background-image: 
        linear-gradient(rgba(167, 139, 250, 0.08) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(167, 139, 250, 0.08) 1px, transparent 1px);
    border-bottom-color: var(--border-color);
}

.l3s-artist-hero {
    text-align: left;
    padding: 6px 0 0 0;
    max-width: 100%;
    margin: 0;
}
.l3s-artist-hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    text-align: left;
}
.l3s-artist-hero-sub {
    font-size: 1rem;
    color: var(--text-sub);
    margin-bottom: 20px;
    text-align: left;
}
.l3s-artist-search-box {
    position: relative;
    max-width: 580px;
    margin: 0;
    text-align: left;
}
.l3s-artist-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}
.l3s-artist-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px rgba(124, 58, 237, 0.14), 0 8px 24px rgba(0, 0, 0, 0.06);
}
.l3s-artist-search-ico {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    pointer-events: none;
}
.l3s-artist-input {
    flex: 1;
    height: 48px;
    border: none;
    background: transparent;
    padding: 0 16px 0 46px;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    border-radius: 9999px;
}
.l3s-artist-search-clear {
    position: absolute;
    right: 80px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
}
.l3s-artist-search-clear:hover {
    color: var(--text-primary);
    background: var(--border-color);
}
.l3s-artist-search-btn {
    height: 38px;
    padding: 0 20px;
    margin-right: 5px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.l3s-artist-search-btn:hover {
    opacity: 0.92;
}

/* Autocomplete Floating Box */
.l3s-artist-autocomplete {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
    z-index: 1000;
    overflow: hidden;
    text-align: left;
}
.l3s-autocomplete-header {
    padding: 10px 16px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-subtle);
}
.l3s-autocomplete-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 340px;
    overflow-y: auto;
}
.l3s-autocomplete-item {
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.15s;
}
.l3s-autocomplete-item:last-child {
    border-bottom: none;
}
.l3s-autocomplete-item:hover {
    background: var(--bg-subtle);
}
.l3s-auto-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
}
.l3s-auto-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-subtle);
}
.l3s-auto-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.l3s-auto-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.l3s-auto-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.l3s-auto-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.l3s-auto-meta {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}
.l3s-auto-no-res {
    padding: 18px 16px;
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
}
.l3s-spin {
    animation: l3s-spin-anim 0.8s linear infinite;
}
@keyframes l3s-spin-anim {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Search Suggestions */
.l3s-artist-search-suggest {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 14px;
    font-size: 13.5px;
    text-align: left;
}
.l3s-suggest-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 13px;
    flex-shrink: 0;
}
.l3s-suggest-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}
.l3s-suggest-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 9999px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.l3s-suggest-chip:hover {
    color: var(--primary);
    border-color: var(--primary-border);
    background: var(--primary-light);
    transform: translateY(-1px);
}


