/* Cizgimax - Tenor GIF picker (yorum alanlarinda kullanilir) */

body.cz-gp-locked { overflow: hidden; }

.cz-gp-backdrop {
    position: fixed; inset: 0;
    background: rgba(10, 14, 20, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
}
.cz-gp-backdrop.is-open { display: flex; animation: cz-gp-fade-in .15s ease-out; }
@keyframes cz-gp-fade-in { from { opacity: 0; } to { opacity: 1; } }

.cz-gp {
    width: 100%;
    max-width: 560px;
    height: min(82vh, 720px);
    background: #181c24;
    color: #e4e7ee;
    border-radius: 12px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    display: flex; flex-direction: column;
    overflow: hidden;
}

/* head */
.cz-gp-head {
    flex: 0 0 auto;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: #1f2430;
}
.cz-gp-search-wrap {
    position: relative;
    flex: 1;
    display: flex; align-items: center;
}
.cz-gp-search-wrap > .fa-search {
    position: absolute; left: 12px;
    color: #8a93a4; font-size: .85rem;
    pointer-events: none;
}
.cz-gp-search {
    width: 100%;
    background: #11141b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #e4e7ee;
    padding: 9px 36px 9px 32px;
    border-radius: 8px;
    font-size: .92rem;
    outline: none;
    transition: border-color .12s, box-shadow .12s;
}
.cz-gp-search::placeholder { color: #6a7384; }
.cz-gp-search:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}
.cz-gp-clear {
    position: absolute; right: 6px;
    width: 26px; height: 26px;
    border: 0; background: transparent; color: #8a93a4;
    border-radius: 6px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.cz-gp-clear:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.cz-gp-close {
    width: 36px; height: 36px;
    border: 0; background: transparent;
    color: #b3bbcc; border-radius: 8px;
    cursor: pointer; font-size: 1rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.cz-gp-close:hover { background: rgba(255, 255, 255, .06); color: #fff; }

/* body */
.cz-gp-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: #3a4150 transparent;
}
.cz-gp-body::-webkit-scrollbar { width: 8px; }
.cz-gp-body::-webkit-scrollbar-thumb { background: #3a4150; border-radius: 4px; }
.cz-gp-body::-webkit-scrollbar-track { background: transparent; }

/* masonry-ish 2-col grid (tenor benzeri) */
.cz-gp-grid {
    column-count: 2;
    column-gap: 8px;
}
@media (min-width: 480px) { .cz-gp-grid { column-count: 3; } }

.cz-gp-item {
    display: block;
    width: 100%;
    margin: 0 0 8px 0;
    padding: 0;
    border: 0;
    background: #11141b;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    break-inside: avoid;
    position: relative;
    transition: transform .12s, box-shadow .12s;
}
.cz-gp-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}
.cz-gp-item:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
.cz-gp-item img {
    display: block;
    width: 100%;
    height: auto;
    background: #0c0f15;
}

.cz-gp-status {
    text-align: center;
    color: #8a93a4;
    font-size: .85rem;
    padding: 16px 8px;
    min-height: 18px;
}
.cz-gp-status.is-error { color: #f08c8c; }

/* foot */
.cz-gp-foot {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: #1f2430;
    color: #6a7384;
    font-size: .72rem;
    text-align: right;
}
.cz-gp-brand { letter-spacing: .04em; text-transform: uppercase; }

/* compose-time GIF preview chip (yorum kutusunun ustunde durur) */
.cz-c-gif-preview {
    position: relative;
    margin: 8px 0;
    border-radius: 8px;
    overflow: hidden;
    max-width: 240px;
    background: #0c0f15;
}
.cz-c-gif-preview img {
    display: block; width: 100%; height: auto;
}
.cz-c-gif-preview .cz-c-gif-remove {
    position: absolute; top: 6px; right: 6px;
    width: 26px; height: 26px;
    border: 0; border-radius: 50%;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .85rem;
}
.cz-c-gif-preview .cz-c-gif-remove:hover { background: rgba(0, 0, 0, .85); }

/* yorum metni icindeki GIF (gonderildikten sonra render) */
.cz-c-text-gif {
    margin-top: 6px;
    max-width: 320px;
    border-radius: 8px;
    overflow: hidden;
    background: #0c0f15;
}
.cz-c-text-gif img {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
}

/* yorum formundaki GIF butonu — emoji butonunun yanina (solunda) konumlanir */
.cz-c-textarea-card .cz-c-gif-btn,
.cz-c-textarea-card .cz-c-gif,
.cz-c-textarea-card .cz-c-photo {
    position: absolute;
    top: 8px;
    background: transparent;
    border: 0;
    color: #98a3b3;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    z-index: 2;
}
.cz-c-textarea-card .cz-c-gif      { right: 40px; }
.cz-c-textarea-card .cz-c-photo    { right: 70px; }
.cz-c-textarea-card .cz-c-gif-btn:hover,
.cz-c-textarea-card .cz-c-gif:hover,
.cz-c-textarea-card .cz-c-photo:hover { color: #4974c2; }

/* Medya eklendiginde textarea sag-padding'i, butonlar icin biraz daha genisler */
.cz-c-textarea-wrap.has-gif .cz-c-textarea,
.cz-c-textarea-wrap.has-photo .cz-c-textarea {
    padding-right: 100px;
}

/* Emoji butonu olmayan formlarda (news) GIF butonu sag-uste, foto onun solunda */
.cz-c-textarea-wrap.cz-c-gif-only .cz-c-textarea-card .cz-c-gif      { right: 10px; }
.cz-c-textarea-wrap.cz-c-gif-only .cz-c-textarea-card .cz-c-photo    { right: 40px; }
