*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #050505;
    font-family: 'Ubuntu', sans-serif;
    color: #e6e6ea;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    /* margin-top: -10vh;*/
}

.main-layout {
    display: flex;
    flex-direction: column;
    align-items: center; 
}


h1 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.platforms {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    width: 100%; 
}

.platform-link {
    text-decoration: none;
    color: inherit; 
}

.categories__btn {
    cursor: default;
    /* Para indicar que no es un botón clickeable */
    user-select: none; 
}


.temporary__storage {
    width: 330px;
    height: 330px;
    background: #181717;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #252424; 
} 

.card {
    width: 300px;
    height: 300px;
    background: #181717;
    position: relative;
    color: #e6e6ea;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: 2px;
    overflow: hidden; 
}

.image {
    width: 100%;
    height: 180px;
    background-color: rgb(144, 197, 47);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease; 
}

.image::before {
    content: attr(data-live);
    position: absolute;
    top: 7px;
    left: 7px;
    font-weight: 900;
    font-size: 0.8em;
    border-radius: 5px;
    padding: 3px 5px;
    background-color: #e42121;
    color: white;
    display: none;
    /* oculto inicialmente */ 
}

.card.twitch .image[data-live="LIVE"]::before {
    display: inline-block;
    /* visible si estás en vivo */ 
} 


.card.twitch .image::before {
    background-color: #e42121;
    color: white; 
}

.card.kick .image::before {
    background-color: #1a1a1a;
    /* fondo negro estilo Kick */
    color: #32CD32;
    /* verde suave o blanco si querés */
}

.card.youtube .image::before {
    background-color: #000000;
    color: white; 
}

.youtube .youtube-live-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    background-color: #ff0000;
    color: white;
    font-weight: 700;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2; 
}

.youtube .youtube-live-badge .live-icon {
    width: 16px;
    height: 16px;
    fill: white;
}

.youtube-live-badge.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

.image[data-viewers]::after {
    content: attr(data-viewers);
    position: absolute;
    bottom: 7px;
    left: 7px;
    font-weight: 300;
    font-size: 0.7em;
    background-color: #000000c5;
    border-radius: 3px;
    padding: 5px 5px; 
}


.image:hover {
    transform: translate(8px, -8px);
    box-shadow:
        -1px 1px 0px 0px #ff0050,
        -2px 2px 0px 0px #ff0050,
        -3px 3px 0px 0px #ff0050,
        -4px 4px 0px 0px #ff0050,
        -5px 5px 0px 0px #ff0050,
        -6px 6px 0px 0px #ff0050,
        -7px 7px 0px 0px #ff0050,
        -8px 8px 0px 0px #ff0050;
        
}

.content {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 10px; 
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center; 
}

.avatar-svg {
    width: 200%;
    height: 200%;
    transform: scale(0.9);
    transform-origin: center;
    display: block; 
}


.content__text {
    display: flex;
    flex-direction: column;
    gap: 5px; 
}

.content__body {
    display: flex;
    flex-direction: column; 
}

.stream__title {
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 220px;
    cursor: pointer; 
}

.event {
    margin-top: 2px; 
}

.streamer__name,
.event {
    font-size: 0.8em;
    font-weight: 400;
    color: #d8d5d5; 
}

.categories {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 5px; 
}

.categories__btn {
    text-decoration: none;
    color: rgb(216, 213, 213);
    font-size: 0.75em;
    background-color: #3a3636;
    padding: 3px 10px;
    border-radius: 8px; 
}

.stream__title:hover {
    color: #ff0050;
}

.categories__btn:hover {
    background-color: #4f4f4f;
}

/* Colores por plataforma */
.card.twitch .image {
    background: linear-gradient(135deg, #9f5fff, #5c2d91);
}

.card.kick .image {
    background: linear-gradient(135deg, #32CD32, #104d10);
}

.card.youtube .image {
    background: linear-gradient(145deg, #ff3434, #b30000);
}

.image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.2s ease;
    width: 100%;
    height: 180px;
    
}

.platform-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    /* si usás <img> */
    color: rgb(255, 255, 255);
    opacity: 0.8; 
}

.platform-icon[data-icon*="kick"] {
    width: 64px;
    height: 64px;
    object-fit: contain;
    /* si usás <img> */
    color: rgb(0, 0, 0);
    opacity: 0.8; 
}

.iconify[data-icon*="twitch"] {
    transform: scale(2.4);
}

.iconify[data-icon*="kick"] {
    transform: scale(1.4);
}

.iconify[data-icon*="youtube"] {
    transform: scale(2.5);
}


@media (max-width: 767px) {
    .platforms {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .temporary__storage {
        width: 100%;
        height: 50%;
        display: flex;
        justify-content: center;
    }

    .card {
        width: 80vw;
        height: 100px;
        border-radius: 12px;
        padding: 0;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card .image {
        width: 100%;
        height: 100%;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Ocultamos todos los textos e info adicional */
    .card .content,
    .card .avatar,
    .card .image__overlay,
    .card .youtube-live-badge,
    .card .content__text {
        display: none !important;
    }



    .iconify[data-icon*="twitch"] {
        transform: scale(1.6);
    }

    .iconify[data-icon*="kick"] {
        transform: scale(1.0);
    }

    .iconify[data-icon*="youtube"] {
        transform: scale(1.5);
    }

}