/* =========================================
   IzzyJamz Artist Archive
   Modern Blue & Turquoise Design
========================================= */

.ijartist-archive {
    --ijartist-blue: #087fbd;
    --ijartist-turquoise: #19c6c0;
    --ijartist-navy: #10243d;
    --ijartist-text: #26384b;
    --ijartist-muted: #718096;
    --ijartist-border: #e5edf3;

    width: 100%;
    color: var(--ijartist-text);
}

/* Hero section */
.ijartist-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 28px;
    margin-bottom: 30px;
    border-radius: 20px;
    color: #fff;
    text-align: center;
    background: linear-gradient(125deg, #10243d 0%, #087fbd 58%, #19c6c0 100%);
}

.ijartist-hero h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
}

.ijartist-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255,255,255,.9);
    font-size: 15px;
    line-height: 1.7;
}

/* Search and sorting */
.ijartist-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.ijartist-controls form {
    display: flex;
    flex: 1;
    gap: 10px;
    flex-wrap: wrap;
}

.ijartist-controls input,
.ijartist-controls select {
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid var(--ijartist-border);
    border-radius: 12px;
    background: #fff;
    color: var(--ijartist-text);
    font-size: 14px;
    outline: none;
    box-shadow: 0 2px 8px rgba(16,36,61,.035);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ijartist-controls input {
    flex: 1;
    min-width: 180px;
}

.ijartist-controls select {
    min-width: 155px;
}

.ijartist-controls input:focus,
.ijartist-controls select:focus {
    border-color: var(--ijartist-blue);
    box-shadow: 0 0 0 3px rgba(8,127,189,.12);
}

.ijartist-controls button {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(110deg, #087fbd, #19bdb8);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(8,127,189,.2);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.ijartist-controls button:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 8px 20px rgba(8,127,189,.27);
}

/* Artist grid */
.ijartist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Artist cards */
.ijartist-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--ijartist-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(16,36,61,.055);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ijartist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(16,36,61,.12);
}

.ijartist-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: #edf4f8;
}

.ijartist-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.ijartist-card:hover .ijartist-card-image img {
    transform: scale(1.045);
}

.ijartist-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 21px;
}

.ijartist-card-content h2 {
    margin: 0 0 10px;
    color: var(--ijartist-navy);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
}

.ijartist-card-content h2 a {
    color: inherit;
    text-decoration: none;
}

.ijartist-card-content h2 a:hover {
    color: var(--ijartist-blue);
}

.ijartist-card-content p {
    margin: 0 0 20px;
    color: var(--ijartist-muted);
    font-size: 14px;
    line-height: 1.75;
}

/* Modern View Profile button */
.ijartist-view-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    margin-top: auto;
    padding: 0 22px;
    border: 0;
    border-radius: 50px;
    color: #fff !important;
    background: linear-gradient(110deg, #087fbd 0%, #19c6c0 100%);
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 5px 14px rgba(8,127,189,.2);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.ijartist-view-profile:hover {
    color: #fff !important;
    transform: translateY(-2px);
    filter: brightness(1.07);
    box-shadow: 0 9px 21px rgba(8,127,189,.3);
}

.ijartist-view-profile:focus-visible {
    outline: 3px solid rgba(25,198,192,.45);
    outline-offset: 3px;
}

/* Empty state */
.ijartist-empty {
    padding: 45px 20px;
    border: 1px dashed #cbd9e3;
    border-radius: 16px;
    color: var(--ijartist-muted);
    background: #f8fbfd;
    text-align: center;
}

/* Pagination */
.ijartist-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 38px;
}

.ijartist-pagination a,
.ijartist-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--ijartist-border);
    border-radius: 11px;
    color: var(--ijartist-navy);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
}

.ijartist-pagination a:hover,
.ijartist-pagination .current {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(110deg, #087fbd, #19c6c0);
}

/* Tablet */
@media (max-width: 900px) {
    .ijartist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .ijartist-hero {
        padding: 36px 20px;
        border-radius: 16px;
    }

    .ijartist-controls,
    .ijartist-controls form {
        flex-direction: column;
        align-items: stretch;
    }

    .ijartist-controls input,
    .ijartist-controls select,
    .ijartist-controls button {
        width: 100%;
        min-width: 0;
    }

    .ijartist-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ijartist-card {
        border-radius: 15px;
    }

    .ijartist-card-content {
        padding: 19px;
    }

    .ijartist-card-content h2 {
        font-size: 19px;
    }

    .ijartist-view-profile {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ijartist-card,
    .ijartist-card-image img,
    .ijartist-view-profile,
    .ijartist-controls button {
        transition: none;
    }
}