import styled from 'styled-components/macro'
import { Link } from 'react-router-dom'

import { devices } from 'config/devices'

export const HomeButtonLink = styled(Link)`
  width: 55px;
  height: 48px;
  background-image: url('/images/home-btn.svg');
  background-repeat: no-repeat;
  background-position: center;
  &:hover{
    background-image: url('/images/home-btn-hover.svg');
    cursor:pointer;
  }
`

export const Wrapper = styled.header`
  display: flex;
  padding-top: 16px;
  margin-bottom: 30px;

  @media${devices.laptop} {
    padding-top: 11px;
    margin-bottom: 0;
  }
`

export const FilterWrapper = styled.div`
  width: 288px;
  height: 48px;
  margin-right: 16px;
  display: flex;
`

export const SearchWrapper = styled(FilterWrapper)`
  width: 288px;
  height: 48px;
  margin-right: 16px;
  display: flex;

  @media${devices.desktop} {
    width: 51px;
    margin-right: 9px;

    :focus {
      width: 288px;
    }

    &:only-child {
      width: 244px;
    }
  }
`

export const SportFilterWrapper = styled(FilterWrapper)`
  width: 400px;

  @media${devices.desktop} {
    width: 350px;
  }

  @media${devices.laptop} {
    width: 234px;
  }
  @media${devices.tablet} {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: radial-gradient( 49.07% 49.07% at 50% 29.54%, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 100% ), rgba(0,0,0,0.95);
  }
`

export const MenuWrapper = styled.div`
  display: flex;
  margin-right: 57px;

  @media${devices.laptop} {
    margin-right: 14px;
  }
`
