

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Lato:wght@400;700&display=swap');

* {
    font-family: "Lato", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ----- WRAPPER (αντικαθιστά .all-*-predictions-wrapper) ----- */
.cf-history-wrapper {
    background: #1B3A62 !important;
    border-radius: 5px !important;
    padding: 20px !important;
    margin: 1px 0 !important;
    border: 1px solid #1e4a76 !important;
    overflow-x: auto;
}

.cf-no-history {
    background: #1B3A62;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
}

/* ----- LEAGUE HEADER (unchanged) ----- */
.cf-league-header {
    background: #0E243B;
    padding: 18px 16px !important;
    border: 1px solid #1e4a76;
    border-radius: 5px 5px 5px 5px;
    display: block;
}

.cf-league-title-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.cf-league-title-text {
    flex: 1;
    min-width: 180px;
}

.cf-league-title-text h1 {
    margin: 0;
    display: block;
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #F5C542;
    background: transparent;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.cf-stats-description {
    font-size: 1.0rem !important;
    color: #d1d1d1;
    line-height: 1.2;
    margin-bottom: 0;
    padding: 0;
}

.cf-league-logo {
    height: 80px !important;
    width: auto;
    max-width: 100px !important;
    object-fit: contain;
    background: transparent;
    padding: 0;
    margin-right: 12px;
    vertical-align: middle;
    display: inline-block;
    border: 2px solid #999999;
    border-radius: 3px !important;
}

/* ----- STATS & CHART ROW (unchanged) ----- */
.cf-stats-chart-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-top: 5px;
}

.cf-history-stats-grid {
    flex: 0 0 38%;
    min-width: 280px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-card-square {
    background: #0E243B;
    border-radius: 5px;
    border: 1px solid #1e4a76;
    padding: 12px 6px;
    text-align: center;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card-square[style*="grid-column: span 2"] {
    grid-column: span 2;
}

.stat-label {
    font-size: 0.90rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #F5C542;
    font-weight: 600;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 0.90rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.stat-positive { color: #4ade80 !important; }
.stat-negative { color: #f87171 !important; }

/* ----- CHART (unchanged) ----- */
.cf-chart-wrapper {
    background: #0E243B !important;
    padding: 18px 16px !important;
    border: 1px solid #1e4a76 !important;
    border-radius: 5px !important;
    margin: 20px 0 20px 0 !important;
    flex: 1;
    min-width: 0;
}

.cf-chart-inner {
    background: #0E243B !important;
    border-radius: 5px !important;
    padding: 10px 8px !important;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.05) !important;
    position: relative;
    min-height: 200px;
}

.cf-chart-inner canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 250px !important;
}

/* ----- TABLE (αντικαθιστά .all-predictions-table) ----- */
.cf-history-table {
    width: 100%;
    border-collapse: collapse !important;
    background: #0F2A44;
    margin-bottom: 20px;
    border-radius: 5px !important;
    border: 1px solid #1e4a76;
    overflow: hidden;
    font-size: 15px;
    table-layout: fixed;
}

.cf-history-table th {
    background: #9E9E9E !important;
    color: #000 !important;
    padding: 12px 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center;
    border-bottom: 1px solid #1e4a76;
    border-right: 1px solid #1e4a76;
}

.cf-history-table th:last-child {
    border-right: none;
}

.cf-history-table td {
    padding: 5px 5px !important;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #1e4a76;
    border-right: 1px solid #1e4a76;
    background: #0F2A44;
    color: #d1d1d1;
    font-size: 14px !important;
}

.cf-history-table td:last-child {
    border-right: none;
}

.score-header {
    background-color: #4ADE80 !important;
    color: #0F2A44 !important;
    font-weight: 700;
}



/* ----- MATCH CELL (grid) ----- */
.match-cell-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1px;
    width: 100%;
}

.team-home {
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    justify-self: end;
    font-size: 0.9rem;
    line-height: 1.4;
}

.team-away {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    justify-self: start;
    font-size: 0.9rem;
    line-height: 1.4;
}

.match-vs {
    text-align: center;
    font-weight: 700;
    color: #f87171;
    min-width: 25px;
    padding: 0 4px;
    line-height: 1.2;
}

/* ----- CELLS ----- */
.cell-date .match-time {
    color: #F5C542;
    font-weight: 500;
}

.odds-cell {
    font-weight: 600;
}

.cell-prediction {
    font-weight: 600;
}

.cell-prediction .prediction-score {
    color: #F5C542;
}

.cell-prediction.locked-cell {
    opacity: 0.8;
}

.result-icon-win {
    color: #4ade80;
    font-size: 1.4rem;
}

.result-icon-loss {
    color: #f87171;
    font-size: 1.4rem;
}

.result-icon-pending {
    color: #cccccc;
    font-size: 1.2rem;
}

/* ----- PREMIUM LOCK ----- */
.premium-lock {
    font-weight: bold;
    font-size: 0.75em;
    color: #D2D2D2;
    padding: 1px 6px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    background: #0E243B;
    display: inline-block;
}

/* ----- NAVIGATION BUTTONS ----- */
.cf-nav-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.cf-nav-btn {
    padding: 10px 18px;
    background: #0E243B;
    color: #d1d1d1;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
    transition: all .25s ease;
}

.cf-nav-btn:hover {
    background: #0E243B;
    color: #F5C542;
    border-color: #F5C542;
}

.cf-nav-btn.active {
    background: #0A7D3B;
    color: #fff;
    border-color: #0A7D3B;
    pointer-events: none;
}

.cf-nav-btn.market-btn {
    background: #F5C542;
    color: #1A2C50;
    border-color: #d1d1d1;
}

.cf-nav-btn.market-btn:hover {
    background: #E3B128;
}

/* ----- FOOTER NOTE ----- */
.cf-footer-note {
    margin-top: 25px;
    padding: 15px 20px;
    background: #0a1c2f;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #d1d1d1;
}

.cf-footer-note p {
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE (ακριβώς τα ίδια με τα original)
   ========================================================================== */
@media (max-width: 1200px) {
    .cf-history-stats-grid {
        flex: 0 0 45%;
    }
}

@media (max-width: 992px) {
    .cf-stats-chart-row {
        flex-wrap: wrap;
    }
    .cf-history-stats-grid {
        flex: 1 1 100%;
        grid-template-columns: repeat(4, 1fr);
    }
    .cf-chart-wrapper {
        flex: 1 1 100%;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .cf-history-wrapper {
        padding: 12px !important;
    }
    .cf-history-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0;
    }
    .stat-card-square {
        padding: 8px 4px;
    }
    .stat-value {
        font-size: 1rem;
    }
    .stat-label {
        font-size: 0.65rem;
    }
    .cf-history-table th,
    .cf-history-table td {
        font-size: 11px !important;
        padding: 5px 2px !important;
    }
    .team-home,
    .team-away {
        max-width: 80px;
        font-size: 0.75rem;
    }
    .match-vs {
        min-width: 20px;
        font-size: 0.7rem;
    }
    .cf-league-logo {
        height: 50px !important;
        max-width: 60px !important;
    }
    .cf-stats-description {
        font-size: 0.7rem;
    }
    .cf-league-title-text h1 {
        font-size: 1rem !important;
    }
}

@media (max-width: 600px) {
    .cf-history-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .cf-nav-buttons {
        gap: 6px;
    }
    .cf-nav-btn {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

