﻿/* CLASE DEL CONTENEDOR PRINCIPAL */
.brokers-row-flex {
    /* Esto se aplicará en pantallas grandes (desktop) */
    display: flex;
    flex-wrap: nowrap; /* Mantenemos el no-wrap para desktop */
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* CLASE DEL CONTENEDOR INDIVIDUAL */
.broker-item-container {
    /* Esto se aplicará en pantallas grandes (desktop) */
    flex: 1 1 12.5%;
    min-width: 0;
    padding: 0 5px;
}

.brokers-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: #2e2f34;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    height: 100%;
}

.brokers-item:hover {
    background-color: #4a4b52;
}

.brokers-item > div {
    height: 30px;
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- ESTILOS DE LAS IMAGENES (Sin cambios) --- */
.brokers-item-coingecko {
    background-image: url('Images/CoinGecko.png');
}
.brokers-item-raydium {
    background-image: url('Images/Raydium.png');
}
.brokers-item-dexscreener {
    background-image: url('Images/Dexscreener.png');
}
.brokers-item-coingmarketcap {
    background-image: url('Images/CoinMarketCap.png');
}
.brokers-item-dextools {
    background-image: url('Images/Dextools.png');
}
.brokers-item-phantom {
    background-image: url('Images/Phantom.png');
}
.brokers-item-solscan {
    background-image: url('Images/SOLSCAN.png');
}
.brokers-item-dexview {
    background-image: url('Images/DEXVIEW.png');
}


/* ================================================================
   =======> AQUÍ ESTÁ LA SOLUCIÓN PARA MÓVILES <=======
================================================================
*/
@media (max-width: 768px) {

    .brokers-row-flex {
        /* AHORA SÍ permitimos que se envuelvan en pantallas pequeñas */
        flex-wrap: wrap; 
        gap: 10px; /* Añadimos un espacio entre los logos */
        justify-content: center; /* Centramos el contenido */
    }

    .broker-item-container {
        /* Hacemos que cada logo ocupe un poco menos del 25% */
        /* para que quepan 4 logos por fila. */
        flex-basis: calc(25% - 10px);
        flex-shrink: 0; /* Evita que se encojan de más */
    }
}