@import url("../../assets/css/root.css");
@import url("../../css/navbar.css");
@import url("../../css/footer.css");

.container {
    width: 90%; 
    margin: 0 auto; 
    margin-top: 1rem;
}

/* SELECT */
#selectTitle {
    display: flex;
    justify-content: center;
    text-transform: uppercase;
    text-align: center;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    background: linear-gradient(90deg, #1a391d, #47904b, #30633a);
    background-size: 300% 300%;
    animation: gradientMove 5s infinite alternate ease-in-out;
    transition: transform 0.2s ease;
}

#selectTitle:hover {
    transform: scale(1.03);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}


#selectEquipo {
    background-color: var(--clr2);
    color: var(--white);
    border: 2px solid var(--secondary);
    border-radius: 8px;
    padding: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
}

#selectEquipo:hover {
    background-color: var(--clr);
    border-color: var(--primary);
}

#selectEquipo:focus {
    outline: none;
    border-color: var(--contra2);
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.6);
}

/* LOGO */

#logoContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    background-color: var(--clr);
    border: 1px solid var(--tertiary);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#logoContainer .team-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#logoContainer .team-name {
    margin-left: 15px;
    font-size: 1.5rem;
}

#logoContainer img {
    background-color: var(--clr3);
    max-width: 200px;
    max-height: 200px;
    padding: 1rem;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset, rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset, rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
}

#logoContainer .team-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 20px;
    color: var(--white2);
    text-transform: uppercase;
}


/* JUGADORES */
#jugadoresContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.card.card-body {
    background-color: var(--clr);
    border: 1px solid var(--tertiary);
    border-radius: 12px;
    color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.card-body:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.6);
    border: 1px solid var(--primary);
}

.card.card-body img {
    border-radius: 8px;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card.card-body strong {
    font-size: 1.25rem;
    color: var(--primary);
}

.card.card-body small {
    color: var(--white3);
    font-size: 1rem;
    font-weight: 600;
}

/* BREAKPOINTS */
@media (max-width: 768px) {
    main {
        padding-top: 120px;
    }
    .container {
        max-width: 100%;
    }
    #logoContainer {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    #logoContainer .team-container {
        flex-direction: column;
        align-items: center;
    }

    #logoContainer .team-name {
        margin-left: 0;
        margin-top: 10px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    #jugadoresContainer {
        grid-template-columns: 1fr;
    }
}