/* Paginas propias de El Millon: guia, historico y sorteo.
   Reutilizan la tarjeta azul de frontend.css y las piezas del Joker
   (joker-result-*, joker-history-result); aqui solo va lo que cambia.
   El azul es el de Euromillones (--bonoloto-official* de .euromillones-page). */

/* Migas de pan */
.el-millon-page__migas {
    padding-top: 14px;
}

.migas-de-pan {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    color: #64748b;
    font-size: 0.8125rem;
}

.migas-de-pan a {
    color: #64748b;
    text-decoration: none;
}

.migas-de-pan a:hover,
.migas-de-pan a:focus-visible {
    color: var(--bonoloto-official-dark, var(--color-juego-euromillones-oscuro));
    text-decoration: underline;
}

.migas-de-pan [aria-current="page"] {
    color: #111827;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.migas-de-pan__separador {
    color: #b6c0ca;
}

/* Las cajas del Joker, en azul */
.el-millon-page .joker-result-summary div,
.el-millon-page .joker-history-result {
    border-color: color-mix(in srgb, var(--color-juego-euromillones) 16%, transparent);
}

.el-millon-page .joker-result-summary div {
    background: color-mix(in srgb, var(--color-juego-euromillones-suave) 35%, #ffffff);
}

.el-millon-page .el-millon-card {
    margin-top: 0;
}

/* En el sorteo el resumen tiene una o dos cajas: fecha y, si esta, premio */
.el-millon-summary {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

/* Guia: las piezas de la guia del Joker, en azul */
.el-millon-page .joker-guide__note {
    background: color-mix(in srgb, var(--color-juego-euromillones) 6%, transparent);
}

.el-millon-page .joker-summary,
.el-millon-page .joker-links a {
    border-color: color-mix(in srgb, var(--color-juego-euromillones) 16%, transparent);
}

.el-millon-page .joker-summary__item {
    border-color: color-mix(in srgb, var(--color-juego-euromillones) 12%, transparent);
    background: color-mix(in srgb, var(--color-juego-euromillones-suave) 35%, #ffffff);
}

.el-millon-page .joker-links a:hover,
.el-millon-page .joker-links a:focus-visible {
    background: var(--bonoloto-official-soft);
}

.el-millon-result-summary__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.12em;
    overflow-wrap: anywhere;
}

/* Ultimos codigos de la guia */
.el-millon-ultimos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.el-millon-ultimos__link {
    display: grid;
    gap: 4px;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--color-juego-euromillones) 18%, transparent);
    border-radius: 12px;
    background: #ffffff;
    padding: 12px 14px;
    color: inherit;
    text-decoration: none;
}

.el-millon-ultimos__link:hover,
.el-millon-ultimos__link:focus-visible {
    border-color: var(--bonoloto-official);
    background: var(--bonoloto-official-soft);
}

.el-millon-ultimos__date {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 800;
}

.el-millon-ultimos__code {
    color: var(--bonoloto-official-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    overflow-wrap: anywhere;
}

/* Historico: fecha, codigo y enlace */
.el-millon-history-result {
    grid-template-columns: minmax(7rem, 0.75fr) minmax(8rem, 1fr) auto;
}

.el-millon-history-result .joker-history-result__number strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.1em;
}

@media (max-width: 720px) {
    .el-millon-history-result {
        grid-template-columns: 1fr;
    }
}
