/* =========================================================
   URTIPUUL — GRUP YÖNETİM PANELİ (group-suite.css)
   Açık/koyu tema değişkenlerini kullanır; iki temada da okunur.
   ========================================================= */

.gs-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147482900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(6, 8, 15, .62);
    backdrop-filter: blur(6px);
    animation: gs-fade .18s ease;
}

.gs-panel {
    width: min(760px, 100%);
    max-height: min(88vh, 900px);
    display: flex;
    flex-direction: column;
    background: var(--bg-primary, #fff);
    color: var(--text-primary, #1f2430);
    border: 1px solid var(--border-color, rgba(0, 0, 0, .1));
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
    overflow: hidden;
    animation: gs-in .22s cubic-bezier(.2, .8, .25, 1);
}

.gs-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, .08));
}

.gs-head-avatar {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #6b6ce0, #4f46e5);
    color: #fff;
    font-weight: 700;
    font-size: 20px;
}

.gs-head-avatar img { width: 100%; height: 100%; object-fit: cover; }

.gs-head-text { min-width: 0; flex: 1; }
.gs-head-text h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gs-head-text p { margin: 3px 0 0; font-size: 12.5px; opacity: .68; }

.gs-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--bg-secondary, #f1f3f7);
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.gs-close:hover { filter: brightness(.94); }

.gs-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, .08));
}
.gs-tabs::-webkit-scrollbar { display: none; }

.gs-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--bg-secondary, #f4f5f9);
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    opacity: .78;
}
.gs-tab i { font-size: 12px; }
.gs-tab.is-active {
    background: linear-gradient(135deg, #6b6ce0, #4f46e5);
    color: #fff;
    opacity: 1;
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 8px 18px rgba(79, 70, 229, .28);
}

.gs-body {
    padding: 16px 20px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.gs-section { display: flex; flex-direction: column; gap: 10px; }

.gs-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .6;
    margin-top: 4px;
}
.gs-label-row { display: flex; align-items: center; justify-content: space-between; }

.gs-input {
    width: 100%;
    padding: 11px 13px;
    border-radius: 12px;
    border: 1px solid var(--border-color, #d8dbe4);
    background: var(--bg-secondary, #f7f8fb);
    color: inherit;
    font: inherit;
    font-size: 14px;
    outline: none;
}
.gs-input:focus { border-color: #6b6ce0; box-shadow: 0 0 0 3px rgba(107, 108, 224, .16); }
.gs-input:disabled { opacity: .55; cursor: not-allowed; }
.gs-textarea { min-height: 78px; resize: vertical; line-height: 1.5; }

.gs-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gs-row-between { justify-content: space-between; }
.gs-row .gs-input { flex: 1; min-width: 160px; width: auto; }
.gs-row-photo { gap: 12px; }

.gs-btn {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    background: var(--bg-secondary, #f1f3f7);
    color: inherit;
    transition: transform .12s ease, filter .12s ease;
}
.gs-btn:active { transform: scale(.97); }
.gs-btn:disabled { opacity: .45; cursor: not-allowed; }
.gs-btn-primary { background: linear-gradient(135deg, #6b6ce0, #4f46e5); color: #fff; }
.gs-btn-ghost { border-color: var(--border-color, #d8dbe4); background: transparent; }
.gs-btn-danger { background: #dc2626; color: #fff; }
.gs-file-btn { display: inline-flex; align-items: center; cursor: pointer; }

.gs-hint { font-size: 12.5px; opacity: .62; line-height: 1.5; margin: 0; }

.gs-photo-preview {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #6b6ce0, #4f46e5);
    color: #fff;
    font-weight: 700;
    font-size: 20px;
}
.gs-photo-preview img { width: 100%; height: 100%; object-fit: cover; }

.gs-switch { position: relative; display: inline-block; width: 46px; height: 27px; flex: 0 0 auto; }
.gs-switch input { opacity: 0; width: 0; height: 0; }
.gs-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--border-color, #cfd3dd);
    transition: background .18s ease;
    cursor: pointer;
}
.gs-switch span::after {
    content: '';
    position: absolute;
    width: 21px;
    height: 21px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    transition: transform .18s ease;
}
.gs-switch input:checked + span { background: linear-gradient(135deg, #6b6ce0, #4f46e5); }
.gs-switch input:checked + span::after { transform: translateX(19px); }
.gs-switch input:disabled + span { opacity: .5; cursor: not-allowed; }

.gs-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 15px;
    border-radius: 14px;
    background: var(--bg-secondary, #f7f8fb);
    border: 1px solid var(--border-color, rgba(0, 0, 0, .06));
}
.gs-setting strong { font-size: 14px; font-weight: 700; }
.gs-setting p { margin: 3px 0 0; font-size: 12px; opacity: .62; line-height: 1.45; }

.gs-subtitle {
    margin: 14px 0 2px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .01em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gs-subtitle i { color: #6b6ce0; }

.gs-stats { display: flex; gap: 8px; margin: 4px 0 2px; }
.gs-stats > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    border-radius: 12px;
    background: var(--bg-secondary, #f7f8fb);
    border: 1px solid var(--border-color, rgba(0, 0, 0, .06));
}
.gs-stats strong { font-size: 17px; font-weight: 800; }
.gs-stats span { font-size: 11px; opacity: .6; }

.gs-list { display: flex; flex-direction: column; gap: 6px; }

.gs-member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 12px;
    background: var(--bg-secondary, #f7f8fb);
    border: 1px solid transparent;
}
.gs-member:hover { border-color: rgba(107, 108, 224, .35); }

.gs-member-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #8b8cf0, #5b54e8);
    color: #fff;
    font-weight: 700;
}
.gs-member-avatar img { width: 100%; height: 100%; object-fit: cover; }

.gs-member-info { flex: 1; min-width: 0; }
.gs-member-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gs-member-handle { font-size: 12px; opacity: .58; margin-top: 2px; }

.gs-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(107, 108, 224, .16);
    color: #6b6ce0;
}
.gs-badge-me { background: rgba(16, 185, 129, .16); color: #059669; }

.gs-member-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.gs-mini {
    border: 1px solid var(--border-color, #d8dbe4);
    background: transparent;
    color: inherit;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 9px;
    border-radius: 9px;
    cursor: pointer;
}
.gs-mini-ok { border-color: rgba(16, 185, 129, .5); color: #059669; }
.gs-mini-danger { border-color: rgba(220, 38, 38, .45); color: #dc2626; }

.gs-picker {
    margin: 6px 0 4px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(107, 108, 224, .35);
    background: var(--bg-secondary, #f7f8fb);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gs-picker-results { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.gs-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}
.gs-pick:hover { border-color: rgba(107, 108, 224, .35); }
.gs-pick.is-on { background: rgba(107, 108, 224, .14); border-color: rgba(107, 108, 224, .45); }
.gs-pick .gs-member-avatar { width: 32px; height: 32px; font-size: 13px; }
.gs-pick-name { flex: 1; font-size: 13.5px; font-weight: 600; }
.gs-pick-mark { font-weight: 800; color: #6b6ce0; }
.gs-picker-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.gs-invite { display: flex; gap: 8px; flex-wrap: wrap; }
.gs-invite .gs-input { flex: 1; min-width: 180px; font-size: 12.5px; }

.gs-pin-card {
    margin-top: 6px;
    padding: 13px 15px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(107, 108, 224, .12), rgba(79, 70, 229, .06));
    border: 1px solid rgba(107, 108, 224, .28);
}
.gs-pin-head { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.gs-pin-card p { margin: 7px 0 0; font-size: 13.5px; line-height: 1.5; }
.gs-pin-actions { display: flex; gap: 8px; margin-top: 10px; }

.gs-danger-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid rgba(220, 38, 38, .22);
    background: rgba(220, 38, 38, .06);
}
.gs-danger-card strong { font-size: 14px; }
.gs-danger-card p { margin: 2px 0 8px; font-size: 12.5px; opacity: .7; line-height: 1.5; }
.gs-danger-strong { border-color: rgba(220, 38, 38, .45); }

/* Sohbet içi: sabit mesaj şeridi */
.gs-pin-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(107, 108, 224, .16), rgba(79, 70, 229, .07));
    border-bottom: 1px solid rgba(107, 108, 224, .25);
    cursor: pointer;
    font-size: 12.5px;
}
.gs-pin-banner > i { color: #6b6ce0; }
.gs-pin-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gs-pin-banner-text strong { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; opacity: .65; }
.gs-pin-banner-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-pin-banner-x {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: .6;
}

.gs-composer-locked { position: relative; }
.gs-lock-note {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--bg-primary, #fff);
    opacity: .96;
    font-size: 12.5px;
    font-weight: 600;
    color: #6b6ce0;
    border-radius: inherit;
    pointer-events: none;
}

.gc-row-flash .gc-bubble {
    animation: gs-flash 1.1s ease 2;
    box-shadow: 0 0 0 3px rgba(107, 108, 224, .55);
}

.gs-header-settings { font-size: 15px; }

@keyframes gs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gs-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes gs-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(107, 108, 224, 0); } 50% { box-shadow: 0 0 0 4px rgba(107, 108, 224, .5); } }

@media (max-width: 640px) {
    .gs-overlay { padding: 0; align-items: stretch; }
    .gs-panel { width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; }
    .gs-head { padding: 14px 14px 10px; }
    .gs-head-avatar { width: 46px; height: 46px; }
    .gs-body { padding: 12px 14px 90px; }
    .gs-tab span { display: none; }
    .gs-tab { padding: 10px 14px; }
    .gs-tab i { font-size: 15px; }
    .gs-settings-grid { grid-template-columns: 1fr; }
    .gs-member { flex-wrap: wrap; }
    .gs-member-actions { width: 100%; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .gs-overlay, .gs-panel { animation: none; }
}
