﻿html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
/* =========================
   ARTIST PROFILE (SCOPED)
========================= */

.artist-profile {
    --theme: #ffffff;
    min-height: 100vh;
    background: radial-gradient(circle at top, var(--theme), #000 60%);
    display: flex;
    justify-content: center;
    padding: 40px 16px;
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    align-items: flex-start;
}

    /* BACKGROUND */
    .artist-profile .bg {
        position: fixed;
        inset: 0;
        background: radial-gradient(circle at top, var(--theme), transparent 70%);
        opacity: .25;
        z-index: 0;
    }

    .artist-profile .overlay {
        position: fixed;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,.95));
        backdrop-filter: blur(14px);
        z-index: 1;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
    }

    /* CARD */
    .artist-profile .card {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 420px;
        background: rgba(0,0,0,.65);
        border-radius: 24px;
        border: 1px solid rgba(255,255,255,.08);
        padding: 28px;
        box-shadow: 0 20px 60px rgba(0,0,0,.9);
    }

    /* BANNER */
    .artist-profile .banner {
        border-radius: 20px;
        overflow: hidden;
        height: 140px;
    }

        .artist-profile .banner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    /* AVATAR */
    .artist-profile .avatar-wrap {
        display: flex;
        justify-content: center;
        margin-top: -48px;
    }

    .artist-profile .avatar {
        width: 96px;
        height: 96px;
        border-radius: 50%;
        border: 3px solid #000;
        box-shadow: 0 0 0 3px #fff;
        overflow: hidden;
        background: #111;
        animation: avatarEnter .45s ease both;
    }

    .artist-profile .avatar img {
        width: 100%;
        height: 100%; /* ✅ */
        object-fit: cover; /* ✅ */
        object-position: center 30%; /* ✅ yüz için ideal */
        display: block;
    }
        .artist-profile .avatar img {
            transition: transform .25s ease;
        }

        .artist-profile .avatar:hover img {
            transform: scale(1.05);
        }
    /* TEXT */
    .artist-profile .name {
        text-align: center;
        margin-top: 12px;
        font-size: 22px;
        font-weight: 700;
    }

    .artist-profile .bio {
        text-align: center;
        font-size: 14px;
        opacity: .75;
    }

    /* SOCIALS */
    .artist-profile .socials {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 18px 0;
    }

        .artist-profile .socials a {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,.3);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: transform .18s, box-shadow .18s, background .18s;
        }

            .artist-profile .socials a:hover {
                transform: scale(1.12) rotate(-4deg);
                background: rgba(255,255,255,.15);
                box-shadow: 0 0 0 1px var(--theme), 0 0 20px var(--theme);
            }

    /* LINKS */
    .artist-profile .links {
        margin-top: 16px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .artist-profile .link {
        border-radius: 999px;
        padding: 12px 16px;
        background: rgba(0,0,0,.75);
        border: 1px solid rgba(255,255,255,.16);
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #fff;
        text-decoration: none;
        opacity: 0;
        animation: linkEnter .45s ease forwards;
        transition: transform .18s, box-shadow .18s;
    }

        .artist-profile .link:hover {
            transform: translateY(-2px) scale(1.015);
            box-shadow: 0 0 0 1px var(--theme), 0 0 28px color-mix(in srgb, var(--theme), transparent 65%);
        }

    /* FOOTER */
    .artist-profile .footer {
        margin-top: 18px;
        text-align: center;
        font-size: 11px;
        opacity: .6;
        position: relative;
        z-index: 2;
    }

/* ANIMATIONS */
@keyframes linkEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes avatarEnter {
    from {
        opacity: 0;
        transform: scale(.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* =========================
   PREMIUM FLOAT ANIMATION
========================= */

@keyframes softFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}
@keyframes cardFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }

    100% {
        transform: translateY(0);
    }
}

.card {
    animation: cardFloat 8s ease-in-out infinite;
}
/* SADECE PROFIL KARTI */
.profile-header-edit {
    margin-bottom: 96px; /* avatar çapı + nefes */
}
.artist-profile .card {
    animation: softFloat 8s ease-in-out infinite;
    will-change: transform;
}

    /* KULLANICI ETKİLEŞİMİNDE DUR */
    .artist-profile .card:hover {
        animation-play-state: paused;
    }
.artist-profile .card {
    box-shadow: 0 20px 60px rgba(0,0,0,.9);
}

@keyframes softFloat {
    0% {
        transform: translateY(0);
        box-shadow: 0 20px 60px rgba(0,0,0,.9);
    }

    50% {
        transform: translateY(-6px);
        box-shadow: 0 30px 80px rgba(0,0,0,.95);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 20px 60px rgba(0,0,0,.9);
    }
}
@media (pointer: coarse) {
    .banner img {
        transform: translateY(calc(var(--scroll, 0) * 0.2px));
    }
}
/* =========================
   LINK RIPPLE EFFECT
========================= */

.artist-profile .link {
    position: relative;
    overflow: hidden;
}

/* RIPPLE */
.artist-profile .link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient( circle at var(--rx, 50%) var(--ry, 50%), rgba(255,255,255,0.25), transparent 60% );
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

/* Hover & Touch */
.artist-profile .link:hover::after,
.artist-profile .link:active::after {
    opacity: 1;
}
/* PARALLAX TARGETS */
.artist-profile .banner img,
.artist-profile .bg {
    will-change: transform;
    transition: transform .1s linear;
}
.profile-image-upload {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,.4);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .avatar-preview:hover {
        transform: scale(1.05);
        box-shadow: 0 0 0 2px var(--theme);
    }
.avatar-edit-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: #111;
}

.avatar-edit-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.change-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    opacity: .7;
}
/* =========================
   PLATFORM BRAND COLORS
========================= */

.artist-profile .link {
    --brand-color: var(--theme);
    --brand-bg: transparent;
}

/* SPOTIFY */
.artist-profile .link[data-platform="spotify"] {
    --brand-color: #1DB954;
}

/* YOUTUBE */
.artist-profile .link[data-platform="youtube"] {
    --brand-color: #FF0033;
}

/* SOUNDCLOUD */
.artist-profile .link[data-platform="soundcloud"] {
    --brand-color: #FF6A00;
}

/* INSTAGRAM */
.artist-profile .link[data-platform="instagram"] {
    --brand-color: #E1306C;
    --brand-bg: linear-gradient( 135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888 );
}
/* FACEBOOK */
.artist-profile .link[data-platform="facebook"] {
    --brand-color: #1877F2;
}

/* LINKEDIN */
.artist-profile .link[data-platform="linkedin"] {
    --brand-color: #0A66C2;
}

/* APPLE MUSIC */
.artist-profile .link[data-platform="applemusic"] {
    --brand-color: #FA233B;
}

/* =========================
AUTO FAVICON ICONS
/* =========================
ICON + TEXT ALIGN FIX
========================= */

/* Sol taraf: ikon + text */
.artist-profile .link .main {
    display: grid;
    grid-template-columns: 22px auto;
    align-items: center;
    column-gap: 12px; /* İKON – YAZI BOŞLUĞU */
}

.artist-profile .link:hover .text {
    transform: translateX(1px);
    transition: transform .15s ease;
}

.artist-profile .link {
    border: 1px solid color-mix(in srgb, var(--brand-color), transparent 65%);
}

.artist-profile .link:hover {
    background: color-mix(in srgb, var(--brand-bg), transparent 55%);
    box-shadow: 0 0 0 1px var(--brand-color), 0 0 28px color-mix(in srgb, var(--brand-color), transparent 65%);
}
    
/* İkon sabit kolon */
.artist-profile .link .icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
            
}
/* İkon görseli */
.artist-profile .link .icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.link:hover img.icon {
    transform: scale(1.12) rotate(-2deg);
    transition: transform .18s cubic-bezier(.2,.8,.2,1);
}
/* Metin hizası */
.artist-profile .link .text {
    font-size: 15px;
    line-height: 1; /* ALT ALTA TAM HİZA */
    display: block;
}

/* Sağdaki tıklama sayısı */
.artist-profile .link .badge {
    margin-left: 12px;
    white-space: nowrap;
}

/* =========================
   CARD SOFT FADE OUT
========================= */

.artist-profile .card {
    position: relative;
    overflow: hidden;
}

/* Alt fade */
.artist-profile .card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px; /* fade yüksekliği */
    background: linear-gradient( to bottom, rgba(0,0,0,0), rgba(0,0,0,0.35), rgba(0,0,0,0.65) );
    pointer-events: none;
}
