#g32ai-bubble-root, #g32ai-page-root { all: initial; }
#g32ai-bubble-root *, #g32ai-page-root * { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }

/* ── Yüzen buton (bubble modu) ── */
.g32ai-fab {
    position: fixed;
    bottom: var(--g32ai-fab-bottom, 22px);
    right: var(--g32ai-side, 22px);
    width: var(--g32ai-fab-size, 58px);
    height: var(--g32ai-fab-size, 58px);
    border-radius: 50%;
    background: var(--g32ai-color, #cc0000);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--g32ai-fab-size, 58px) * .45);
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,.25);
    z-index: 999999;
    border: none;
    transition: bottom .2s ease, transform .15s ease;
}
.g32ai-fab:hover { transform: scale(1.06); }

/* Sol konum seçeneği */
.g32ai-pos-left .g32ai-fab,
.g32ai-pos-left .g32ai-panel:not(.g32ai-page-mode) { right: auto; left: var(--g32ai-side, 22px); }
.g32ai-pos-left .g32ai-badge { right: auto; left: -2px; }

/* Dikkat çekici nabız halkası */
.g32ai-fab::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(var(--g32ai-rgb, 204,0,0), .55);
    animation: g32ai-pulse 2.2s infinite;
    pointer-events: none;
}
@keyframes g32ai-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(var(--g32ai-rgb, 204,0,0), .55); }
    70%  { box-shadow: 0 0 0 16px rgba(var(--g32ai-rgb, 204,0,0), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--g32ai-rgb, 204,0,0), 0); }
}
.g32ai-fab.g32ai-fab-quiet::after,
.g32ai-no-pulse .g32ai-fab::after { animation: none; box-shadow: none; }

/* Bildirim noktası */
.g32ai-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffcc00;
    border: 2px solid #fff;
}

/* ── Sohbet paneli ── */
.g32ai-panel {
    position: fixed;
    bottom: calc(var(--g32ai-fab-bottom, 22px) + var(--g32ai-fab-size, 58px) + 10px);
    right: var(--g32ai-side, 22px);
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 500px;
    max-height: 70vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
}
.g32ai-panel.g32ai-open { display: flex; }

/* Sayfa modunda geniş, sabit görünüm */
.g32ai-panel.g32ai-page-mode {
    position: static;
    width: 100%;
    max-width: 680px;
    height: 640px;
    max-height: none;
    margin: 20px auto;
    display: flex;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    border: 1px solid #eee;
}

.g32ai-header {
    background: var(--g32ai-color, #cc0000);
    color: #fff;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.g32ai-close { cursor: pointer; font-size: 20px; line-height: 1; opacity: .85; background: none; border: none; color: #fff; }
.g32ai-close:hover { opacity: 1; }

.g32ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f7f7f8;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.g32ai-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.g32ai-msg-bot { background: #fff; border: 1px solid #eee; align-self: flex-start; border-bottom-left-radius: 4px; color: #222; }
.g32ai-msg-user { background: var(--g32ai-color, #cc0000); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

.g32ai-sources { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.g32ai-source-link {
    font-size: 12.5px;
    color: var(--g32ai-color, #cc0000);
    text-decoration: none;
    border-left: 3px solid var(--g32ai-color, #cc0000);
    padding: 3px 8px;
    background: var(--g32ai-color-light, #fff5f5);
    border-radius: 4px;
    display: block;
}
.g32ai-source-link:hover { text-decoration: underline; }

.g32ai-typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 10px 13px; }
.g32ai-typing span { width: 6px; height: 6px; border-radius: 50%; background: #bbb; animation: g32ai-bounce 1.2s infinite ease-in-out; }
.g32ai-typing span:nth-child(2) { animation-delay: .15s; }
.g32ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes g32ai-bounce { 0%,60%,100%{transform:translateY(0);opacity:.5} 30%{transform:translateY(-5px);opacity:1} }

.g32ai-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 12px 10px;
    background: #f7f7f8;
}
.g32ai-example-chip {
    background: #fff;
    border: 1px solid var(--g32ai-color-mid, #f0c2c2);
    color: var(--g32ai-color-dark, #a80000);
    border-radius: 16px;
    padding: 7px 13px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    line-height: 1.3;
    transition: background .15s ease, transform .15s ease;
}
.g32ai-example-chip:hover { background: var(--g32ai-color-light, #fff0f0); transform: translateY(-1px); }

.g32ai-inputbar { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #eee; background: #fff; }
.g32ai-input { flex: 1; border: 1px solid #ddd; border-radius: 20px; padding: 10px 14px; font-size: 14px; outline: none; }
.g32ai-input:focus { border-color: var(--g32ai-color, #cc0000); }
.g32ai-send { background: var(--g32ai-color, #cc0000); color: #fff; border: none; border-radius: 20px; padding: 0 18px; font-weight: 700; cursor: pointer; font-size: 14px; }
.g32ai-send:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 480px) {
    .g32ai-panel:not(.g32ai-page-mode),
    .g32ai-pos-left .g32ai-panel:not(.g32ai-page-mode) { right: 10px; left: 10px; width: auto; bottom: calc(var(--g32ai-fab-bottom, 14px) + var(--g32ai-fab-size, 58px) + 10px); }
    .g32ai-fab { right: 14px; }
    .g32ai-pos-left .g32ai-fab { right: auto; left: 14px; }
}

/* ── "Asistana Sor" CTA kutusu (soru-cevap sayfaları) ── */
.g32ai-cta-box {
    margin: 28px 0;
    padding: 20px 22px;
    background: var(--g32ai-color-light, #fff5f5);
    border: 1px solid var(--g32ai-color-mid, #ffd9d9);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.g32ai-cta-box p { margin: 0; font-size: 15px; color: #333; }
.g32ai-cta-trigger {
    background: var(--g32ai-color, #cc0000);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 11px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s ease, background .15s ease;
}
.g32ai-cta-trigger:hover { background: var(--g32ai-color-dark, #a80000); transform: translateY(-1px); }
.g32ai-cta-mount { display: none; margin-top: 18px; }
.g32ai-cta-mount .g32ai-panel.g32ai-page-mode { margin: 0 auto; }


/* ── Bilgi balonu (eski Gazeteci'nin karaktersiz hali) ──
   Sürekli animasyon yok; yalnızca göster/gizle geçişi. */
.g32ai-ticker {
    position: fixed;
    bottom: var(--g32ai-fab-bottom, 22px);
    right: calc(var(--g32ai-side, 22px) + var(--g32ai-fab-size, 58px) + 12px);
    width: 220px;
    max-width: calc(100vw - var(--g32ai-fab-size, 58px) - 56px);
    background: #fff;
    border: 2px solid var(--g32ai-color, #cc0000);
    border-radius: 14px;
    padding: 10px 14px 9px;
    box-shadow: 0 6px 22px rgba(0,0,0,.2);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px) scale(.96);
    transform-origin: bottom right;
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s, bottom .2s ease;
}
.g32ai-ticker.g32ai-ticker-show {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}
.g32ai-ticker.g32ai-t-link { cursor: pointer; }
/* konuşma balonu kuyruğu (butona doğru) */
.g32ai-ticker::after {
    content: "";
    position: absolute;
    right: -9px;
    bottom: 18px;
    width: 14px; height: 14px;
    background: #fff;
    border-right: 2px solid var(--g32ai-color, #cc0000);
    border-top: 2px solid var(--g32ai-color, #cc0000);
    transform: rotate(45deg);
}
.g32ai-t-close {
    position: absolute; top: -9px; left: -9px;
    width: 20px; height: 20px; padding: 0;
    border-radius: 50%; border: none;
    background: #555; color: #fff; font-size: 10px; line-height: 20px;
    cursor: pointer; opacity: .85;
}
.g32ai-t-close:hover { opacity: 1; background: #222; }
.g32ai-t-body { display: flex; flex-direction: column; gap: 3px; }
.g32ai-t-label {
    display: inline-block; width: fit-content;
    font-size: 9px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase;
    color: #fff; border-radius: 3px; padding: 2px 6px; margin-bottom: 3px;
}
.g32ai-t-text  { display: block; font-size: 13px; font-weight: 700; line-height: 1.4; color: #111; }
.g32ai-t-row   { display: flex; justify-content: space-between; font-size: 12.5px; line-height: 1.65; color: #222; }
.g32ai-t-row b { color: #666; font-weight: 600; }
.g32ai-t-big   { display: block; font-size: 26px; font-weight: 900; line-height: 1.15; color: #111; }
.g32ai-t-time  { display: block; font-size: 19px; font-weight: 700; color: #2e7d32; }
.g32ai-t-hint  { display: block; font-size: 10px; font-weight: 700; color: var(--g32ai-color, #cc0000); text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.g32ai-t-quote {
    display: block; font-family: Georgia, serif; font-size: 13px; font-style: italic; line-height: 1.5; color: #222;
    border-left: 3px solid #6a1b9a; padding-left: 8px;
}

/* sol konum */
.g32ai-pos-left .g32ai-ticker { right: auto; left: calc(var(--g32ai-side, 22px) + var(--g32ai-fab-size, 58px) + 12px); transform-origin: bottom left; transform: translateX(-10px) scale(.96); }
.g32ai-pos-left .g32ai-ticker.g32ai-ticker-show { transform: none; }
.g32ai-pos-left .g32ai-ticker::after { right: auto; left: -9px; transform: rotate(-135deg); }
.g32ai-pos-left .g32ai-t-close { left: auto; right: -9px; }

@media (max-width: 480px) {
    .g32ai-ticker { right: calc(14px + var(--g32ai-fab-size, 58px) + 10px); width: 190px; }
    .g32ai-pos-left .g32ai-ticker { right: auto; left: calc(14px + var(--g32ai-fab-size, 58px) + 10px); }
}
@media (prefers-reduced-motion: reduce) {
    .g32ai-ticker { transition: none; }
}
