﻿/* ===== Artists Common Styles ===== */

/* Page hero ile çakışmaz: kendi alanlarımız */
.artists-detail {
    margin-top: 26px;
    margin-bottom: 40px;
}

/* Grid (Index) */
.artists-grid {
    --gap: 18px;
    margin: 28px 0 36px;
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 560px) {
    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .artists-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .artists-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.artists-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .artists-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px rgba(0,0,0,.12);
    }

.artists-card-media {
    position: relative;
    aspect-ratio: 1/1;
    background: #F3F1EC;
    display: grid;
    place-items: center;
}

    .artists-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .5s ease;
    }

.artists-card:hover .artists-card-media img {
    transform: scale(1.05);
}

.artists-avatar {
    width: 56%;
    aspect-ratio: 1/1;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: clamp(24px, 4vw, 36px);
    color: #fff;
    background: #6A1B1A;
    box-shadow: inset 0 0 0 6px rgba(255,255,255,.35);
}

.artists-card-body {
    padding: 14px 14px 16px;
}

.artists-card-title {
    font: 700 18px/1.25 Merriweather, serif;
    margin: 0;
    color: #2E2E2E;
}

/* Toolbar (Index) */
.artists-toolbar {
    margin: 22px 0 6px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.05);
}

    .artists-toolbar .row {
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .artists-toolbar .left {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
    }

    .artists-toolbar .right {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .artists-toolbar .field {
        position: relative;
    }

    .artists-toolbar input[type="search"] {
        height: 38px;
        padding: 0 36px 0 12px;
        border: 1px solid rgba(0,0,0,.1);
        border-radius: 10px;
        outline: none;
    }

    .artists-toolbar select {
        height: 38px;
        padding: 0 10px;
        border: 1px solid rgba(0,0,0,.1);
        border-radius: 10px;
        background: #fff;
    }

    .artists-toolbar .kbd {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        opacity: .5;
        border: 1px solid rgba(0,0,0,.15);
        padding: 1px 5px;
        border-radius: 6px;
        background: #f7f7f7;
    }

.chip {
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 999px;
    background: #fff;
    height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

    .chip.is-active {
        border-color: #6A1B1A;
        background: #F9F6F2;
    }

.btn-apply {
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #6A1B1A;
    background: #6A1B1A;
    color: #fff;
    font-weight: 700;
}

    .btn-apply:hover {
        filter: brightness(1.06);
    }

.btn-reset {
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    color: #2E2E2E;
    text-decoration: none;
}

    .btn-reset:hover {
        border-color: #C49A3C;
    }

/* Pager (common) */
.artists-pager {
    margin: 18px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.artists-page-link, .artists-page-num {
    --bd: rgba(0,0,0,.08);
    border: 1px solid var(--bd);
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #2E2E2E;
    background: #fff;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

    .artists-page-link:hover, .artists-page-num:hover {
        border-color: #C49A3C;
    }

    .artists-page-link.is-disabled {
        pointer-events: none;
        opacity: .5;
    }

    .artists-page-num.is-current {
        background: #6A1B1A;
        border-color: #6A1B1A;
        color: #fff;
    }

.artists-page-nums {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.artists-page-ellipsis {
    padding: 0 6px;
    opacity: .6;
}

.mt {
    margin-top: 12px;
}

/* Detail layout */
.artists-detail-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .artists-detail-grid {
        grid-template-columns: 320px 1fr;
    }
}

.artists-detail-aside {
    display: grid;
    gap: 18px;
    align-content: start;
}

.artists-portrait {
    background: #F3F1EC;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

    .artists-portrait img {
        width: 100%;
        height: auto;
        display: block;
    }

    .artists-portrait.is-plain {
        background: #F3F1EC;
    }

.artists-portrait-fallback {
    padding: 24px;
    font-weight: 600;
    color: #6A1B1A;
}

.artists-website-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: #6A1B1A;
    color: #fff;
    text-decoration: none;
    transition: filter .2s ease;
}

    .artists-website-btn:hover {
        filter: brightness(1.06);
    }

/* Socials */
.artists-socials .artists-section-title {
    margin-bottom: 8px;
}

.artists-socials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.artists-social {
    text-decoration: none;
}

.chip-instagram {
    border-color: #E1306C33;
}

.chip-x {
    border-color: #00000033;
}

.chip-youtube {
    border-color: #FF000033;
}

.chip-facebook {
    border-color: #1877F233;
}

.chip-spotify {
    border-color: #1DB95433;
}

.chip-soundcloud {
    border-color: #FF770033;
}

.chip-applemusic {
    border-color: #FA245733;
}

.chip-email {
    border-color: #6A1B1A55;
}

.artists-socials-skeleton {
    display: flex;
    gap: 8px;
}

    .artists-socials-skeleton .sk {
        width: 76px;
        height: 28px;
        border-radius: 999px;
        background: linear-gradient(90deg,#eee,#f5f5f5,#eee);
        background-size: 200% 100%;
        animation: artists-shimmer 1.2s linear infinite;
    }

@keyframes artists-shimmer {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

.artists-muted {
    opacity: .7;
}

/* Sections */
.artists-section {
    margin-bottom: 28px;
}

.artists-section-title {
    font: 800 20px/1.2 Merriweather, serif;
    color: #2E2E2E;
    margin: 0 0 10px 0;
    border-left: 4px solid #C49A3C;
    padding-left: 10px;
}

/* Poems */
.artists-poems {
    display: grid;
    gap: 10px;
}

.artists-poem {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    padding: 12px 14px;
}

    .artists-poem .title {
        font-weight: 700;
        margin-bottom: 4px;
        color: #2E2E2E;
    }

    .artists-poem .excerpt {
        color: #444;
        margin: 0;
    }

/* Editions chips */
.artists-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .artists-chips .chip {
        background: #F9F6F2;
        border-color: #E6DCCB;
    }

/* Other artists */
.artists-others {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

.artists-other {
    display: grid;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
}

    .artists-other .thumb {
        aspect-ratio: 1/1;
        border-radius: 12px;
        overflow: hidden;
        background: #F3F1EC;
        box-shadow: 0 8px 22px rgba(0,0,0,.06);
    }

    .artists-other img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .artists-other .thumb-fallback {
        display: grid;
        place-items: center;
        color: #6A1B1A;
        font-weight: 700;
    }

    .artists-other .name {
        font-weight: 600;
    }

/* Motion helpers */
.reveal-up {
    transform: translateY(8px);
    opacity: 0;
    animation: artists-reveal .5s ease forwards;
}

.hover-lift {
    will-change: transform, box-shadow;
}

@keyframes artists-reveal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* ===== Centered Portrait Card (Index) ===== */
.artists-card--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 14px 14px;
}

.artists-card-avatar {
    text-decoration: none;
    display: inline-grid;
    place-items: center;
    margin-top: 4px;
}

    .artists-card-avatar .ring {
        width: 120px;
        height: 120px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        background: #fff;
        position: relative;
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
    }

        .artists-card-avatar .ring::before {
            content: "";
            position: absolute;
            inset: -4px;
            border-radius: 999px;
            background: radial-gradient(closest-side, transparent 64%, #fff 66%), conic-gradient(#C49A3C 0 360deg);
            /* içte beyaz halka + altın çerçeve */
        }

    .artists-card-avatar img {
        width: 96px;
        height: 96px;
        border-radius: 999px;
        object-fit: cover;
        display: block;
    }

.ring--fallback {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 28px;
    color: #fff;
    background: #6A1B1A;
}

.artists-card-title {
    margin: 12px 0 8px;
}

.artists-card-title-link {
    color: #2E2E2E;
    text-decoration: none;
    font: 700 18px/1.25 Merriweather, serif;
}

    .artists-card-title-link:hover {
        text-decoration: underline;
    }

/* Social chips in card */
.artists-card-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    min-height: 28px;
}

    .artists-card-socials .chip {
        border: 1px solid rgba(0,0,0,.1);
        border-radius: 999px;
        background: #fff;
        padding: 4px 10px;
        font-weight: 600;
        font-size: 12px;
        text-decoration: none;
        color: #2E2E2E;
        transition: border-color .2s ease, transform .15s ease;
    }

        .artists-card-socials .chip:hover {
            border-color: #C49A3C;
            transform: translateY(-1px);
        }

    .artists-card-socials .sk {
        width: 64px;
        height: 24px;
        border-radius: 999px;
        background: linear-gradient(90deg,#eee,#f7f7f7,#eee);
        background-size: 200% 100%;
        animation: artists-shimmer 1.2s linear infinite;
    }

    /* Daha kompakt chip renkleri (var olanlarla uyumlu) */
    .artists-card-socials .chip-instagram {
        border-color: #E1306C33;
    }

    .artists-card-socials .chip-x {
        border-color: #00000033;
    }

    .artists-card-socials .chip-youtube {
        border-color: #FF000033;
    }

    .artists-card-socials .chip-facebook {
        border-color: #1877F233;
    }

    .artists-card-socials .chip-spotify {
        border-color: #1DB95433;
    }

    .artists-card-socials .chip-soundcloud {
        border-color: #FF770033;
    }

    .artists-card-socials .chip-applemusic {
        border-color: #FA245733;
    }

    .artists-card-socials .chip-email {
        border-color: #6A1B1A55;
    }
/* === FIX: Avatar ring, image üstte kalsın ve görünmezlik sorunu bitiyor === */
.artists-card-avatar {
    text-decoration: none;
    display: inline-grid;
    place-items: center;
    margin-top: 4px;
}

    .artists-card-avatar .ring {
        position: relative;
        width: 120px;
        height: 120px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        background: #fff;
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
    }
        /* Altın çerçeve (arka katmanda) */
        .artists-card-avatar .ring::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 999px;
            z-index: 0;
            padding: 4px; /* ring kalınlığı */
            background: conic-gradient(#C49A3C 0 360deg);
            -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
        }
    /* Görsel daima üstte */
    .artists-card-avatar img {
        position: relative;
        z-index: 1;
        width: 96px;
        height: 96px;
        border-radius: 999px;
        object-fit: cover;
        display: block;
    }

.ring--fallback {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 28px;
    color: #fff;
    background: #6A1B1A;
}

/* === Kart içi sosyal ikon şeridi (tek satır, kompakt) === */
.artists-card-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
    min-height: 28px; /* iskeletle hizalı */
    margin-top: 6px;
}
    /* Sadece ikon: 28x28 ghost butonlar */
    .artists-card-socials .ico {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        display: inline-grid;
        place-items: center;
        border: 1px solid rgba(0,0,0,.1);
        background: #fff;
        line-height: 0;
        transition: border-color .2s ease, transform .15s ease;
    }

        .artists-card-socials .ico:hover {
            border-color: #C49A3C;
            transform: translateY(-1px);
        }

        .artists-card-socials .ico svg {
            width: 16px;
            height: 16px;
            display: block;
        }

        /* İkonlara hafif marka rengi vurguları (sınırları bozmadan) */
        .artists-card-socials .ico.instagram {
            border-color: #E1306C33;
        }

        .artists-card-socials .ico.x {
            border-color: #00000033;
        }

        .artists-card-socials .ico.youtube {
            border-color: #FF000033;
        }

        .artists-card-socials .ico.facebook {
            border-color: #1877F233;
        }

        .artists-card-socials .ico.spotify {
            border-color: #1DB95433;
        }

        .artists-card-socials .ico.soundcloud {
            border-color: #FF770033;
        }

        .artists-card-socials .ico.applemusic {
            border-color: #FA245733;
        }

        .artists-card-socials .ico.email {
            border-color: #6A1B1A55;
        }

    /* Skeleton aynı kalsın */
    .artists-card-socials .sk {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        background: linear-gradient(90deg,#eee,#f7f7f7,#eee);
        background-size: 200% 100%;
        animation: artists-shimmer 1.2s linear infinite;
    }
/* --- Başlık konum & spacing --- */
.artists-card--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 14px 14px;
}

.artists-card-title {
    order: 1;
    margin: 6px 0 10px;
}
/* üste */
.artists-card-avatar {
    order: 2;
    margin: 0 0 10px;
}
/* ortada */
.artists-card-socials {
    order: 3;
}
/* altta */

/* --- Avatar ring (aynı, fakat biraz daha büyük gösterebiliriz) --- */
.artists-card-avatar .ring {
    width: 132px;
    height: 132px;
}

.artists-card-avatar img,
.ring--fallback {
    width: 108px;
    height: 108px;
}

/* --- Sosyal ikonlar: büyük + marka renkli --- */
.artists-card-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow: hidden;
    min-height: 36px;
    margin-top: 6px;
}

    .artists-card-socials .ico {
        width: 36px;
        height: 36px;
        border-radius: 999px;
        display: inline-grid;
        place-items: center;
        border: 1px solid rgba(0,0,0,.08);
        background: #fff;
        line-height: 0;
        transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,.06);
    }

        .artists-card-socials .ico svg {
            width: 18px;
            height: 18px;
            display: block;
            fill: currentColor;
        }

    /* Marka renkleri – soft arka plan + uygun ikon rengi */
    .artists-card-socials.is-colored .ico.instagram {
        color: #E1306C;
        background: #E1306C14;
        border-color: #E1306C2A;
    }

    .artists-card-socials.is-colored .ico.x {
        color: #111;
        background: #00000012;
        border-color: #00000022;
    }

    .artists-card-socials.is-colored .ico.youtube {
        color: #FF0000;
        background: #FF000014;
        border-color: #FF000022;
    }

    .artists-card-socials.is-colored .ico.spotify {
        color: #1DB954;
        background: #1DB95414;
        border-color: #1DB95422;
    }

    .artists-card-socials.is-colored .ico.facebook {
        color: #1877F2;
        background: #1877F214;
        border-color: #1877F222;
    }

    .artists-card-socials.is-colored .ico.soundcloud {
        color: #FF7700;
        background: #FF770014;
        border-color: #FF770022;
    }

    .artists-card-socials.is-colored .ico.applemusic {
        color: #FA2457;
        background: #FA245714;
        border-color: #FA245722;
    }

    .artists-card-socials.is-colored .ico.email {
        color: #6A1B1A;
        background: #6A1B1A10;
        border-color: #6A1B1A22;
    }

    .artists-card-socials.is-colored .ico.link {
        color: #2E2E2E;
        background: #2E2E2E10;
        border-color: #2E2E2E22;
    }

    .artists-card-socials .ico:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0,0,0,.10);
    }

    /* Skeleton boyutlarını da büyütelim */
    .artists-card-socials .sk {
        width: 36px;
        height: 36px;
        border-radius: 999px;
        background: linear-gradient(90deg,#eee,#f7f7f7,#eee);
        background-size: 200% 100%;
        animation: artists-shimmer 1.2s linear infinite;
    }
    /* site.artists.css — sosyal ikon renkleri */
    .artists-card-socials.is-colored .ico.instagram {
        color: #E1306C; /* ikon rengi */
        background: #E1306C22; /* biraz daha dolu arkaplan */
        border-color: #E1306C44;
    }
