/* ============================================
   VYTARA CLIENT - NOTIFICATIONS
   Bell button + slide-in panel
   ============================================ */

/* ---------- Bell button (in header) ---------- */
.notif-bell {
    position: relative;
    background: var(--color-white);
    border: 0.5px solid var(--color-gray-200);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: var(--font-primary);
    color: var(--color-alpine-darker);
    transition: background var(--transition-fast);
    flex-shrink: 0;
    padding: 0;
}
.notif-bell:active { background: var(--color-gray-100); }
.notif-bell i { font-size: 20px; }

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #E24B4A;
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-white);
    box-sizing: border-box;
    font-variant-numeric: tabular-nums;
}

/* ---------- Panel overlay ---------- */
.notif-panel {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
}
.notif-panel.show { pointer-events: auto; }

.notif-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.32);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.notif-panel.show .notif-backdrop { opacity: 1; }

.notif-sheet {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    background: var(--color-gray-50);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.notif-panel.show .notif-sheet { transform: translateX(-50%) translateY(0); }

/* ---------- Panel header ---------- */
.notif-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--spacing-4) 14px;
    background: var(--color-white);
    border-bottom: 0.5px solid var(--color-gray-200);
}
.notif-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0;
}
.notif-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.notif-mark-all {
    background: none;
    border: none;
    color: var(--color-alpine-medium);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
}
.notif-mark-all:active { background: var(--color-gray-100); }

.notif-close {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.notif-close:active { background: var(--color-gray-100); }

/* ---------- List ---------- */
.notif-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--spacing-3) 0;
}

.notif-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px var(--spacing-4);
    background: none;
    border: none;
    border-bottom: 0.5px solid var(--color-gray-200);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-primary);
    transition: background var(--transition-fast);
}
.notif-item:active { background: var(--color-gray-100); }
.notif-item:last-child { border-bottom: none; }

.notif-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.notif-emoji { font-size: 22px; }

.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 2px;
    line-height: 1.3;
}

.notif-snippet {
    font-size: 13px;
    color: var(--color-gray-600);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 4px;
}

.notif-time {
    font-size: 11px;
    color: var(--color-gray-400);
    font-weight: 500;
}

/* ---------- Empty state ---------- */
.notif-empty {
    text-align: center;
    padding: 60px 30px;
    color: var(--color-gray-400);
}
.notif-empty i {
    font-size: 44px;
    margin-bottom: 14px;
    display: block;
}
.notif-empty p {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-gray-700);
    margin: 0 0 4px 0;
}
.notif-empty span {
    font-size: 13px;
    color: var(--color-gray-400);
}
