/* =====================================================================
   EuroJackpot - Προηγμένα στατιστικά
   Σελίδα: joker-prooptika.html
   ===================================================================== */

.ej-adv-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.ej-adv-kpi {
    background: linear-gradient(135deg, #13233f 0%, #1d3a63 100%);
    color: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 4px 14px rgba(19, 35, 63, .18);
}

.ej-adv-kpi .v {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.15;
}

.ej-adv-kpi .l {
    display: block;
    margin-top: 4px;
    font-size: .78rem;
    letter-spacing: .3px;
    color: rgba(255, 255, 255, .75);
}

.ej-adv-kpi .n {
    display: block;
    margin-top: 6px;
    font-size: .75rem;
    color: rgba(255, 255, 255, .65);
}

/* ---------- Builder «Τι ακολουθεί» ---------- */
.ej-adv-builder label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: #3a76d0;
    margin-bottom: 4px;
}

.ej-adv-builder select {
    margin-bottom: 8px;
}

.ej-adv-result-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ej-adv-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f0fc;
    color: #1d3a63;
    font-weight: 700;
    font-size: .8rem;
}

.ej-adv-badge.good { background: #e6f6ec; color: #1c6b3a; }
.ej-adv-badge.warn { background: #f6e7c1; color: #6f4a00; border: 1px solid #e3c27a; }
.ej-adv-badge.bad  { background: #fdeaea; color: #8e2020; border: 1px solid #efc2c2; }

.ej-adv-statline {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 6px 0 16px;
}

.ej-adv-statline .item {
    min-width: 150px;
}

.ej-adv-statline .item b {
    display: block;
    font-size: 1.35rem;
    color: #13233f;
    line-height: 1.2;
}

.ej-adv-statline .item span {
    font-size: .78rem;
    color: #6b7a90;
}

/* ---------- Μπάρες κατανομής ---------- */
.ej-adv-bars {
    margin: 10px 0 18px;
}

.ej-adv-bar-row {
    display: grid;
    grid-template-columns: 46px 1fr 96px;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}

.ej-adv-bar-label {
    font-weight: 700;
    color: #13233f;
    text-align: right;
}

.ej-adv-bar-track {
    height: 16px;
    border-radius: 8px;
    background: #eef2f8;
    overflow: hidden;
}

.ej-adv-bar-fill {
    display: block;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #6ea8ff, #2f6fd0);
    transition: width .35s ease;
}

.ej-adv-bar-val {
    font-size: .78rem;
    color: #5b6b85;
    white-space: nowrap;
}

/* ---------- Πίνακες ---------- */
.ej-adv-table {
    font-size: .82rem;
}

.ej-adv-table th {
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    background: #f5f7fb;
    color: #33445f;
    font-weight: 700;
    border-top: 0 !important;
}

.ej-adv-table th .arrow {
    font-size: .65rem;
    opacity: .5;
    margin-left: 3px;
}

.ej-adv-table td {
    vertical-align: middle;
}

.ej-adv-table tbody tr:hover {
    background: #f7faff;
}

.ej-adv-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 3px;
    border-radius: 50%;
    background: #13233f;
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
}

.ej-adv-ball.euro {
    background: #b8791b;
}

.ej-adv-next-table {
    font-size: .8rem;
}

.ej-adv-next-table td {
    white-space: nowrap;
    vertical-align: middle;
}

/* ---------- Ζεύγη ---------- */
.ej-adv-pair-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px dashed #e6ebf3;
}

.ej-adv-pair-row:last-child {
    border-bottom: 0;
}

.ej-adv-pair-row .count {
    margin-left: auto;
    font-weight: 700;
    color: #1d3a63;
}

.ej-adv-pair-row .count small {
    font-weight: 400;
    color: #7a889d;
}

/* ---------- Tabs ---------- */
.ej-adv-tabs .btn {
    min-width: 110px;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .ej-adv-bar-row {
        grid-template-columns: 38px 1fr;
    }

    .ej-adv-bar-val {
        grid-column: 2;
        text-align: right;
    }

    .ej-adv-statline {
        gap: 12px;
    }

    .ej-adv-statline .item {
        min-width: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ej-adv-bar-fill {
        transition: none;
    }
}
