/* ═══════════════════════════════════════════════════════════════
   jackpot.css
   Aesthetic: sharp betting-card — dark header rail, crisp rows,
   pill-button DC selector that feels like a live odds toggle.
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
#jackpotApp {
    --jp-bg:          #ffffff;
    --jp-border:      #e4e8ee;
    --jp-rail-bg:     #0f1923;
    --jp-rail-text:   #8a9bb0;
    --jp-rail-label:  #ffffff;
    --jp-pill-bg:     #1e2d3d;
    --jp-pill-text:   #8a9bb0;
    --jp-pill-active: #00c853;
    --jp-pill-active-text: #ffffff;
    --jp-pill-zero:   #c0392b;
    --jp-pill-zero-text: #ffffff;
    --jp-accent:      #00c853;
    --jp-row-hover:   #f5f8ff;
    --jp-dc-badge:    #fff3cd;
    --jp-dc-badge-text: #856404;
    --jp-correct:     #00c853;
    --jp-wrong:       #e74c3c;
    --jp-num:         #0f1923;
    --jp-link:        #1a3a5c;
    --jp-radius:      6px;
    --jp-transition:  0.18s ease;
}

/* ── DC Control Rail ────────────────────────────────────────── */
.jp-dc-rail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--jp-rail-bg);
    padding: 10px 14px;
    border-radius: var(--jp-radius) var(--jp-radius) 0 0;
}

.jp-dc-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--jp-rail-text);
    white-space: nowrap;
    margin: 0;
}

.jp-dc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

/* Each pill button */
.jp-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border: 1.5px solid #2a3f54;
    border-radius: 14px;
    background: var(--jp-pill-bg);
    color: var(--jp-pill-text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background var(--jp-transition),
        border-color var(--jp-transition),
        color var(--jp-transition),
        transform 0.1s ease;
    user-select: none;
    line-height: 1;
}

.jp-pill:hover {
    border-color: #4a6580;
    color: #c8d8e8;
    transform: translateY(-1px);
}

/* Zero pill — red tint */
.jp-pill[data-val="0"] {
    border-color: #6b2020;
    color: #e07070;
}

.jp-pill[data-val="0"]:hover,
.jp-pill[data-val="0"].is-active {
    background: var(--jp-pill-zero);
    border-color: var(--jp-pill-zero);
    color: var(--jp-pill-zero-text);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.25);
}

/* Active pill — green */
.jp-pill.is-active {
    background: var(--jp-pill-active);
    border-color: var(--jp-pill-active);
    color: var(--jp-pill-active-text);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.22);
    transform: translateY(-1px);
}

/* Active press effect */
.jp-pill:active {
    transform: translateY(0) scale(0.96);
}

/* Status text after pills */
.jp-dc-status {
    font-size: 11px;
    color: var(--jp-rail-text);
    margin-left: 2px;
    white-space: nowrap;
}

.jp-dc-status strong {
    color: var(--jp-pill-active);
}

.jp-dc-status.is-zero strong {
    color: var(--jp-pill-zero);
}

/* ── Tip List ───────────────────────────────────────────────── */
#jackpotApp .list-group {
    border: 1px solid var(--jp-border);
    border-top: none;
    border-radius: 0 0 var(--jp-radius) var(--jp-radius);
    overflow: hidden;
}

#jackpotApp .list-group-item {
    padding: 11px 14px;
    border-color: var(--jp-border);
    background: var(--jp-bg);
    transition: background var(--jp-transition);
    position: relative;
}

#jackpotApp .list-group-item:hover {
    background: var(--jp-row-hover);
}

/* Row number */
.jp-num {
    display: inline-block;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: var(--jp-num);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Match link */
.jp-match-link {
    color: var(--jp-link);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color var(--jp-transition);
}

.jp-match-link:hover {
    color: var(--jp-accent);
    text-decoration: none;
}

/* Prediction text */
.jp-prediction {
    font-size: 12px;
    color: #5a6a7a;
    margin-top: 3px;
}

/* Double-chance badge on the prediction line */
.jp-dc-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--jp-dc-badge);
    color: var(--jp-dc-badge-text);
    border-radius: 3px;
    padding: 1px 5px;
    margin-right: 5px;
    vertical-align: middle;
}

/* Result icons */
.jp-result {
    font-size: 16px;
    flex-shrink: 0;
    margin-left: 10px;
}

.jp-kickoff {
    font-size: 11px;
    color: #8a9bb0;
    margin: 2px 0 3px;
    letter-spacing: 0.02em;
}

.jp-result .fa-check {
    color: var(--jp-correct);
}

.jp-result .fa-times {
    color: var(--jp-wrong);
}

/* Zebra stripe on even rows */
#jackpotApp .list-group-item:nth-child(even) {
    background: #fafbfd;
}

#jackpotApp .list-group-item:nth-child(even):hover {
    background: var(--jp-row-hover);
}