/* Band List Page Styles */
/* Modern Band List Styles */
.band-list-page {
    padding: 30px 0 60px;
    background: #ffffff;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
}

.page-subtitle {
    color: #666666;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filters and Search */
.band-filters {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #1a1a1a;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    font-size: 1.2rem;
}

.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #1a1a1a;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #1a1a1a;
}

.filter-select option {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e9ecef;
}

/* Band Grid — hidden (only grid/card view, list view still visible) */
.band-grid:not(.alpha-view) {
    display: none !important;
}

.band-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.band-card:hover {
    transform: translateY(-8px);
    border-color: #1a1a1a;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.band-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #1a1a1a;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.band-card:hover::before {
    opacity: 1;
}

.band-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.band-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.band-card:hover .band-image {
    transform: scale(1.1);
}

.band-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.band-card:hover .band-overlay {
    opacity: 1;
}

.band-genre {
    background: #1a1a1a;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.band-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.band-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
}

.band-description {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.band-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.band-country {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 600;
}

.country-flag {
    font-size: 1.2rem;
}

.band-years {
    color: #666666;
    font-size: 0.9rem;
    font-weight: 500;
}

.band-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.band-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(26, 26, 26, 0.2);
    color: white;
    text-decoration: none;
}

.band-link-disabled {
    background: #e9ecef !important;
    color: #adb5bd !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
}

.band-link-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #e9ecef !important;
    color: #adb5bd !important;
}

/* Pagination */
.band-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 12px 25px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #1a1a1a;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #1a1a1a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-number:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
}

.page-number.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.empty-title {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.empty-message {
    color: #666666;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #666666;
    font-size: 1.1rem;
}

/* Stats Bar */
.band-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px 25px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.stat-label {
    color: #666666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

.view-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #666666;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-btn.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
}

.view-btn:hover {
    background: #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .band-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-select {
        min-width: 100%;
    }

    .band-pagination {
        flex-wrap: wrap;
    }

    .band-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }

    .band-grid {
        grid-template-columns: 1fr;
    }

    .band-content {
        padding: 20px;
    }

    .band-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-item {
        flex: 0 0 100%;
    }

    .view-toggle {
        justify-content: center;
    }
}

/* Animation for card appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.band-card {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
    opacity: 0;
}

/* ── Alpha nav (A–Z quick-jump bar) ─────────────────────────────────────── */
.alpha-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
    border-bottom: 2px solid #1a1a1a;
    padding: 10px 4px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 2px;
}

.alpha-nav-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    background: none;
    border: none;
    color: #d0d0d0;
    cursor: default;
    transition: background 0.15s, color 0.15s;
}

.alpha-nav-btn.has-bands {
    color: #1a1a1a;
    cursor: pointer;
}

.alpha-nav-btn.has-bands:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* ── Alpha sections ──────────────────────────────────────────────────────── */
.band-grid.alpha-view {
    display: block;
}

.alpha-section {
    margin-bottom: 36px;
}

.alpha-header {
    font-size: 2.8rem;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: 2px;
    line-height: 1;
    padding-bottom: 10px;
    border-bottom: 3px solid #1a1a1a;
    margin-bottom: 0;
}

/* ── Band inline table ───────────────────────────────────────────────────── */
.alpha-band-inline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 0 4px;
}

.blist-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    padding: 5px 8px 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.blist-name:hover {
    text-decoration: underline;
    color: #1a1a1a;
}

.blist-name-disabled {
    color: #bbb;
    cursor: default;
}

.blist-name-disabled:hover {
    text-decoration: none;
}

@media (max-width: 900px) {
    .alpha-band-inline {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .alpha-band-inline {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Accessibility improvements */
.search-input:focus-visible,
.filter-select:focus-visible,
.view-btn:focus-visible,
.pagination-btn:focus-visible,
.page-number:focus-visible,
.band-link:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .band-filters,
    .view-toggle,
    .band-link,
    .pagination-btn {
        display: none !important;
    }

    .band-card {
        break-inside: avoid;
        border: 1px solid #e9ecef;
        box-shadow: none;
    }

    .band-card:hover {
        transform: none;
    }
}
