@layer reset, tokens, global, composition, blocks, utilities;

@layer blocks {
  .notifications-btn {
    --_notification-bell-badge-bg: var(--status-error-text-color);
    --_notification-bell-badge-color: var(--text-on-accent-color);
    --_notification-bell-color: var(--text-muted-color);
    --_notification-bell-hover-color: var(--brand-primary-color);
    --_notification-bell-hover-bg: var(--brand-surface-hover-color);
    --_notification-bell-padding: var(--space-3xs);
    --_notification-bell-radius: var(--radius-pill);
    --_notification-bell-badge-font-size: var(--text-caption-size);

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: var(--_notification-bell-padding);
    border: none;
    border-radius: var(--_notification-bell-radius);
    color: var(--_notification-bell-color);
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;

    & span {
      font-size: 1.5rem;
    }

    &:hover {
      color: var(--_notification-bell-hover-color);
      background-color: var(--_notification-bell-hover-bg);
    }

    & > .badge {
      position: absolute;
      top: -5px;
      right: -5px;
      padding: 2px 6px;
      border-radius: var(--_notification-bell-radius);
      color: var(--_notification-bell-badge-color);
      background-color: var(--_notification-bell-badge-bg);
      font-size: var(--_notification-bell-badge-font-size);
      font-weight: 700;
    }
  }
}
