/* =================================
   PÁGINA TELEGRAM
================================= */

.telegram-list-page {
    width: min(900px, 92%);
    margin: 0 auto;
    padding: 42px 0 70px;
}


/* =================================
   HEADER
================================= */

.telegram-header {
    margin-bottom: 34px;
    text-align: center;
}

.telegram-header h1 {
    margin: 0;

    font-size: 32px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -0.8px;

    color: #111;
}


/* =================================
   SPOT
================================= */

.telegram-spot {
    position: relative;

    margin-bottom: 22px;
    padding: 22px;

    border-radius: 18px;

    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.09);

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.03),
        0 8px 24px rgba(0, 0, 0, 0.04);

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.telegram-spot:hover {
    transform: translateY(-2px);

    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 12px 30px rgba(0, 0, 0, 0.07);
}


/* =================================
   DECORACIÓN SUPERIOR
================================= */

.telegram-spot::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background: #229ED9;
}


/* =================================
   NOMBRE DEL SPOT
================================= */

.telegram-spot-title {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 2px 18px;

    font-size: 23px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -0.4px;

    color: #111;
}

.telegram-spot-title::before {
    content: "";

    width: 10px;
    height: 10px;

    flex: 0 0 10px;

    border-radius: 50%;

    background: #229ED9;

    box-shadow: 0 0 0 4px rgba(34, 158, 217, 0.13);
}


/* =================================
   FILA DE CADA GRUPO
================================= */

.telegram-group-row {
    position: relative;

    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) auto;

    align-items: center;
    gap: 18px;

    padding: 15px 16px;
    margin-bottom: 10px;

    border-radius: 13px;

    background: white;
    border: 1px solid rgba(0, 0, 0, 0.07);

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.telegram-group-row:last-child {
    margin-bottom: 0;
}

.telegram-group-row:hover {
    transform: translateY(-1px);

    border-color: rgba(34, 158, 217, 0.28);

    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.06);
}


/* =================================
   NOMBRE DEL GRUPO
================================= */

.telegram-group-name {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 15px;
    font-weight: 700;

    color: #171717;
}

.telegram-group-name::before {
    content: "●";

    font-size: 10px;
    color: #229ED9;
}


/* =================================
   UMBRAL DE VIENTO
================================= */

.telegram-group-threshold {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    padding: 6px 10px;

    border-radius: 8px;

    background: #f2f4f6;

    color: #5f6368;

    font-size: 14px;
    font-weight: 600;
}


/* =================================
   BOTÓN TELEGRAM
================================= */

.telegram-group-join {
    justify-self: end;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-width: 82px;

    padding: 8px 13px;

    border-radius: 9px;

    background: #229ED9;
    color: white;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    box-shadow: 0 2px 5px rgba(34, 158, 217, 0.22);

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.telegram-group-join::before {
    content: "↗";

    font-size: 13px;
}

.telegram-group-join:hover {
    transform: translateY(-1px);

    background: #168dcc;

    box-shadow: 0 4px 10px rgba(34, 158, 217, 0.28);
}


/* =================================
   DIFERENCIAR VIENTO FUERTE
================================= */

/*
   Cuando añadamos la clase .strong desde JS,
   el grupo de viento fuerte tendrá un aspecto
   ligeramente más "intenso".
*/

.telegram-group-row.strong {
    background: #fffdf5;
    border-color: rgba(235, 181, 40, 0.22);
}

.telegram-group-row.strong .telegram-group-name::before {
    color: #e7ad19;
}

.telegram-group-row.strong .telegram-group-threshold {
    background: #fff4ce;
    color: #886500;
}

.telegram-group-row.strong .telegram-group-join {
    background: #e7ad19;
    box-shadow: 0 2px 5px rgba(231, 173, 25, 0.20);
}

.telegram-group-row.strong .telegram-group-join:hover {
    background: #d99d0d;
}


/* =================================
   MÓVIL
================================= */

@media (max-width: 700px) {

    .telegram-list-page {
        width: 94%;
        padding: 30px 0 50px;
    }

    .telegram-header {
        margin-bottom: 25px;
    }

    .telegram-header h1 {
        font-size: 26px;
    }

    .telegram-spot {
        padding: 17px;
        border-radius: 15px;
        margin-bottom: 17px;
    }

    .telegram-spot-title {
        font-size: 21px;
        margin-bottom: 15px;
    }

    .telegram-group-row {
        grid-template-columns: 1fr auto;
        gap: 10px 12px;

        padding: 14px;
    }

    .telegram-group-name {
        grid-column: 1;
    }

    .telegram-group-threshold {
        grid-column: 1;
        font-size: 13px;
    }

    .telegram-group-join {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}


/* =================================
   MÓVIL PEQUEÑO
================================= */

@media (max-width: 430px) {

    .telegram-header h1 {
        font-size: 23px;
    }

    .telegram-spot {
        padding: 14px;
    }

    .telegram-group-row {
        grid-template-columns: 1fr;
    }

    .telegram-group-name,
    .telegram-group-threshold,
    .telegram-group-join {
        grid-column: 1;
    }

    .telegram-group-join {
        grid-row: auto;

        justify-self: stretch;
        width: 100%;
    }
}