/* ============================================================
   BricksDash — Discussion Notification Bell
   ============================================================ */

.bd-discussion-bell {
    --bd-bell-dot-color: #ef4444;
    --bd-bell-dot-size: 10px;
    --bd-bell-dropdown-width: 380px;
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* ── Trigger ───────────────────────────────────────────────── */

.bd-bell-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: opacity 0.15s ease;
}

.bd-bell-trigger:hover {
    opacity: 0.8;
}

.bd-bell-icon {
    font-size: 1.25em;
    line-height: 1;
}

.bd-bell-text {
    font-size: 0.875em;
    font-weight: 500;
}

/* ── Notification Dot ──────────────────────────────────────── */

.bd-bell-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: var(--bd-bell-dot-size);
    height: var(--bd-bell-dot-size);
    background: var(--bd-bell-dot-color);
    border-radius: 50%;
    border: 2px solid #fff;
    box-sizing: content-box;
    animation: bd-bell-pulse 2s ease-in-out infinite;
}

@keyframes bd-bell-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.2); }
}

/* ── Dropdown Panel ────────────────────────────────────────── */

.bd-bell-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: var(--bd-bell-dropdown-width);
    max-height: 420px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    z-index: 99999;
    animation: bd-bell-fadeIn 0.18s ease-out;
}

@keyframes bd-bell-fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bd-bell-dropdown-header {
    padding: 14px 16px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
}

.bd-bell-dropdown-list {
    max-height: 340px;
    overflow-y: auto;
}

.bd-bell-dropdown-empty {
    padding: 24px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ── Individual Thread Item ────────────────────────────────── */

.bd-bell-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f9fafb;
    transition: background 0.12s ease;
}

.bd-bell-item:hover {
    background: #f9fafb;
    text-decoration: none;
    color: inherit;
}

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

.bd-bell-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

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

.bd-bell-item-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 2px;
}

.bd-bell-item-course {
    font-size: 0.6875rem;
    color: #9ca3af;
    margin: 0;
}

.bd-bell-item-meta {
    flex-shrink: 0;
    text-align: right;
}

.bd-bell-item-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
}

.bd-bell-item-time {
    font-size: 0.625rem;
    color: #9ca3af;
    margin-top: 4px;
    white-space: nowrap;
}
