/* ==========================================================================
   KESOB Toast — hem public site hem admin panelinde kullanılır.
   Renkler CSS değişkeninden okunur; ikisinde de doğru görünür.
   ========================================================================== */

.kesob-toast-container {
    /* Konum: ALT ORTA (talep). Yatayda ortalanır, ekranın altından yükselir. */
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2147483000; /* modal/drawer üstünde kalmalı */
    display: flex;
    flex-direction: column-reverse; /* yeni bildirim en altta/önde görünür */
    align-items: center;
    gap: 0.625rem;
    width: min(24rem, calc(100vw - 2rem));
    pointer-events: none;
}

@media (max-width: 640px) {
    .kesob-toast-container {
        bottom: 1rem;
        width: calc(100vw - 1.5rem);
    }
}

.kesob-toast {
    pointer-events: auto;
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--kesob-toast-accent, #64748b);
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    animation: kesob-toast-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.dark .kesob-toast {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.kesob-toast--success { --kesob-toast-accent: #16a34a; }
.kesob-toast--error   { --kesob-toast-accent: #dc2626; }
.kesob-toast--warning { --kesob-toast-accent: #d97706; }
.kesob-toast--info    { --kesob-toast-accent: #0284c7; }

.kesob-toast__icon {
    color: var(--kesob-toast-accent);
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Material Symbols yüklenmemiş sayfalarda (admin) ikon yerine renkli nokta göster. */
.kesob-toast__icon:not(.material-symbols-outlined) {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: var(--kesob-toast-accent);
}

.kesob-toast__body {
    flex: 1 1 auto;
    min-width: 0;
}

.kesob-toast__title {
    margin: 0 0 2px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--kesob-toast-accent);
    letter-spacing: 0.01em;
}

.kesob-toast__message {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #334155;
    word-break: break-word;
}

.dark .kesob-toast__message { color: #cbd5e1; }

.kesob-toast__close {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 0.25rem;
    transition: color 0.15s ease;
}

.kesob-toast__close:hover { color: #475569; }

.kesob-toast__bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--kesob-toast-accent);
    opacity: 0.35;
    transform-origin: left center;
    animation-name: kesob-toast-bar;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.kesob-toast--out {
    animation: kesob-toast-out 0.22s ease-in forwards;
}

@keyframes kesob-toast-in {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes kesob-toast-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(12px); }
}

@keyframes kesob-toast-bar {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .kesob-toast,
    .kesob-toast--out,
    .kesob-toast__bar {
        animation: none !important;
    }
}

/* ==========================================================================
   Honeypot — kullanıcıdan ve ekran okuyucudan gizli, botlar görür.
   display:none KULLANILMAZ: bazı botlar display:none alanları atlar.
   ========================================================================== */
.kesob-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* ==========================================================================
   Yasal metin / zengin içerik tipografisi (KVKK, Çerez, Gizlilik sayfaları)
   ========================================================================== */
.kesob-prose {
    line-height: 1.75;
    color: #43474f;
}

.kesob-prose h1,
.kesob-prose h2,
.kesob-prose h3 {
    color: #00193c;
    font-weight: 700;
    margin: 1.75em 0 0.6em;
    line-height: 1.3;
}

.kesob-prose h1 { font-size: 1.75rem; }
.kesob-prose h2 { font-size: 1.375rem; }
.kesob-prose h3 { font-size: 1.125rem; }
.kesob-prose p { margin: 0 0 1em; }
.kesob-prose ul,
.kesob-prose ol { margin: 0 0 1em 1.25em; list-style: revert; }
.kesob-prose li { margin-bottom: 0.35em; }
.kesob-prose a { color: #00193c; text-decoration: underline; font-weight: 600; }
.kesob-prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.kesob-prose th,
.kesob-prose td { border: 1px solid #e5e2e3; padding: 0.5rem 0.75rem; text-align: start; }
.kesob-prose th { background: #f6f3f4; font-weight: 700; }
