import styled, { css } from 'styled-components/macro'
import { isMobileDevice } from 'config/userAgent'

import { ProfileLink } from 'features/ProfileLink'

export const Description = styled.div`
  margin: 20px 0;

  ${isMobileDevice
    ? css`
        @media (orientation: portrait) {
          padding-left: 14px;
        }
      `
    : ''};
`

export const StyledLink = styled(ProfileLink)`
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);

  &:hover {
    color: white;
    text-decoration: underline;
  }
`

export const Title = styled.div`
  display: flex;
  flex-direction: row;
  color: #ffffff;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  margin-bottom: 10px;
  > * {
    color: #ffffff;
  }
`

export const Tournament = styled.span`
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 14px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 5px;
`

export const CountryFlag = styled.img`
  height: 12px;
  margin: 0 6px;
`

export const Views = styled(Tournament)`
  > * {
    margin-right: 5px;
  }
`

export const MatchDate = styled.span``
