/* ============================================
 * Sihirhome — Bildirim Pro v70 (2026-05-05)
 * Toast + Bell badge + Dropdown stillemesi
 * ============================================ */

/* ---- Bell shake (yeni bildirim varken) ---- */
@keyframes sh-bell-shake {
    0%, 90%, 100% { transform: rotate(0); }
    92% { transform: rotate(-12deg); }
    94% { transform: rotate(10deg); }
    96% { transform: rotate(-8deg); }
    98% { transform: rotate(6deg); }
}
.sh-bell-shake {
    animation: sh-bell-shake 8s ease-in-out infinite;
    transform-origin: 50% 10%;
    display: inline-block;
}

/* ---- Sayaç badge görünümünü zenginleştir (mevcut .header-desktop-navbutton-box-count'u override) ---- */
.header-desktop-navbutton-box-count {
    box-shadow: 0 2px 8px rgba(220, 38, 38, .35);
    transition: transform .25s ease, opacity .25s ease;
}
.sh-badge-pulse {
    animation: sh-badge-pulse 1.4s ease-in-out 2;
}
@keyframes sh-badge-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.25); }
}

/* ---- Toast container ---- */
#sh-toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    pointer-events: none;
}
.sh-toast {
    pointer-events: auto;
    background: #fff;
    border-left: 4px solid #6366f1;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
    border-radius: 12px;
    padding: 14px 44px 14px 16px;
    min-width: 320px;
    max-width: 420px;
    position: relative;
    cursor: pointer;
    transform: translateX(120%);
    opacity: 0;
    transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .35s ease;
    font-family: inherit;
}
.sh-toast.sh-show { transform: translateX(0); opacity: 1; }
.sh-toast.sh-hide { transform: translateX(120%); opacity: 0; }
.sh-toast-h {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sh-toast-h .sh-cat-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    flex-shrink: 0;
}
.sh-toast-body {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.45;
}
.sh-toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: 0;
    font-size: 18px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
}
.sh-toast-close:hover { background: #f3f4f6; color: #374151; }
.sh-toast-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ---- Kategori renk + ikon ---- */
.sh-toast.cat-siparis   { border-left-color: #10b981; }
.sh-toast.cat-siparis   .sh-cat-icon { background: #d1fae5; color: #065f46; }
.sh-toast.cat-kargo     { border-left-color: #3b82f6; }
.sh-toast.cat-kargo     .sh-cat-icon { background: #dbeafe; color: #1e40af; }
.sh-toast.cat-kampanya  { border-left-color: #f59e0b; }
.sh-toast.cat-kampanya  .sh-cat-icon { background: #fef3c7; color: #92400e; }
.sh-toast.cat-yorum     { border-left-color: #eab308; }
.sh-toast.cat-yorum     .sh-cat-icon { background: #fef9c3; color: #854d0e; }
.sh-toast.cat-mesaj     { border-left-color: #8b5cf6; }
.sh-toast.cat-mesaj     .sh-cat-icon { background: #ede9fe; color: #5b21b6; }
.sh-toast.cat-iade      { border-left-color: #ef4444; }
.sh-toast.cat-iade      .sh-cat-icon { background: #fee2e2; color: #991b1b; }
.sh-toast.cat-stok      { border-left-color: #f97316; }
.sh-toast.cat-stok      .sh-cat-icon { background: #ffedd5; color: #9a3412; }
.sh-toast.cat-genel     { border-left-color: #6366f1; }
.sh-toast.cat-genel     .sh-cat-icon { background: #e0e7ff; color: #3730a3; }

/* ---- Bildirim merkezi sayfası — Pro upgrade ---- */
.sh-bildirim-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 16px 0;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.sh-bildirim-tab {
    padding: 8px 16px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 0;
    transition: all .2s;
}
.sh-bildirim-tab.active {
    background: #6366f1;
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, .35);
}
.sh-bildirim-tab:hover:not(.active) { background: #e5e7eb; }

.sh-bildirim-clearall {
    margin-left: auto;
    padding: 8px 16px;
    border-radius: 8px;
    background: #fff;
    color: #ef4444;
    border: 1px solid #fecaca;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}
.sh-bildirim-clearall:hover { background: #fef2f2; }

.sh-bildirim-row {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    align-items: flex-start;
    transition: all .2s;
    position: relative;
}
.sh-bildirim-row:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.sh-bildirim-row.sh-okunmadi { background: linear-gradient(90deg, #eef2ff 0%, #fff 60%); border-left: 3px solid #6366f1; }
.sh-bildirim-row.sh-removing { opacity: 0; transform: translateX(60px); }
.sh-bildirim-cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.sh-bildirim-content { flex: 1; min-width: 0; }
.sh-bildirim-baslik {
    font-weight: 600;
    color: #111827;
    font-size: 15px;
    margin-bottom: 4px;
}
.sh-bildirim-icerik {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}
.sh-bildirim-meta {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 6px;
}
.sh-bildirim-sil {
    background: none;
    border: 0;
    color: #d1d5db;
    cursor: pointer;
    padding: 6px 8px;
    font-size: 18px;
    border-radius: 6px;
    transition: all .15s;
    align-self: flex-start;
}
.sh-bildirim-sil:hover { background: #fef2f2; color: #ef4444; }

.sh-bildirim-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}
.sh-bildirim-empty-icon {
    font-size: 64px;
    color: #e5e7eb;
    margin-bottom: 16px;
}
.sh-bildirim-empty-text {
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
}

/* ---- Mobile responsive ---- */
@media (max-width: 600px) {
    #sh-toast-stack { left: 10px; right: 10px; bottom: 10px; }
    .sh-toast { min-width: 0; max-width: 100%; }
    .sh-bildirim-row { flex-wrap: wrap; }
    .sh-bildirim-cat-icon { width: 36px; height: 36px; font-size: 16px; }
}
