import { css, styled } from '../../styles';
import { Flex } from '../Flex';

import { HeaderProps } from './Header';

const variants = {
  default: css`
    box-shadow: 0px 1px 2px rgba (21, 41, 53, 0.24),
      0px 1px 3px rgba(21, 41, 53, 0.12);
  `,
  transparent: ``,
};

export const Wrapper = styled.div<{ variant: HeaderProps['variant'] }>`
  width: 100%;
  background-color: white;
  box-shadow: 0px 1px 2px rgba(21, 41, 53, 0.24),
    0px 1px 3px rgba(21, 41, 53, 0.12);
  height: ${({ theme }) => theme.header.height};
  font-size: ${({ theme }) => theme.fontSizes[1]};
  ${({ variant }) => variants[variant]};
  > a {
    float: left;
  }
  .pui-header-menu {
    li {
      display: inline-flex;
      align-items: center;
      color: $poly-gray-dark;
      font-size: 14px;
      line-height: 22px;
      margin-left: 30px;
      font-weight: 300;
      svg,
      img {
        margin-right: 8px;
      }
    }
  }
`;

export const Inner = styled(Flex)`
  height: ${({ theme }) => theme.header.height};
`;
