/* =========================================================================
   ISIM PLAKASI (2026-10-01) - Woo Profil Studyosu, Woo uyelerine ozel.
   1) Uye listesinde satirin arka plani
   2) Studyodaki "Isim plakasi" bolumu + ayri canli onizleme
   Tasarim kurallari: yan aksan cubugu YOK, tek font, kirmizi/siyah/beyaz.
   Okunurluk: plakanin ustunde HER ZAMAN soldan saga acilan karartma perdesi.
   ========================================================================= */

/* ------------------------------------------------------------- 1) uye satiri */
html body.incallx #rightbar-wrapper :is(.room-users, .group-users) .user-row.has-nameplate,
.np-onizleme .user-row.has-nameplate,
.uyg .uye.has-nameplate /* 2026-11 Adim 13: yeni kabuk uye listesi */ {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
    background-color: transparent !important;
    background-image:
        linear-gradient(90deg,
            rgba(20, 20, 28, calc(var(--np-p, 72) / 100)) 0%,
            rgba(20, 20, 28, calc(var(--np-p, 72) / 100 * .55)) 55%,
            rgba(20, 20, 28, .12) 100%),
        var(--np-img) !important;
    background-size: 100% 100%, cover !important;
    background-position: 0 0, var(--np-x, 50%) 50% !important;
    background-repeat: no-repeat !important;
}
/* Hareketli plaka: varsayilan "uzerine gelince", istege bagli "her zaman" */
html body.incallx #rightbar-wrapper :is(.room-users, .group-users) .user-row.has-nameplate.np-hover:hover,
html body.incallx #rightbar-wrapper :is(.room-users, .group-users) .user-row.has-nameplate.np-always,
.np-onizleme .user-row.has-nameplate.np-hover.np-oyna,
.np-onizleme .user-row.has-nameplate.np-always,
.uyg .uye.has-nameplate.np-hover:hover,
.uyg .uye.has-nameplate.np-always {
    background-image:
        linear-gradient(90deg,
            rgba(20, 20, 28, calc(var(--np-p, 72) / 100)) 0%,
            rgba(20, 20, 28, calc(var(--np-p, 72) / 100 * .55)) 55%,
            rgba(20, 20, 28, .12) 100%),
        var(--np-anim, var(--np-img)) !important;
}
/* Hareketi azalt: YALNIZCA Whitoo'nun kendi ayari (Gorunum ve erisilebilirlik).
   2026-11-26: isletim sisteminin 'animasyonlari azalt' ayari (Windows'ta animasyonlar
   kapaliysa hep acik gelir) kullanicinin bilerek sectigi plakayi hic oynatmiyordu. */
body.whitoo-no-animations .uyg .uye.has-nameplate.np-hover:hover,
body.whitoo-no-animations .uyg .uye.has-nameplate.np-always,
html body.incallx.whitoo-no-animations #rightbar-wrapper :is(.room-users, .group-users) .user-row.has-nameplate.np-hover:hover,
html body.incallx.whitoo-no-animations #rightbar-wrapper :is(.room-users, .group-users) .user-row.has-nameplate.np-always {
    background-image:
        linear-gradient(90deg, rgba(20, 20, 28, calc(var(--np-p, 72) / 100)) 0%,
            rgba(20, 20, 28, calc(var(--np-p, 72) / 100 * .55)) 55%, rgba(20, 20, 28, .12) 100%),
        var(--np-img) !important;
}
/* Plakali satirda isim her zaman okunur */
html body.incallx #rightbar-wrapper :is(.room-users, .group-users) .user-row.has-nameplate .channel-user-name,
.np-onizleme .user-row.has-nameplate .np-ad {
    color: #fff !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .65) !important;
}

/* ------------------------------------------------------- 2) studyo bolumu */
.wps-nameplate-card .np-woo {
    margin-left: auto;
    margin-right: 6px;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #f7c948;
    background: rgba(247, 201, 72, .12);
    border: 1px solid rgba(247, 201, 72, .3);
}
.wps-nameplate-card .np-aciklama {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(201, 201, 212, .85);
}
.wps-nameplate-card .np-baslik {
    display: block;
    margin: 14px 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(160, 170, 188, .8);
}

/* Galeri: hazir plakalar + yukleme + kaldir */
.np-galeri {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.np-galeri .np-oge {
    position: relative;
    height: 46px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #16161f center / cover no-repeat;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.np-galeri .np-oge:hover {
    border-color: rgba(255, 255, 255, .25);
    transform: translateY(-1px);
}
.np-galeri .np-oge.secili {
    border-color: transparent;
    box-shadow: 0 0 0 2px #e5173f, 0 6px 18px rgba(229, 23, 63, .25);
}
.np-galeri .np-oge .np-oge-ad {
    position: absolute;
    left: 8px;
    bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
.np-galeri .np-oge .np-oge-gif {
    position: absolute;
    right: 6px;
    top: 6px;
    height: 16px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #fff;
    background: rgba(0, 0, 0, .5);
    display: inline-flex;
    align-items: center;
}
.np-galeri .np-yukle,
.np-galeri .np-kaldir {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(225, 230, 240, .9);
    background: rgba(255, 255, 255, .04);
    border: 1px dashed rgba(255, 255, 255, .2);
}
.np-galeri .np-kaldir {
    border-style: solid;
    border-color: rgba(255, 255, 255, .08);
    color: rgba(201, 201, 212, .75);
}
.np-durum {
    min-height: 18px;
    margin-top: 8px;
    font-size: 13.5px;
    color: rgba(201, 201, 212, .8);
}
.np-durum.hata { color: #ff6d85; }

/* Kaydiricilar */
.np-kaydirici {
    display: block;
    margin-top: 12px;
}
.np-kaydirici span {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(225, 230, 240, .88);
    margin-bottom: 6px;
}
.np-kaydirici b { font-weight: 700; color: #fff; }
.np-kaydirici input[type="range"] {
    width: 100%;
    accent-color: #e5173f;
}

/* Hareket secimi */
.np-hareket {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.np-hareket label { margin: 0; cursor: pointer; }
.np-hareket input { position: absolute; opacity: 0; pointer-events: none; }
.np-hareket span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(160, 170, 188, .9);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
}
.np-hareket input:checked + span {
    color: #fff;
    background: rgba(229, 23, 63, .14);
    border-color: rgba(229, 23, 63, .4);
}

/* Ayri canli onizleme: uye listesinin birebir kopyasi (260 px) */
.np-onizleme {
    margin-top: 16px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #121219, #0d0d14);
    border: 1px solid rgba(255, 255, 255, .08);
}
.np-onizleme .np-on-bas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(160, 170, 188, .8);
}
.np-onizleme .np-on-durum {
    font-size: 11.5px;
    color: rgba(140, 140, 158, .9);
    margin: 10px 0 4px;
}
.np-onizleme .np-liste {
    width: 100%;
    max-width: 260px;
    padding: 4px 0;
    border-radius: 10px;
    background: #14141c;
    border: 1px solid rgba(255, 255, 255, .06);
}
.np-onizleme .user-row {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 32px;
    margin: 2px 4px;
    padding: 0 8px;
    border-radius: 8px;
}
.np-onizleme .np-av {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex: none;
    background: #334155 center / cover no-repeat;
}
.np-onizleme .np-av i {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #14141c;
}
.np-onizleme .np-ad {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: rgba(203, 210, 224, .75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.np-onizleme .np-ben .np-ad { color: #fff; }
