@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

@font-face {
    font-family: 'Flick';
    src: url('./fonts/FlickDemo-vmrYL.ttf') format('truetype');
}

:root {
    --white: #fff;
    --border-title: hsla(0, 0%, 100%, 0.080);
    --gray-background-cards: #2A2A2A;
    --gray-background: #1E1E1E;
    --gray-inputs-background: #343434;
    --green-links-line: #00A3FF;
    --green-title-time-or-set: #11BE18;
    --green-title-destaq: #0066ff;
    --red-live: #FF3232;
    --pink-feminine: #FF32AA;
    --color-general: #c9c9c9;
}
.phase {
    margin-bottom: 15px;
    
}

.phase-title {
    background: var(--gray-inputs-background);
    color: white;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.team {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px;
    margin: 5px 0;
    border-radius: 5px;
    transition: background 0.2s;
}


.team-name {
    font-weight: 500;
    color: #ffffff;
}

.team-score {
    font-weight: bold;
    color: #ffffff;
}

.matches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.match-card {
    background: var(--gray-inputs-background);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 5px solid var(--green-title-destaq);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.match-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--green-title-destaq);
    border-bottom: 1px solid var(--green-title-destaq);
    padding-bottom: 5px;
}

.team {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px;
    margin: 5px 0;
    border-radius: 5px;
    transition: background 0.2s;
}

.team:hover {
    background: #686868;
    
}


.winner {
    background: #686868;
    border-left: 3px solid var(--green-title-time-or-set);
}

.match-info {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.final-match {
    border-left: 5px solid #FFD700;
    background: var(--gray-inputs-background);
}

.final-match .match-header {
    color: #b8860b;
    font-size: 1.1rem;
}

.group-phase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.group-card {
    background: var(--gray-inputs-background);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--green-title-destaq);
}

.group-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--green-title-destaq);
}

.team-standing {
    display: flex;
    justify-content: space-between;
    padding: 6px 3px;
    margin: 3px 0;
    border-radius: 3px;
}

.team-standing:nth-child(2) {
    background: var(--gray-background);
}

.team-standing:nth-child(3) {
    background: var(--gray-background);
}

.event-card {
    background-color: var(--gray-background-cards);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-left: 10px solid var(--gray-inputs-background);
}

.event-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 1.1rem;
}

.athlete {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px;
    margin: 5px 0;
    border-radius: 5px;
}

.medal-gold {
    background: linear-gradient(to right, #0181f8, #0022e2);
    border-left: 3px solid #003cff;
}

.medal-silver {
    background: linear-gradient(to right, #007da3, #001cb9);
    border-left: 3px solid #0004ff;
}

.medal-bronze {
    background: linear-gradient(to right, #00498d, #000f64);
    border-left: 3px solid #002fff;
}

h3{
    color: #ffffff;
}

.alert-page {
    width: 100%;
    margin: 20px auto;
    background-color: var(--gray-background-cards);
    border-left: 4px solid #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.alert-img {
    flex-shrink: 0;
    font-size: 24px;
    color: #fff;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.modal-mobile{
    display: none;
}
.mobile-menu-functions{
    display: none;
}
/* ===== SEÇÃO DE DOWNLOADS ===== */
.downloads-section {
    width: 100%;
    margin: 0 auto;
}

.downloads-header {
    text-align: center;
    margin-bottom: 40px;
}

.downloads-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.downloads-header p {
    color: hsla(0, 0%, 100%, 0.7);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.downloads-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.download-card {
    background-color: #2A2A2A;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid #0026ff;
    min-height: 120px;
}

.file-info {
    padding-right: 60px;
}

.file-name {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #fff;
}

.file-size {
    color: hsla(0, 0%, 100%, 0.7);
    font-size: 0.9rem;
}

.download-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 163, 255, 0.1);
    color: #00A3FF;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-btn:hover {
    color: #fff;
    background: rgba(0, 163, 255, 0.3);
    transform: scale(1.1);
}

/* ===== MODAL DE CONFIRMAÇÃO ===== */
.confirm-modal {
    display: none; /* começa invisível */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #2A2A2A;
    padding: 30px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-top: 4px solid #00A3FF;
}

.modal-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.modal-content p {
    color: hsla(0, 0%, 100%, 0.7);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.modal-btn {
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.confirm-btn {
    background-color: #00A3FF;
    color: #1E1E1E;
}

.cancel-btn {
    background-color: transparent;
    color: hsla(0, 0%, 100%, 0.7);
    border: 1px solid hsla(0, 0%, 100%, 0.7);
}

.confirm-btn:hover {
    background-color: #00d9ff;
}

.cancel-btn:hover {
    color: #fff;
    border-color: #fff;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .downloads-container {
        grid-template-columns: 1fr;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .modal-btn {
        width: 100%;
    }
}

header {
    height: 80px;
    margin: 0 auto;
    width: 100%;
    position: sticky;
    top: 0;
    background-color: var(--gray-background);
    z-index: 1;
}
.input-authenticate{
    height: 2.6em;
    width: 28em;
    background-color: #2A2A2A;
    border-radius: 15px;
    font-size: 18px;
    border: 2px solid white;
    color: white;
    padding: 10px;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0 16px;
    max-width: 1152px;
}

img.logo-jiifs {
    height: 45px;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

header li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 24px;
}

a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 24px;
}

.icon-burguer, .icon-close {
    display: none;
}

a.home-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
    z-index: 0;
}

a.home-link::after {
    content: "";
    pointer-events: none;
    bottom: -12px;
    position: absolute;
    width: 80%;
    height: 4px;
    background-color: var(--green-links-line);
    animation: animationLinkNav 1s forwards;
}

@keyframes animationLinkNav {
    0% {
        width: 0;
    }

    100% {
        width: 80%;

    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gray-background);
}
main {
    max-width: 1152px;
    margin: 0 auto;
    padding: 32px 16px;
    padding-bottom: 128px;
    gap: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.games{
    display: flex;
    flex-direction: column;
    max-width: 550px;
    width: 550px;
    gap:60px ;
}
.filters{
    background-color:var(--gray-background-cards) ;
    height: 200px;
    border-radius: 16px;
}
.filters h2{
    display: flex;
    align-items: center;
    height: 45px;
    border-bottom: 1px solid var(--border-title);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 16px 16px 0 0;
    padding-left: 20px;
}
.search-game-filters{
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
}
.search-games{
    display: flex;
    align-items: center;
    background-color: var(--gray-inputs-background);
    max-width:245px ;
    border-radius: 8px;
    height: 30px;
    gap: 13px;
    padding-left: 10px;
}
.search-games input{
    background-color: var(--gray-inputs-background);
    border: none;
    outline: none;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    font-weight: 600;
    width: 195px;
    height: 30px;
}
.search-games input::-webkit-input-placeholder{
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
}
.game-filters{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
}
.games-filter{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--gray-inputs-background);
    border-radius: 8px;
    width: 195px;
    height: 30px;
    padding: 0 10px;
}
select{
    -webkit-appearance: none;
    -moz-appearance: none;
    text-overflow: '';
    background-color: var(--gray-inputs-background);
    border: none;
    outline: none;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    font-size: 16px;
    font-weight: 600;
    width: 125px;
    height: 30px;
}

option{
    text-align: center;
}

.games-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    max-width: 550px;
}
.game-block{
    width: 100%;
    background-color: var(--gray-background-cards);
    border-radius: 16px;
}
.block-informations{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--gray-inputs-background);
    border-radius: 16px 16px 0 0;
    height: 32px;
    width: 100%;
}
.block-informations .modality{
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
}
.block-informations .modality img{
    height: 16px;
}
.block-informations .status{
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--white);
}
.block-informations .status img{
    height: 16px;
}
.games-of-block{
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 35px 0;
    gap: 18px;
}
.games-of-block .game{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

}
.row-bottom{
    padding-bottom: 15px;
    border-bottom: 1.5px solid #575757;
    width: auto;
}
.games-of-block .game img{
    width: 32px;
    border-radius: 16px;
}

.game p{
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}
.team-a{
    display: flex;
    width: 120px;
    justify-content: flex-end;
}
.team-b{
    width: 120px;
    justify-content: flex-start;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1152px;
    margin: 0 auto;
    padding: 16px;

}
.today-games{
    background-color: var(--gray-background-cards);
    border-radius: 16px;
    max-width: 550px;
    width: 350px;
    height: 80vh;
}
.today-games h2{
    display: flex;
    align-items: center;
    height: 45px;
    border-bottom: 1px solid var(--border-title);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 16px 16px 0 0;
    padding-left: 20px;
}
.today-games-container{
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 22px;
    padding: 20px 0;
    height: calc(80vh - 45px);
    overflow-y: scroll;
    overflow-x: hidden;
}
.today-games-container::-webkit-scrollbar{
    width: 8px;
}
.today-games-container::-webkit-scrollbar-thumb{
    background-color: var(--gray-inputs-background);
    border-radius: 8px;
}
.today-game{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.today-game img{
    width: 32px;
    border-radius: 16px;
}

.today-game p{
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}
.today-game img.sport{
    width: 42px;
}
footer img {
    height: 80px;
}
@media screen and (max-width:1000px) {
    header {
        max-width: 700px;
    }

    header nav ul {
        gap: 20px;
    }

    header li a {
        font-size: 20px;
    }

    img.logo-jiifs {
        height: 30px;
    }
    .future-feature{
        display: none;
    }
    main {
        display: flex;
        justify-content: center;
        flex-direction: column;
        max-width: 700px;
        padding-bottom: 180px;
    }
    .today-games{
        width: 550px;
        height: auto;
    }
    .mobile-menu-functions{
        display: flex;
        justify-content: center;
        position: fixed;
        bottom: 0px;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: var(--gray-background);
    }
    .menu-of-functions{
        display: flex;
        align-items: center;
        width: 700px;
        height: 60px;
        gap: 32px;
        padding: 0 16px;
    }
    .menu-of-functions>li{
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        color: var(--white);
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;

    }
    .menu-of-functions>li.activate{
        color: var(--green-links-line);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        cursor: pointer;
        position: relative;
        border: none;
        background: none;
        z-index: 0;
    }
    .menu-of-functions>li.activate::after{
        content: "";
        pointer-events: none;
        bottom: -12px;
        position: absolute;
        height: 4px;
        background-color: var(--green-links-line);
        animation: animationLinkNav 1s forwards;
    }
    footer {
        width: 700px;
        height: 60px;
        margin-top: -120px;
    }

    footer img {
        height: 60px;
    }
    .input-authenticate{
        width: 24em;
    }
    
}
@media screen and (max-width:750px) {
    header {
        max-width: 350px;
        height: 60px;
    }
    .modal-mobile{
        display: none;
        height: 100vh;
        width: 50vw;
        position: fixed;
        top: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.541);
        z-index: 2;
        overflow-y: hidden;
    }
    header nav ul {
        display: none;
        align-items: center;
        gap: 40px;
        flex-direction: column;
        position: fixed;
        top: 0px;
        right: 0;
        background-color: var(--gray-background);
        padding: 20px 10px;
        width: 50%;
        height: 100vh;
        z-index: 4;
    }

    .icon-burguer {
        display: block;
        cursor: pointer;
    }
    .icon-close{
        align-self: flex-end;
        cursor: pointer;
    }
    .item-close{
        align-self: flex-start;
        width: 80%;
        display: flex;
        justify-content: flex-end;
    }
    main {
        max-width: 350px;
        padding-bottom: 180px;
    }
    .games{
        max-width: 350px;
        width: 318px;
        gap: 32px;
    }
    .games-filter{
        width: 120px;
    }
    .games-filter img{
       width: 16px;
    }
    select{
        width: 70px;

    }
    .games-container{
        max-width: 350px;
        width: 318px;
    }
    .game-block{
        max-width: 350px;
        width: 318px;
    }
    .game-block .game{
        gap: 16px;
    }
    .game p{
        font-size: 12px;
        gap: 16px;
    }
    .today-games{
        max-width: 350px;
        width: 318px;
        padding: 0;
    }
    .today-games-container{
        overflow-y: auto;
    }
    .today-game img{
        width: 28px;
        border-radius: 16px;
    }
    
    .today-game p{
        display: flex;
        align-items: center;
        gap: 18px;
        font-size: 12px;
        font-weight: 600;
        color: var(--white);
    }
    .today-game img.sport{
        width: 36px;
    }
    footer {
        width: 350px;
        height: 60px;
        margin-top: -120px;
    }

    footer img {
        height: 40px;
    }
    .menu-of-functions{
        width: 350px;
    }
    .input-authenticate{
        width: 15em;
    }
}