import styled from 'styled-components/macro'

import { devices } from 'config/devices'
import { ProfileLink } from 'features/ProfileLink'

export const Wrapper = styled.div`
  display: flex;
  font-weight: bold;
  font-size: 36px;
  line-height: 24px;
  color: white;
  min-height: 28px;
  max-width: 1504px;

  @media ${devices.tablet} {
    order: 2;
    font-size: 16px;
    padding: 15px 20px 0 20px;
    flex-wrap: wrap;
  }
`

export const Teams = styled.div`
  display: flex;
`

export const StyledLink = styled(ProfileLink)`
  font-weight: bold;
  color: white;
  &:hover {
    text-decoration: underline;
  }
`

export const Dash = styled.span`
  position: relative;
  width: 40px;
  border-bottom: 3px solid white;
  margin: 0 15px;
  height: fit-content;
  align-self: center;

  @media ${devices.tablet} {
    width: 16px;
    border-bottom: 1px solid white;
    margin: 0 4px;
  }
`

export const Score = styled.div`
  display: flex;
  margin: 0 20px;

  @media ${devices.tablet} {
    margin: 0 10px;
    color: #EACB6F;
  }
`

export const Tournament = styled.div`
  display: flex;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  align-self: flex-end;
  margin-left: 48px;
  color: #666666;

  @media ${devices.tablet} {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
    font-size: 11px;
  }
`

export const DateStyled = styled.span`
  margin-left: auto;

  @media ${devices.tablet} {
    margin-top: 4px;
    margin-left: 0;
  }
`
