/* Breadcrumbs + toolbar */
.breadcrumbs{margin:2rem auto 1.25rem; font-size:.9rem; color:#6b7280}
.breadcrumbs a{color:#374151; text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline}
.breadcrumbs .sep{margin:0 .5rem; color:#9ca3af}

.post-type-archive-artist .artist-toolbar{display:flex !important; gap:.75rem !important; align-items:center !important; flex-wrap:wrap !important; margin:.75rem auto 1rem !important}
.post-type-archive-artist .artist-toolbar .filter-form{display:flex !important; gap:.75rem !important; align-items:stretch !important; flex:1 1 auto !important; width:100% !important; max-width:none !important; justify-content:flex-start !important; flex-wrap:nowrap !important}
.post-type-archive-artist .artist-toolbar .search-group{position:relative !important; flex:1 1 auto !important; min-width:0 !important; max-width:none !important; border:0 !important; border-radius:0 !important; background:transparent !important; box-shadow:none !important; outline:0 !important; padding:0 !important; overflow:visible !important}
.post-type-archive-artist .artist-toolbar input[type="search"]{display:block !important; height:42px !important; min-height:42px !important; max-height:42px !important; line-height:40px !important; margin:0 !important; padding:0 2.25rem 0 .75rem !important; border:1px solid #d8dee8 !important; border-radius:8px !important; width:100% !important; min-width:0 !important; box-shadow:none !important; outline:none !important; background:#fff !important; box-sizing:border-box !important; font-family:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; font-weight:400 !important; color:#374151 !important; font-size:15px !important}
.post-type-archive-artist .artist-toolbar .search-submit{position:absolute !important; right:.5rem !important; top:50% !important; transform:translateY(-50%) !important; background:none !important; border:0 !important; color:#9ca3af !important; width:auto !important; height:auto !important; padding:0 !important}
.post-type-archive-artist .artist-toolbar select,
.post-type-archive-artist .artist-toolbar #genre-filter{display:block !important; height:42px !important; min-height:42px !important; max-height:42px !important; line-height:40px !important; margin:0 !important; width:180px !important; flex:0 0 180px !important; border:1px solid #d8dee8 !important; border-radius:8px !important; padding:0 .75rem !important; background:#fff !important; box-shadow:none !important; outline:none !important; appearance:none !important; box-sizing:border-box !important; background-image:url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%239ca3af' d='M5.516 7.548a1 1 0 0 1 1.415 0L10 10.617l3.07-3.07a1 1 0 0 1 1.414 1.415l-3.778 3.778a1 1 0 0 1-1.414 0L5.516 8.963a1 1 0 0 1 0-1.415z'/%3E%3C/svg%3E") !important; background-repeat:no-repeat !important; background-position:right .6rem center !important; background-size:12px !important; padding-right:2rem !important; font-family:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; font-weight:500 !important; color:#374151 !important; font-size:15px !important}
.post-type-archive-artist .artist-toolbar input[type="search"]:focus,
.post-type-archive-artist .artist-toolbar input[type="search"]:hover,
.post-type-archive-artist .artist-toolbar #genre-filter:focus,
.post-type-archive-artist .artist-toolbar #genre-filter:hover{border-color:#d8dee8 !important; box-shadow:none !important; outline:none !important}
.post-type-archive-artist .artist-toolbar .view-switcher{margin-left:auto !important; display:inline-flex !important; gap:0 !important; align-items:center !important; border:1px solid rgba(232,62,140,.35) !important; border-radius:10px !important; overflow:hidden !important; background:#fff !important; box-shadow:0 4px 12px rgba(232,62,140,.12) !important}
.post-type-archive-artist .artist-toolbar .view-switcher button{height:40px !important; width:40px !important; border:0 !important; border-right:1px solid rgba(232,62,140,.25) !important; background:transparent !important; border-radius:0 !important; color:var(--main-color, #e83e8c) !important; display:inline-flex !important; align-items:center !important; justify-content:center !important}
.post-type-archive-artist .artist-toolbar .view-switcher button:last-child{border-right:0 !important}
.post-type-archive-artist .artist-toolbar .view-switcher button.active{background:var(--main-color, #e83e8c) !important; color:#fff !important}

/* List view tweaks */
.artists-grid-modern.list-view{grid-template-columns:1fr}
.artists-grid-modern.list-view .artist-card-modern{display:flex; gap:1rem; align-items:stretch}
.artists-grid-modern.list-view .artist-card-image-wrapper{flex:0 0 180px; aspect-ratio:auto; height:auto; align-self:stretch}
.artists-grid-modern.list-view .artist-card-image-link{display:block; width:100%; height:100%}
.artists-grid-modern.list-view .artist-card-image{width:100%; height:100%; object-fit:cover}
.artists-grid-modern.list-view .artist-card-content-modern{padding:12px 15px; display:flex; align-items:center; gap:1rem; width:100%}
.artists-grid-modern.list-view .artist-card-title-modern{margin:0}
.artists-grid-modern.list-view .artist-card-genre-modern{margin:0 .5rem 0 0}
.artists-grid-modern.list-view .artist-card-releases-modern{display:inline-flex; align-items:center; gap:.4rem; color:#555; text-decoration:none}
.artists-grid-modern.list-view .artist-card-button{margin-left:auto}
.artist-card-releases-modern:hover{color:#111827}
.artist-card-streaming-modern .streaming-link-modern{width:28px; height:28px; font-size:14px}

@media (max-width: 768px){
    .artist-toolbar #genre-filter{
        display:none !important;
    }
}

/* Modern Artists Grid */
.artists-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    margin: 3rem 0;
}

.artist-card-modern {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e1e1e1;
}

.artist-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
}

.artist-card-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.artist-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e83e8c, #6f42c1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.artist-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    font-weight: 600;
}

.artist-card-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.artist-card-modern:hover .artist-card-overlay {
    opacity: 1;
}

.artist-card-modern:hover .artist-card-image {
    transform: scale(1.05);
}

.artist-card-content-modern {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.artist-card-title-modern {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.artist-card-title-modern a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.artist-card-title-modern a:hover {
    color: var(--main-color, #e83e8c);
}

.artist-card-genre-modern {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}

.artist-card-releases-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-size: 14px;
    margin-bottom: 12px;
    text-decoration: none;
}

.artist-card-releases-modern i {
    color: var(--main-color, #e83e8c);
}

.artist-card-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    margin-top: auto;
}

.artist-card-streaming-modern {
    display: flex;
    gap: 0.5rem;
}

.streaming-link-modern {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* Backup ako se ikone ne učitaju */
.streaming-link-modern::after {
    content: attr(title);
    font-size: 8px;
    display: none;
}

.streaming-link-modern.spotify { background: #1db954; }
.streaming-link-modern.youtube { background: #ff0000; }
.streaming-link-modern.deezer { background: #feaa2d; }
.streaming-link-modern.apple-music { background: #fa243c; }
.streaming-link-modern.tidal { background: #000; }

.streaming-link-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.artist-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--main-color, #e83e8c);
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    width: 100%;
    font-size: 14px;
}

.artist-card-button:hover {
    background: var(--main-hover-color, #c82071);
    color: #fff;
}

.no-results-modern {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-results-modern i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-results-modern h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.button-modern {
    display: inline-block;
    background: var(--main-color, #e83e8c);
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.button-modern:hover {
    background: var(--main-hover-color, #c82071);
    color: #fff;
}

.pagination-modern {
    text-align: center;
    margin: 1rem 0 3rem;
}

.pagination-modern .nav-links {
    list-style: none;
    margin: 0;
    padding: 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(232,62,140,.25);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(232,62,140,.12);
}

.pagination-modern .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 40px;
    padding: 0 0.9rem;
    border: 1px solid rgba(232,62,140,.22);
    border-radius: 8px;
    background: #faf8fb;
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    transition: all .22s ease;
}

.pagination-modern a.page-numbers:hover {
    background: rgba(232,62,140,.12);
    border-color: var(--main-color, #e83e8c);
    color: var(--main-hover-color, #c82071);
    transform: translateY(-1px);
}

.pagination-modern .page-numbers.current {
    background: var(--main-color, #e83e8c);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(232,62,140,.3);
}

.pagination-modern .page-numbers.next,
.pagination-modern .page-numbers.prev {
    min-width: 88px;
}

.pagination-modern .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    min-width: auto;
    padding: 0 .35rem;
}

@media (max-width: 1200px) {
    .artists-grid-modern {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .artists-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .artists-grid-modern.list-view .artist-card-modern {
        display: block;
    }

    .artists-grid-modern.list-view .artist-card-image-wrapper,
    .artists-grid-modern.list-view .artist-card-image {
        width: 100%;
        height: auto;
    }

    .artists-grid-modern.list-view .artist-card-content-modern {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .artists-grid-modern.list-view .artist-card-button {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .artists-grid-modern {
        grid-template-columns: 1fr;
    }

    .pagination-modern .nav-links {
        gap: .35rem;
        padding: .35rem;
    }

    .pagination-modern .page-numbers {
        min-width: 38px;
        height: 36px;
        padding: 0 .65rem;
    }

    .pagination-modern .page-numbers.next,
    .pagination-modern .page-numbers.prev {
        min-width: auto;
    }
}

/* toggle list/grid via JS */
.artists-grid-modern.list-view .artist-card-overlay{display:none}
