/* Geri Bildirim — genel sayfaların sağ altındaki düğme ve pencere (includes/geri_bildirim_widget.php) */
.gb-fab,
.gb-panel {
    --gb-mavi: #1c458b;
    --gb-mavi-koyu: #14306b;
    --gb-cizgi: #d6dee9;
    --gb-yazi: #1f2937;
    --gb-soluk: #64748b;
    font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, sans-serif);
}

/* "Yukarı çık" düğmesi geri bildirim düğmesinin üstüne kayar */
.gb-fab ~ .scroll-top { bottom: 98px; }

.gb-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1090;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gb-mavi-koyu) 0%, var(--gb-mavi) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 14px 30px -12px rgba(15, 35, 80, .6);
    transition: transform .18s ease, box-shadow .18s ease;
}
.gb-fab i { font-size: 20px; }
.gb-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(15, 35, 80, .7); }
.gb-fab:focus-visible { outline: 3px solid rgba(122, 202, 237, .8); outline-offset: 3px; }
.gb-fab[aria-expanded="true"] { background: var(--gb-mavi-koyu); }

.gb-panel {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    width: min(420px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 116px));
    border-radius: 22px;
    background: #fff;
    color: var(--gb-yazi);
    box-shadow: 0 30px 70px -20px rgba(2, 6, 23, .45), 0 0 0 1px rgba(15, 23, 42, .06);
    overflow: hidden;
    transform-origin: bottom right;
    animation: gb-ac .18s ease-out;
}
.gb-panel[hidden] { display: none; }
@keyframes gb-ac { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.gb-panel-ust {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 18px;
    background: linear-gradient(135deg, var(--gb-mavi) 0%, #2757b0 100%);
    color: #fff;
}
.gb-panel-ust h2 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; line-height: 1.2; color: #fff; font-family: inherit; letter-spacing: 0; }
.gb-panel-ust p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .85); }
.gb-kapat {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 19px;
    cursor: pointer;
}
.gb-kapat:hover { background: rgba(255, 255, 255, .15); }

.gb-form, .gb-tamam { overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 22px; }
.gb-alan { display: block; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.gb-alan legend, .gb-etiket {
    display: block;
    margin: 0 0 10px;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--gb-yazi);
}
.gb-cipler { display: flex; flex-wrap: wrap; gap: 8px; }
.gb-cip { position: relative; margin: 0; cursor: pointer; }
.gb-cip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.gb-cip > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid var(--gb-cizgi);
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.gb-cip:hover > span { border-color: var(--gb-mavi); }
.gb-cip input:checked + span { background: var(--gb-mavi-koyu); border-color: var(--gb-mavi-koyu); color: #fff; font-weight: 600; }
.gb-cip input:focus-visible + span { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }

.gb-girdi {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cdd6e2;
    border-radius: 14px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: var(--gb-yazi);
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.gb-girdi { resize: vertical; min-height: 110px; line-height: 1.5; }
select.gb-girdi { appearance: auto; cursor: pointer; }
.gb-girdi::placeholder { color: #94a3b8; }
.gb-girdi:focus { outline: none; border-color: var(--gb-mavi); box-shadow: 0 0 0 4px rgba(28, 69, 139, .12); }
.gb-girdi[aria-invalid="true"] { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.gb-ipucu { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--gb-soluk); }
.gb-sayac { display: block; margin-top: 4px; text-align: right; font-size: 12px; color: #94a3b8; }

/* Gönderen: oturumdaki üye (kimlik bilgisi formda sorulmaz) */
.gb-gonderen {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--gb-cizgi);
    border-radius: 14px;
    background: #f8fafc;
}
.gb-gonderen-ikon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e9f7;
    color: var(--gb-mavi);
    font-size: 17px;
}
.gb-gonderen > div { min-width: 0; }
.gb-gonderen .gb-etiket { margin: 0 0 2px; font-size: 12px; font-weight: 600; color: var(--gb-soluk); text-transform: uppercase; letter-spacing: .04em; }
.gb-gonderen strong { display: block; font-size: 15px; color: var(--gb-yazi); overflow-wrap: anywhere; }
.gb-gonderen small { display: block; font-size: 13px; color: var(--gb-soluk); overflow-wrap: anywhere; }
.gb-gonderen small:empty { display: none; }
.gb-ipucu--orta { margin: 6px 0 16px; }

/* Girişsiz ziyaretçi: üye girişi çağrısı */
.gb-giris { overflow-y: auto; padding: 30px 26px 26px; text-align: center; }
.gb-giris[hidden], .gb-form[hidden] { display: none; }
.gb-giris-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e0e9f7;
    color: var(--gb-mavi);
    font-size: 26px;
}
.gb-giris h3 { margin: 14px 0 8px; font-size: 1.2rem; font-weight: 800; color: var(--gb-yazi); font-family: inherit; }
.gb-giris p { margin: 0 0 20px; font-size: 14.5px; line-height: 1.55; color: #475569; }
.gb-giris .gb-gonder + .gb-gonder { margin-top: 10px; }
.gb-panel a.gb-gonder { box-sizing: border-box; color: #fff; text-decoration: none; }
.gb-panel a.gb-gonder--ikincil { color: var(--gb-mavi); }

.gb-bal { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.gb-hata {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
}
.gb-hata[hidden] { display: none; }
.gb-gonder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    border: 0;
    border-radius: 14px;
    background: var(--gb-mavi);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}
.gb-gonder:hover { background: var(--gb-mavi-koyu); }
.gb-gonder[disabled] { opacity: .65; cursor: wait; }
.gb-gonder--ikincil { background: #eef3fb; color: var(--gb-mavi); }
.gb-gonder--ikincil:hover { background: #dfe8f7; }

.gb-tamam { text-align: center; padding-top: 34px; padding-bottom: 30px; }
.gb-tamam[hidden] { display: none; }
.gb-tamam-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 28px;
}
.gb-tamam h3 { margin: 14px 0 6px; font-size: 1.25rem; font-weight: 800; color: var(--gb-yazi); font-family: inherit; }
.gb-tamam p { margin: 0 0 20px; color: #475569; line-height: 1.55; }

@media (max-width: 560px) {
    .gb-fab { right: 14px; bottom: 14px; padding: 12px 18px; font-size: 15px; }
    .gb-fab ~ .scroll-top { right: 14px; bottom: 80px; width: 48px; height: 48px; }
    .gb-panel {
        right: 8px;
        left: 8px;
        bottom: 76px;
        width: auto;
        max-height: calc(100dvh - 92px);
        border-radius: 20px;
    }
    .gb-form, .gb-tamam { padding: 16px 18px 20px; }
    .gb-giris { padding: 24px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .gb-panel { animation: none; }
    .gb-fab { transition: none; }
}
@media print { .gb-fab, .gb-panel { display: none !important; } }
