
/* Extra small - Mobile*/
@media only screen and (max-width: 600px) {

    .color{
        background-color: #0470a1;
    }

}

/*Medium - Tablet*/
@media only screen and (min-width: 768px){

    .color{
        background-color: #0470a1;
    }

}


@media only screen and (min-width: 992px) {

    .color{
        background-color: #0470a1;
        background-image: url(../img/cna-esportes-logo.png);
        background-repeat: no-repeat;
        background-position: right;
    }

}

.imagem-usuario{
    transition: all 0.3s ease-in-out;
}

.imagem-usuario:hover{
    opacity: 0.8;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.imagem-arbitro{
    transition: all 0.3s ease-in-out;
}

.imagem-arbitro:hover{
    opacity: 0.8;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}


.submenu {
        background: radial-gradient(
            circle,
            rgba(108,117,125,0.85) 30%,   /* cor do bg-secondary */
            rgba(255,255,255,0.7) 100%    /* desbota para branco */
        );
    }

    .submenu::before,
    .submenu::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 60px;
        z-index: 1;
        pointer-events: none; /* evita que bloqueiem cliques */
    }

    .submenu::before {
        left: 0;
        background: linear-gradient(to right, white, transparent);
    }

    .submenu::after {
        right: 0;
        background: linear-gradient(to left, white, transparent);
    }

    .submenu .container {
        position: relative;
        z-index: 2; /* para o conteúdo ficar acima dos gradientes */
    }

.nav-esportes {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem; /* espaço entre os itens */
    }
    .nav-esportes .nav-item {
        margin: 0 !important;
    }
    .nav-esportes .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        white-space: nowrap; /* evita quebra de linha dentro dos links */
    }

    .nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: #0470a1;
    left: 50%;
    bottom: 0;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 80%;
}

.tag-filter.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Começa escondido */
.nav-arrow {
    display: none;
}

/* MOBILE */
@media (max-width: 768px) {
    .custom-nav-carousel {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0;
        position: relative; /* Para posicionar as setas absolutas */
    }

    .custom-nav-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        flex: 1;
        padding-left: 40px;  /* espaço para seta esquerda */
        padding-right: 40px; /* espaço para seta direita */
        box-sizing: border-box;
    }

    .custom-nav-list {
        display: flex;
        list-style: none; /* Remove bullet points */
        margin: 0;
        padding: 0;
        gap: 15px; /* Espaçamento consistente entre os itens */
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .custom-nav-item {
        flex-shrink: 0; /* Impede que os itens encolham */
    }

    /* Estilos das setas */
    .nav-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.7);
        color: #0470a1;
        border: none;
        font-size: 20px;
        padding: 8px;
        cursor: pointer;
        z-index: 10;
        width: 40px;
        height: auto;
        user-select: none;
        flex-shrink: 0;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-arrow.left {
        left: 0;
    }

    .nav-arrow.right {
        right: 0;
    }
}

/* DESKTOP */
@media (min-width: 769px) {
    .custom-nav-carousel {
        display: block; /* remove flex */
        position: static; /* remove posicionamento absoluto */
        width: 100%;
        padding: 0;
    }

    .custom-nav-wrapper {
        overflow: visible; /* sem scroll */
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .custom-nav-list {
        display: flex;
        list-style: none;
        flex-wrap: wrap; /* permite quebra de linha */
        justify-content: center; /* centraliza itens */
        white-space: normal;
        gap: 15px;
        padding: 0;
        margin: 0 auto;
    }

    .custom-nav-item {
        flex-shrink: 0;
        margin-left: 0;
        margin-right: 0;
    }

    /* Esconde setas */
    .nav-arrow {
        display: none !important;
    }
}