/* ============================================================
   NOTIFICATION SHARED STYLES
   ============================================================ */

/* Badge - number display */
.noti-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    color: #fff;
    background: var(--danger, #ef4444);
    border-radius: var(--radius-full, 9999px);
}

.noti-badge:empty {
    min-width: 8px;
    height: 8px;
    padding: 0;
    top: 6px;
    right: 6px;
}

.noti-badge.is-hidden { display: none; }

/* Mark-all-read button (replaces close-btn and view-all) */
.noti-mark-read {
    font-size: var(--text-xs, 0.75rem);
    color: var(--brand-primary, #2563eb);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-1, 4px) var(--space-2, 8px);
    border-radius: var(--radius-md, 6px);
    transition: background 0.15s;
}

.noti-mark-read:hover {
    background: var(--gray-100, #f3f4f6);
}

/* Notification item */
.noti-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3, 12px);
    padding: var(--space-3, 12px) var(--space-4, 16px);
    border-bottom: 1px solid var(--gray-50, #f9fafb);
    background: var(--blue-50, #eff6ff);
    transition: background 0.15s;
    position: relative;
}

.noti-item.is-read {
    background: #fff;
}

.noti-item:last-child {
    border-bottom: none;
}

.noti-item-link {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3, 12px);
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.noti-item-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100, #f3f4f6);
    border-radius: var(--radius-full, 9999px);
    color: var(--gray-500, #6b7280);
    font-size: var(--text-sm, 0.875rem);
}

.noti-item:not(.is-read) .noti-item-icon {
    background: var(--brand-primary, #2563eb);
    color: #fff;
}

.noti-item-content {
    flex: 1;
    min-width: 0;
}

.noti-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2, 8px);
    margin-bottom: 2px;
}

.noti-item-type {
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    color: var(--brand-primary, #2563eb);
}

.noti-item.is-read .noti-item-type {
    color: var(--gray-400, #9ca3af);
}

.noti-item-time {
    font-size: var(--text-xs, 0.75rem);
    color: var(--gray-400, #9ca3af);
    white-space: nowrap;
}

.noti-item-message {
    font-size: var(--text-sm, 0.875rem);
    color: var(--gray-700, #374151);
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.noti-item.is-read .noti-item-message {
    color: var(--gray-400, #9ca3af);
}

.noti-item-delete {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--gray-300, #d1d5db);
    cursor: pointer;
    border-radius: var(--radius-md, 6px);
    transition: color 0.15s, background 0.15s;
    padding: 0;
    margin-top: 2px;
}

.noti-item-delete:hover {
    color: var(--gray-600, #4b5563);
    background: var(--gray-100, #f3f4f6);
}

/* Dropdown footer - 전체보기 */
.noti-dropdown-footer {
    padding: var(--space-3, 12px) var(--space-4, 16px);
    border-top: 1px solid var(--gray-100, #f3f4f6);
    text-align: center;
}

.noti-view-all {
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    color: var(--gray-500, #6b7280);
    text-decoration: none;
    transition: color 0.15s;
}

.noti-view-all:hover {
    color: var(--brand-primary, #2563eb);
}
