@font-face {
    font-family: Gagalin;
    src: url(/static/fonts/Gagalin-Regular.otf);
}
@font-face {
    font-family: Ubuntu;
    src: url(/static/fonts/Ubuntu.ttf);
}
:root {
    --default-article-padding: 0 1rem;
}
* {
    margin: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}

body {
    display: grid;
    grid-template-columns: 0fr 100% 0fr;
}

@media(min-width:700px) {
    body {
        grid-template-columns: 1fr minmax(50ch, 100ch) 1fr;
    }

    .main-header {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    #index-header, .main-call-to-action {
        grid-column: 1;
    }
    #index-header-image {
        grid-column: 2;
        grid-row: 1/3;
    }
    .hamburger {
      display: none;
    }
}

header, article, footer {
    grid-column: 2;
}

h1,
h2 {
    font-family: Gagalin;
}

h1 {
    font-size: 2rem;
}
h2 {
    font-size: 1.7rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    font-size: 100%;
}

#nav-header {
    position: relative;

    display: flex;
    justify-content: space-between;
    padding: 1rem 1rem;
    h1 {
        font-size: 1.25rem;
        color: black;
    }
    p {
        font-size: 80%;
        color:lightslategray
    }
    a:first-of-type {
        display: grid;
        grid-template-columns: auto auto;
        gap: .5rem;
    }

    a:link, a:visited,  a:hover {
        color: black;
        text-decoration: none;
    }

    img {
        width: 3.5rem;
        border-radius: 15px;
        border: 1px solid #ce1415;
    }

    .nav-links {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 2rem;

        a {
            text-decoration: none;
            color: inherit;
            font-weight: 500;
            transition: color 0.3s;
            }
        a:hover {
            color: #ce1415;
        }
    }

    .hamburger {
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
    }

    svg {
        height: 2.5rem;
        fill: black;
    }
}

/* Mobile styles */
@media (max-width: 700px) {
  .hamburger {
    display: block;
  }


  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: white;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    max-height: 0;
    padding: 0 1.5rem;

  }
  .nav-links.active {
      max-height: min(70dvh, 24rem);
      padding: 1.5rem;
      overflow-y: auto;

      a {
          font-weight: bolder;
      }
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

article {
    padding: 0 1rem;
}

.main-header {
    h2 {
        font-size: 4rem;
    }

    p {
        color: #5e5555;
        line-height: 1.5rem;
    }
}

.main-call-to-action {
    margin: 2rem .25rem;
    display: flex;
    justify-content: space-between;
    text-align: center;
    gap:1rem;


    a:link, a:visited,  a:hover {
        text-decoration: none;
    }
}

.image-call-to-action {
    max-width: 70%;
    background: #d01316;
    border-radius: 30px;
    padding: 1rem;
    rotate: 3deg;
    box-shadow: 20px 16px #000000;

    .play-section {
        display: grid;
        grid-template-columns: 1fr 3fr;
        background: white;
        border-radius: 30px;
        padding: 1rem;
        margin-top: .5rem;
        gap: .75rem;
    }

    img {
        max-width: 100%;
        border-radius: 0 30px;
    }
    svg {
        background: #ce1415;
        border-radius: 100%;
        padding: .3rem;
        fill: white;
        width: 100%;
    }

    margin-bottom: 2rem;
}

a.no-style {
    text-decoration: none;
}

.split-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    a {
        color: #ce1415;
        font-size: 1rem;
        font-weight: 400;
        text-decoration: underline;
    }
}

.button {
    color:black;
    padding: 1.25rem 1rem;
    font-weight: 600;
    border: 2px solid black;
    border-radius: 100px;
    flex-grow: 1;
    transition: all .2s;
    font-size: 105%;
    height: fit-content;
}

.big-red {
    background-color: color(srgb 0.8164 0.075 0.0786);
    color: white;
    border-color: color(srgb 0.8164 0.075 0.0786);
    flex-grow: 1.7;
    position: relative;
    top: 0;

}

.big-red:hover {
    top: -2px;
}

.button-default:hover {
    background-color: black;
    color:white;
}

.flex-center {
    display: flex;
    justify-content: center;
}

.episode-card {
    border: 1px solid lightgrey;
    border-radius: 30px;
    overflow: hidden;
    transition: translate .2s;
    &:hover {
        border-color: color(srgb 0.8164 0.075 0.0786);
        translate: 0 -5px;
    }
    & > div {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    h3 {
        text-align: center;
        font-weight: bolder;
        font-size: 1rem;
    }

    #score {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 1rem;

        span {
            background: #b41213;
            padding: 1rem 1.5rem;
            border-radius: 25px;
            letter-spacing: .12rem;
        }
    }

    div:first-child {
        background-color: color(srgb 0.8164 0.075 0.0786);
        padding-top: 2rem;
        padding-bottom: 2rem;
        color: white;
    }
    .episode-card-desc {
        padding-top: 1rem;
        padding-bottom: 1rem;
        display: grid;
        gap: .5rem;

        p {
            color:gray;
            font-size: small;
        }
        p:first-child {
            color: color(srgb 0.8164 0.075 0.0786);
        }

    }
}

#index-episode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

#episode-main {

    header {
        background: color(srgb 0.8164 0.075 0.0786);    
        color: white;
        padding: 2.5rem 1.3rem;
        border-radius: 30px;
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 1rem;                                                                                          

        background-image: 
            /*1. Vertical line */
            linear-gradient(to right,
                transparent calc(50% - 1px),
                rgba(255, 255, 255, 0.35) calc(50% - 1px),
                rgba(255, 255, 255, 0.35) calc(50% + 1px),
                transparent calc(50% + 1px)
            ),
            /* 2. Circle (Ring) */
            radial-gradient(circle, 
                transparent 40%,
                rgba(255, 255, 255, 0.35) 40%,
                rgba(255, 255, 255, 0.35) 41%,
                transparent 41%
            );
    
    /* Position and size the background layers */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%, 280px 280px;
        
        h2 {                                
            text-align: center;
            margin: 0;
        }

        p {
            font-size: small                                                                                                                ;
        }
    }
    
    section {
        margin-top: 3rem;
    }

    h3 {
        font-family: Gagalin;
        margin-bottom: 1.5rem;
    }


    #episode-player-rating {
        position: relative;
        padding: 1rem 1rem;
        border-radius: 30px;
        display: grid;
        grid-template-rows: repeat(4, 1fr);
        height: 350px;
        background-color: #06925c;
        color: white;
        .pitch-bg {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        .pitch-lines {
            fill: none;
            stroke: rgba(255, 255, 255, 0.33);
            stroke-width: 4;
            vector-effect: non-scaling-stroke;
        }

        .FW,
        .MD,
        .DF,
        .GK {
            position: relative;
            z-index: 1;
            display: flex;
            justify-content: space-evenly;
            align-items: center;

            .player {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: .2rem;
            }

            .avatar {
                position: relative;
                display: block;
                width: fit-content;
            }

            .name {
                font-size: .8rem;
                white-space: nowrap;
            }
        }
        .GK {
            justify-content: center;
        }

        .score {
            position: absolute;
            top: 0;
            right: 0;
            transform: translate(35%, -35%);

            width: 1.45rem;
            height: 1.45rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .72rem;
            font-weight: 700;
            line-height: 1;
            color: #fff;
            border-radius: 30px;
        }


            .ten {
                background-color: #36c670;
            }

    }

    .episode-avatar-img {
        width: 37px;
        border-radius: 100%;
        background: #ffffff4f;
        padding: .2rem;
    }
}

.wine-rating {
    border: solid 1px lightgrey;
    border-radius: 20px;
    padding: 1.25rem;

    display: grid;
    grid-template-columns: 50% 50%;
    gap: 1rem;
    transition: translate .2s;
    &:hover {
        border-color: color(srgb 0.8164 0.075 0.0786);
        translate: 0 -5px;
    }
    &:not(:last-child) {
        margin-bottom: 1rem;
    }
    h4, .country {
        grid-column: 2;
    }
    h4 {
        font-size: 1.1rem;
    }
    .rating {
        grid-column: 1;
        grid-row: 1 / 3;
        background: red;
        display: flex;
        justify-content: center;
        border-radius: 20px;
        height: 100%;
        align-items: center;
        color: white;
        font-weight: bolder;
        font-size: larger;
        padding: 1.6rem;
    }
}

.episode-wine-rating-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    
}

footer {
    margin-top: 2rem;
    padding: 2rem 1rem;
    border-top: 1px solid #9e9e9e52;
}
audio {
    width: 100%;
}