/**
 * HERO.CSS
 * Estilos para la sección principal (banner) de la página
 * Incluye: Contenedor principal, logo del juego, botones de llamada a la acción
 * y adaptaciones responsive para diferentes dispositivos
 */

/* Contenedor principal - Ocupa toda la altura de la ventana */
.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    background-color: var(--color-dark-gray);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../ui/hero/banner_adaptado.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Contenedor del logo */
.hero__logo-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    z-index: 10;
    padding: 120px 40px 0;
}

.hero__game-logo {
    width: 500px;
    max-width: 90%;
    height: auto;
    display: block;
    margin-top: -80px;
    margin-left: -20px;
    position: relative;
    z-index: 20;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

/* Contenedor de botones */
.hero__buttons-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 20;
    padding: 20px 40px;
    bottom: 20%;
    left: 0;
    right: 0;
}

.hero__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    width: 100%;
    max-width: 1920px;
}

/* Estilos de botones */
.hero-button {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
}

.hero-button__img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.hero-button__container {
    position: relative;
    display: inline-block;
    transition: transform 0.2s ease;
}

.hero-button--news:hover .hero-button__container {
    transform: scale(1.07);
}

.hero-button__text {
    position: absolute;
    top: calc(50% - 2px);
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-gray);
    font-family: 'MorningBreeze', 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 2rem;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    width: 100%;
    display: block;
}

/* Botones específicos */
.hero-button--steam, .hero-button--kick, .hero-button--discord {
    margin-bottom: -7px;
    width: 320px;
    position: relative;
    z-index: 30;
}

.hero-button--kick {
    width: 330px;
}

.hero-button--steam .hero-button__text,
.hero-button--kick .hero-button__text {
    transform: translate(-50%, calc(-50% - 2px));
    color: var(--color-gray);
    text-shadow: none;
}

/* Botón de Discord */
.hero-button--discord {
    width: 320px;
    margin-bottom: 10px;
}

.hero-button--discord .hero-button__text {
    color: var(--color-black);
    text-shadow: 1px 1px 2px var(--color-shadow-light);
    z-index: 10;
}

/* Efectos de hover para el botón de Discord */
.hero-button--discord:hover .hero-button__img {
    content: url('../ui/global/bttn_long_03_b.png');
}

.hero-button--discord:hover .hero-button__text {
    color: var(--color-primary-hover);
}

.hero-button--discord:hover .hero-button__container {
    transform: scale(1.07);
}

/* Media Queries */
@media (min-width: 1921px) {
    .hero__game-logo {
        width: 700px;
        margin-top: -100px;
    }

    .hero__logo-container {
        margin-bottom: 40px;
    }

    .hero__buttons-container {
        padding: 30px 0;
        bottom: 35%;
    }

    .hero-button--steam, .hero-button--discord {
        width: 450px;
    }

    .hero-button--kick {
        width: 470px;
    }

    .hero-button__text {
        font-size: 2.5rem;
    }
}

@media (min-width: 1441px) and (max-width: 1920px) {
    .hero__buttons-container {
        bottom: 25%;
    }

    .hero__game-logo {
        width: 450px;
        margin-top: -100px;
    }
}

@media (max-width: 1440px) and (min-width: 1025px) {
    .hero__buttons-container {
        bottom: 20%;
    }

    .hero__game-logo {
        width: 400px;
        margin-top: -60px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .hero__buttons-container {
        bottom: 25%;
    }

    .hero__game-logo {
        width: 350px;
        margin-top: -100px;
    }

    .hero-button--steam, .hero-button--kick, .hero-button--discord {
        width: 280px;
    }

    .hero-button--kick {
        width: 290px;
    }

    .hero-button__text {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        align-items: center;
        justify-content: flex-start;
    }

    .hero__logo-container {
        justify-content: center;
        margin-bottom: 20px;
    }

    .hero__game-logo {
        margin-left: auto;
        margin-right: auto;
        margin-top: 0;
        width: 400px;
    }

    .hero__buttons-container {
        bottom: 20%;
        padding: 10px 0;
        margin-top: 30px;
        position: relative;
        top: 0;
    }

    .hero-button--steam, .hero-button--kick, .hero-button--discord {
        width: 280px;
    }
}

@media (max-width: 768px) and (min-width: 426px) {
    .hero__game-logo {
        width: 380px;
        margin-top: -20px;
    }
}

@media (max-width: 425px) {
    .hero__game-logo {
        width: 350px;
    }

    .hero__logo-container {
        margin-bottom: 10px;
    }

    .hero__buttons-container {
        padding: 5px 0;
        margin-top: 20px;
        top: 0;
    }

    .hero-button--steam, .hero-button--kick, .hero-button--discord {
        width: 250px;
    }

    .hero {
        padding-bottom: 150px;
    }
}

@media (max-width: 320px) {
    .hero__game-logo {
        width: 320px;
        margin-top: -60px;
    }

    .hero__logo-container {
        margin-bottom: 8px;
    }

    .hero__buttons-container {
        padding: 5px 0;
        margin-top: 18px;
        margin-bottom: 75px;
    }

    .hero-button--steam, .hero-button--kick, .hero-button--discord {
        width: 220px;
    }

    .hero {
        padding-bottom: 140px;
    }
}

/* Reglas específicas para iPhone */
@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 3),
       only screen and (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-device-width: 414px) and (max-device-width: 896px) and (-webkit-min-device-pixel-ratio: 2) {
    .hero-button--steam, .hero-button--kick, .hero-button--discord {
        width: 250px;
    }

    .hero-button__img {
        max-width: 100%;
    }

    .hero-button__text {
        font-size: 1.8rem;
    }


    .hero-button--discord .hero-button__text {
        z-index: 10;
    }
}

/* Ajustes para pantallas con poca altura */
@media (max-height: 650px) {
    .hero {
        height: auto;
        min-height: 600px;
    }

    .hero__logo-container {
        padding-top: 80px;
    }

    .hero__game-logo {
        width: 300px;
        margin-top: -40px;
    }

    .hero__buttons-container {
        bottom: 15%;
    }
}

@media (max-width: 400px) and (max-height: 650px) {
    .hero {
        min-height: 550px;
    }

    .hero__logo-container {
        padding-top: 60px;
    }

    .hero__game-logo {
        width: 280px;
        margin-top: -30px;
    }

    .hero__buttons-container {
        bottom: 10%;
    }
}
