import styled from "styled-components";

const Heading = styled.div`
  ${(p) => p.theme.textStyle.headingXXS};
  color: ${(p) => p.theme.color.textLowEmphasis};
  margin-bottom: ${(p) => p.theme.spacing.xs};
  cursor: default;

  &:empty {
    display: none;
  }
`;

const SubItem = styled.div`
  display: block;
  ${(p) => p.theme.textStyle.uiM};
  color: ${(p) => p.theme.color.textHighEmphasis};
  clear: both;
  width: 100%;

  &:hover {
    cursor: pointer;
  }

  > a {
    display: flex;
    padding: ${(p) => p.theme.spacing.xs};
    border-radius: ${(p) => p.theme.radii.s};
    color: inherit;

    &:hover {
      background: ${(p) => p.theme.color.overlayHoverPrimary};
    }
  }
`;

const Item = styled.article`
  margin-bottom: ${(p) => p.theme.spacing.m};
`;

const LinkWrapper = styled.div`
  display: flex;
  align-items: center;
  justify-content: center;
`;

const Link = styled.div<{ active: boolean }>`
    color: ${(p) => (p.active ? p.theme.color.textHighEmphasis : p.theme.color.textMediumEmphasis)};
`;

export { Heading, SubItem, Item, LinkWrapper, Link };
