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

import { isMobileDevice } from 'config/userAgent'

import { ProfileLink } from 'features/ProfileLink'
import { ProfileLogo } from 'features/ProfileLogo'

export const Wrapper = styled.div`
  width: 70%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  ${isMobileDevice
    ? css`
      height: 78px;
      margin-top: 30px;
    `
    : ''};
`

export const Team = styled.div`
  font-size: 21px;

  ${isMobileDevice
    ? css`
      font-size: 16px;
    `
    : ''};
`

export const StyledLink = styled(ProfileLink)`
  display: flex;
  align-items: center;
  color: white;

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

export const ScoreWrapper = styled.div`
  margin: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
`

export const Score = styled.span`
  font-size: 23px;
  line-height: 18px;
  text-align: center;
  ${isMobileDevice
    ? css`
      font-size: 16px;
      width: max-content;
    `
    : ''};
`

export const MatchStatus = styled.span`
  text-align: center;
  background-color: #CC0000;
  border-radius: 1.3px;
  font-weight: 600;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2.5px 14px;
  margin-top: 6px;
`

export const Logo = styled(ProfileLogo)`
  width: 41px;
  height: 41px;
  margin: 0 9px;
  ${isMobileDevice
    ? css`
      width: 30px;
      height: 30px;
    `
    : ''};
`
