/**
 * ===============================================================================
 * TripTiles - Notifications-Center (Drawer)
 * Follower, Reise-Erinnerungen, Wetter, Chat-Hinweise
 * Developed by Toni Sciacca - mail@tonisciacca.com
 * ===============================================================================
 */

/* Glocke im Header */
.nc-bell {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--sh-card, #fff);
    border: 1px solid var(--sh-border, #e8e8e8);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.nc-bell:hover { border-color: var(--sh-pink, #FF385C); }
.nc-bell [data-lucide] { width: 18px; height: 18px; color: var(--sh-text2, #6b6b6b); }
.nc-bell-dot {
    position: absolute; top: 8px; right: 8px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--sh-pink, #FF385C);
    border: 2px solid var(--sh-card, #fff);
}
.nc-bell-count {
    position: absolute; top: 2px; right: -2px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px;
    background: var(--sh-pink, #FF385C);
    color: #fff;
    font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--sh-card, #fff);
}

/* Drawer Overlay */
.nc-scrim {
    position: fixed; inset: 0;
    background: rgba(15, 18, 22, 0.32);
    z-index: 9990;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
}
.nc-scrim.open { opacity: 1; pointer-events: auto; }

/* Drawer */
.nc-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 380px; max-width: 92vw;
    background: var(--sh-card, #fff);
    border-left: 1px solid var(--sh-border, #e8e8e8);
    box-shadow: -16px 0 48px rgba(0,0,0,0.12);
    z-index: 9991;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    font-family: 'Outfit', sans-serif;
}
.nc-drawer.open { transform: translateX(0); }

.nc-head {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sh-border, #e8e8e8);
}
.nc-head-title { font-size: 16px; font-weight: 700; color: var(--sh-text, #1a1a1a); flex: 1; }
.nc-head-action {
    background: none; border: none; cursor: pointer;
    font: inherit; font-size: 12px; font-weight: 500;
    color: var(--sh-text3, #9a9a9a);
    padding: 4px 8px; border-radius: 6px;
}
.nc-head-action:hover { background: var(--sh-bg, #f5f5f5); color: var(--sh-text, #1a1a1a); }
.nc-close {
    background: none; border: none; cursor: pointer;
    width: 32px; height: 32px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
}
.nc-close:hover { background: var(--sh-bg, #f5f5f5); }
.nc-close [data-lucide] { width: 18px; height: 18px; color: var(--sh-text2, #6b6b6b); }

.nc-tabs {
    display: flex; gap: 4px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--sh-border, #e8e8e8);
}
.nc-tab {
    background: none; border: none; cursor: pointer;
    font: inherit; font-size: 12px; font-weight: 500;
    color: var(--sh-text3, #9a9a9a);
    padding: 6px 10px; border-radius: 999px;
}
.nc-tab.active { background: var(--sh-pink-lt, rgba(255,56,92,0.08)); color: var(--sh-pink, #FF385C); }

.nc-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.nc-empty { text-align: center; padding: 48px 24px; color: var(--sh-text3, #9a9a9a); font-size: 13px; }
.nc-empty [data-lucide] { width: 32px; height: 32px; opacity: 0.5; margin-bottom: 8px; }

.nc-item {
    display: flex; gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--sh-border, #e8e8e8);
    cursor: pointer;
    transition: background 0.1s;
    position: relative;
}
.nc-item:hover { background: var(--sh-bg, #f5f5f5); }
.nc-item.unread::before {
    content: ''; position: absolute; top: 18px; left: 10px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--sh-pink, #FF385C);
}
.nc-item-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--sh-bg, #f5f5f5);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
}
.nc-item-icon img { width: 100%; height: 100%; object-fit: cover; }
.nc-item-icon [data-lucide] { width: 16px; height: 16px; color: var(--sh-text2, #6b6b6b); }
.nc-item-icon.k-follower    { background: rgba(99, 102, 241, 0.1); }
.nc-item-icon.k-follower [data-lucide] { color: #4338ca; }
.nc-item-icon.k-reise       { background: rgba(255, 56, 92, 0.1); }
.nc-item-icon.k-reise [data-lucide] { color: var(--sh-pink, #FF385C); }
.nc-item-icon.k-wetter      { background: rgba(59, 130, 246, 0.1); }
.nc-item-icon.k-wetter [data-lucide] { color: #1d4ed8; }
.nc-item-icon.k-chat        { background: rgba(16, 185, 129, 0.1); }
.nc-item-icon.k-chat [data-lucide] { color: #047857; }
.nc-item-icon.k-vault       { background: rgba(245, 158, 11, 0.1); }
.nc-item-icon.k-vault [data-lucide] { color: #b45309; }
.nc-item-body { flex: 1; min-width: 0; }
.nc-item-title { font-size: 13px; font-weight: 500; color: var(--sh-text, #1a1a1a); line-height: 1.35; }
.nc-item-title b { font-weight: 600; }
.nc-item-time { font-size: 11px; color: var(--sh-text3, #9a9a9a); margin-top: 4px; }
.nc-item-actions { display: flex; gap: 6px; margin-top: 8px; }
.nc-item-btn {
    font: inherit; font-size: 11px; font-weight: 600;
    padding: 5px 10px; border-radius: 6px;
    background: var(--sh-pink, #FF385C); color: #fff;
    border: none; cursor: pointer;
}
.nc-item-btn.sec { background: var(--sh-bg, #f5f5f5); color: var(--sh-text, #1a1a1a); }

.nc-foot {
    padding: 10px 20px;
    border-top: 1px solid var(--sh-border, #e8e8e8);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; color: var(--sh-text3, #9a9a9a);
}
.nc-foot a { color: var(--sh-pink, #FF385C); text-decoration: none; font-weight: 600; }

/* Toast (Inline Push) */
.nc-toast-stack {
    position: fixed; top: 80px; right: 24px; z-index: 10000;
    display: flex; flex-direction: column; gap: 10px;
    pointer-events: none;
}
.nc-toast {
    pointer-events: auto;
    min-width: 280px; max-width: 360px;
    background: var(--sh-card, #fff);
    border: 1px solid var(--sh-border, #e8e8e8);
    border-left: 3px solid var(--sh-pink, #FF385C);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
    padding: 12px 14px;
    display: flex; gap: 10px; align-items: flex-start;
    font-family: 'Outfit', sans-serif;
    transform: translateX(120%); opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
}
.nc-toast.show { transform: translateX(0); opacity: 1; }
.nc-toast-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--sh-pink-lt, rgba(255,56,92,0.08)); display: flex; align-items: center; justify-content: center; }
.nc-toast-icon [data-lucide] { width: 14px; height: 14px; color: var(--sh-pink, #FF385C); }
.nc-toast-body { flex: 1; min-width: 0; }
.nc-toast-title { font-size: 13px; font-weight: 600; color: var(--sh-text, #1a1a1a); }
.nc-toast-msg { font-size: 12px; color: var(--sh-text2, #6b6b6b); margin-top: 2px; }
