/**
 * JazzMore Custom Styles for Uncode Theme
 * Fixed version - 2026-03-29 20:35
 * Fixed issues:
 * - Filters horizontal layout
 * - Image display problems
 * - Removed quick navigation
 */

/* ============================================
   GLOBAL STYLES
   ============================================ */

.page-content {
    padding: 40px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* ============================================
   FILTERS BAR - HORIZONTAL LAYOUT
   ============================================ */

.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    align-items: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.filter-item {
    flex-shrink: 0;
}

.filter-item select {
    padding: 10px 40px 10px 15px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #374151;
    min-width: 140px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    transition: all 0.2s;
}

.filter-item select:hover {
    border-color: #4F46E5;
}

.filter-item select:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.filter-count {
    font-size: 14px;
    color: #6b7280;
    margin-left: auto;
}

/* ============================================
   LETTER FILTER
   ============================================ */

.letter-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 8px;
}

.letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    background: white;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.letter:hover {
    background: #e5e7eb;
    color: #1a1a1a;
}

.letter.active {
    background: #4F46E5;
    color: white;
}

/* ============================================
   ALBUMS GRID
   ============================================ */

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.album-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.album-cover {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f3f4f6;
}

.album-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-card:hover .album-cover img {
    transform: scale(1.05);
}

.album-info {
    padding: 16px;
}

.album-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.album-genres {
    font-size: 12px;
    color: #9ca3af;
}

.discogs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #4F46E5;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.discogs-btn:hover {
    background: #4338ca;
    color: white;
}

/* ============================================
   ARTISTS GRID
   ============================================ */

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.artist-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.artist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.artist-photo {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.artist-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artist-card:hover .artist-photo img {
    transform: scale(1.05);
}

.no-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-initial {
    font-size: 64px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.tier-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-legendary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tier-important {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.tier-known {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.artist-info {
    padding: 16px;
}

.artist-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.artist-meta {
    font-size: 13px;
    color: #6b7280;
}

.artist-genre {
    display: block;
    margin-bottom: 4px;
}

.artist-albums {
    font-weight: 600;
}

/* ============================================
   SINGLE ARTIST PAGE
   ============================================ */

.single-artist-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
}

.artist-big-photo {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.artist-big-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-details {
    flex: 1;
}

.artist-details h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 16px;
}

.artist-dates {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.artist-genres-single {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.genre-tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
}

.artist-bio {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.9;
}

/* ============================================
   SINGLE ALBUM PAGE
   ============================================ */

.single-album-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 20px;
    color: white;
}

.album-big-cover {
    flex-shrink: 0;
    width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.album-big-cover img {
    width: 100%;
    display: block;
}

.album-details {
    flex: 1;
}

.album-details h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px;
}

.album-artist-name {
    font-size: 18px;
    margin-bottom: 16px;
}

.album-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.album-genres-single {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.track-list {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.track-list h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #1a1a1a;
}

.track-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.track-item:last-child {
    border-bottom: none;
}

.track-number {
    flex-shrink: 0;
    width: 30px;
    text-align: right;
    color: #6b7280;
    font-weight: 600;
}

.track-name {
    flex: 1;
    font-weight: 500;
    color: #1a1a1a;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: #4F46E5;
    color: #4F46E5;
}

.pagination .current {
    background: #4F46E5;
    color: white;
    border-color: #4F46E5;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    .container {
        padding: 0 16px;
    }

    .page-title {
        font-size: 32px;
    }

    .single-artist-header,
    .single-album-header {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }

    .artist-big-photo,
    .album-big-cover {
        width: 200px;
        margin: 0 auto;
    }

    .artist-big-photo {
        width: 200px;
        height: 200px;
    }

    .artist-details h1 {
        font-size: 32px;
    }

    .album-details h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

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

    .filter-count {
        margin-left: 0;
        text-align: center;
    }

    .letter-filter {
        gap: 6px;
    }

    .letter {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 24px 0;
    }

    .page-title {
        font-size: 24px;
    }

    .filters-bar {
        padding: 16px;
    }

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

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

    .single-artist-header,
    .single-album-header {
        padding: 20px;
    }

    .artist-big-photo {
        width: 150px;
        height: 150px;
    }

    .album-big-cover {
        width: 150px;
    }

    .artist-details h1 {
        font-size: 24px;
    }

    .album-details h1 {
        font-size: 22px;
    }
}

/* ============================================
   NO RESULTS
   ============================================ */

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-results p {
    font-size: 18px;
    margin: 0;
}

/* ============================================
   DISCOGS EXTERNAL LINK
   ============================================ */

.discogs-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #4F46E5;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 12px;
}

.discogs-link:hover {
    background: #4338ca;
    color: white;
    transform: translateY(-1px);
}

/* ============================================
   FEATURED SECTIONS
   ============================================ */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.featured-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.featured-card .artist-photo {
    height: 280px;
}

.featured-card .album-cover {
    padding-bottom: 75%;
}

/* ============================================
   HOT CHARTS
   ============================================ */

.charts-list {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.chart-item:last-child {
    border-bottom: none;
}

.chart-rank {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-weight: 700;
    border-radius: 8px;
    font-size: 18px;
}

.chart-item:nth-child(2) .chart-rank {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.chart-item:nth-child(3) .chart-rank {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
