/* =========================================================================
   AVATAR CERCEVESI (2026-10-02) - Woo Profil Studyosu
   1) Avatarin ustundeki seffaf cerceve katmani (static/js/whitoo-avatar-cerceve.js)
   2) Studyodaki "Avatar cercevesi" bolumu + onizleme
   Tasarim kurallari: tek font, kirmizi/siyah/beyaz; yan aksan cubugu yok.
   ========================================================================= */

/* ------------------------------------------------------------ 1) katman
   Sitede ">*{position:relative!important}" gibi toptan kurallar var; katman
   absolute kalmazsa avatarin yanina duser. Konum/boyut JS'ten !important ile
   satir ici gelir; burada yalnizca davranis sabitlenir. */
html body span.wac[data-wac] {
    position: absolute !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none !important;
    z-index: 3 !important;
    inset: auto;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
}
html body span.wac[data-wac][hidden] { display: none !important; }
html body span.wac[data-wac] > img {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: none !important;
    object-fit: contain !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
}

/* ------------------------------------------------------------ 2) studyo */
.wps-avatar-deco-card .ac-aciklama {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .62);
}
.ac-galeri {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 8px;
}
.ac-galeri .ac-oge {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: 0;
    padding: 14px 4px 9px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    color: #fff;
    font: inherit;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.ac-galeri .ac-oge:hover { border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .06); }
.ac-galeri .ac-oge:focus-visible { outline: 2px solid #ff3158; outline-offset: 2px; }
.ac-galeri .ac-oge.secili { border-color: #e6122b; background: rgba(230, 18, 43, .12); }
.ac-galeri .ac-oge b {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}
.ac-galeri .ac-rozet {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 1px 5px;
    border-radius: 5px;
    background: rgba(0, 0, 0, .55);
    color: #ff6b81;
    font-size: 9.5px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ac-galeri .ac-av,
.ac-onizleme .ac-on-av {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
}
.ac-galeri .ac-av > img,
.ac-onizleme .ac-on-av > img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #1b1b22;
}
.ac-galeri .ac-yok .ac-av > img { opacity: .55; }

.wps-avatar-deco-card .ac-hareket { margin-top: 2px; }
.wps-avatar-deco-card .ac-bilgi {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

.ac-onizleme {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: #08090d;
    display: grid;
    gap: 4px;
}
.ac-onizleme .ac-on-bas {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .4);
}
.ac-onizleme .ac-on-bas span { font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .3); }
.ac-onizleme .ac-on-satir {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 7px 8px;
    border-radius: 10px;
}
.ac-onizleme .ac-on-satir:hover { background: rgba(255, 255, 255, .05); }
.ac-onizleme .ac-on-satir .ac-on-av { width: 34px; height: 34px; min-width: 34px; min-height: 34px; }
.ac-onizleme .ac-on-ad { display: grid; min-width: 0; }
.ac-onizleme .ac-on-ad b { font-size: 14.5px; color: #fff; }
.ac-onizleme .ac-on-ad small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}
.ac-onizleme .ac-on-kart {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
    padding: 14px 10px 10px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.ac-onizleme .ac-on-kart .ac-on-buyuk { width: 72px; height: 72px; min-width: 72px; min-height: 72px; }
.ac-onizleme .ac-on-kart small { font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ------------------------------------------------------------ 3) liste satiri
   Kompakt listede avatar 24 px; cerceve bu boyutta sikisip kotu gorunuyordu.
   Cerceveli satirda (JS .wac-var ekler) avatar 30 px olur, satir buna gore
   uzar; cevrimici noktasi cercevenin USTUNDE kalir. Secici kompakt kuralindan
   (whitoo-kompakt.css) daha ozgul olmali. */
html body.incallx #rightbar-wrapper .user-row.wac-var.wac-var {
    min-height: 42px !important;
}
html body.incallx #rightbar-wrapper .user-row.wac-var.wac-var .channel-user-image {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    flex: 0 0 30px !important;
    margin-left: 3px !important;
    margin-right: 11px !important;
}
html body.incallx #rightbar-wrapper .user-row.wac-var.wac-var .channel-user-image > img {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
}
html body.incallx #rightbar-wrapper .user-row.wac-var .channel-user-image .online-status {
    z-index: 5 !important;
}

/* ------------------------------------------------------------ 4) yukleme */
.ac-galeri .ac-yukle { border-style: dashed; border-color: rgba(255, 255, 255, .22); }
.ac-galeri .ac-yukle:hover { border-color: #ff3158; }
.ac-galeri .ac-arti {
    display: grid !important;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .75);
    font-size: 22px;
}
.wps-avatar-deco-card .ac-durum {
    min-height: 0;
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
}
.wps-avatar-deco-card .ac-durum:empty { display: none; }
.wps-avatar-deco-card .ac-durum.hata { color: #ff6d85; }
