/* ==============================================
   overunder-b.css – Custom Fixture Data World v7.3
   Font: Lato – unified style like .cell-date
============================================== */

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

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

.cf-error, .cf-no-matches, .cf-no-history {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 15px;
    text-align: center;
}
.premium-lock {
    text-align: center;
    color: #888;
    font-size: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    padding: 4px;
}

/* ---------- Πίνακες Desktop ---------- */
.all-predictions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.all-predictions-table th, 
.all-predictions-table td {
    padding: 10px 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
}
.all-predictions-table th {
    background: #f5f5f5;
    font-weight: 700;
    color: #333;
    font-size: 13px;
}

/* Κάνε όλα τα κελιά (συμπεριλαμβανομένων ομάδων, αποδόσεων, κλπ.) ίδια με .cell-date */
.all-predictions-table td {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 400;
}

/* League header (διαφορετικό) */
.league-header-row td {
    background: #e9ecef;
    font-size: 18px;
    font-weight: 700;
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left !important;
    color: #3F3F3F;
}
.league-header-content {
    display: flex;
    align-items: center;
    gap: 8px;
}
.league-country, .league-name {
    color: #3F3F3F;
}
.league-name-separator {
    margin: 0 2px;
}

/* Ονόματα ομάδων - truncation */
.team-home, .team-away {
    display: inline-block;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
@media (min-width: 1200px) {
    .team-home, .team-away { max-width: 160px; }
}
@media (min-width: 769px) and (max-width: 1199px) {
    .team-home, .team-away { max-width: 120px; }
}
@media (max-width: 768px) {
    .team-home, .team-away { max-width: 120px; }
}

/* Ράβδοι πιθανοτήτων (παραμένουν) */
.cell-probability {
    font-size: 13px;
}
.cf-probability-bars {
    display: flex;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    min-width: 120px;
    margin: 0 auto;
}
.cf-bar-home, .cf-bar-draw, .cf-bar-away {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 13px;
}
.cf-bar-home { background-color: #4CAF50; }
.cf-bar-draw { background-color: #FFC107; color: #000; }
.cf-bar-away { background-color: #F44336; }

/* Two bars */
.cf-two-bars {
    display: flex !important;
    flex-direction: row !important;
    height: 28px;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}
.cf-two-bars .cf-bar-first,
.cf-two-bars .cf-bar-second {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    padding: 0 4px;
}
.cf-two-bars .cf-bar-first { background-color: #2196F3; }
.cf-two-bars .cf-bar-second { background-color: #FF9800; color: #000; }

/* Αποδόσεις (ίδιο στυλ με ημερομηνία) */
.odds-cell {
    font-weight: 400;
    text-align: center;
    font-size: 15px !important;
    color: #2c3e50 !important;
}

/* Badge πρόβλεψης (παραμένει όπως ήταν) */
.prediction-badge {
    display: block;
    width: 100%;
    background: #F39C12;
    color: #2c3e50;
    border-radius: 4px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
}
.cell-prediction {
    padding: 4px 0 !important;
}

/* Value stars */
.confidence-stars {
    color: #FFC107;
    font-size: 15px;
    letter-spacing: 2px;
}

/* Debug button */
.cf-debug-btn {
    background: #213859;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
}

/* Ομάδες εντός αγώνα */
.match-content {
    font-size: 15px;
    color: #2c3e50;
}
.team-vs {
    color: #FE7F06 !important;
    font-weight: 700;
    font-size: 16px;
    margin: 0 4px;
    flex-shrink: 0;
}

/* Ημερομηνία (βασικό στυλ – το ίδιο με όλα) */
.cell-date {
    font-size: 15px !important;
    text-align: center;
    color: #2c3e50;
    font-weight: 400;
}
.cell-date .time-part {
    color: #F44336;
    font-weight: 700;
}
.value-stars {
    display: inline-block;
    font-size: 16px;
    letter-spacing: 2px;
}
.star-filled {
    color: #FF8C00;  /* πορτοκαλί */
}
.star-empty {
    color: #cccccc;  /* γκρι */
}

/* Mobile */
.mobile-league-header,
.mobile-stats-grid {
    display: none;
}

@media (max-width: 768px) {
    .all-predictions-table,
    .all-predictions-table tbody,
    .all-predictions-table tr,
    .all-predictions-table td {
        display: block;
    }
    .all-predictions-table thead {
        display: none;
    }
    .all-predictions-table thead tr.league-header-row {
        display: none !important;
    }

    .mobile-league-header {
        display: block !important;
        margin-bottom: 12px;
        width: 100%;
    }
    .mobile-league-content {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        background: #213859;
        box-shadow: 0 0 12px rgba(255,255,255,0.7), 0 1px 3px rgba(0,0,0,0.1);
        border-radius: 4px;
        padding: 5px 12px;
        font-size: 15px;
        text-align: left;
    }
    .mobile-league-content span,
    .mobile-league-content .league-flag-emoji {
        color: #ccc !important;
    }
    .mobile-league-left-group {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
        overflow-x: auto;
    }
    .mobile-league-content img {
        width: 20px;
        height: 20px;
        object-fit: contain;
        margin-right: 6px;
    }
    .mobile-date-right {
        white-space: nowrap;
        font-size: 13px;
        color: #ccc;
    }

    .all-predictions-table tbody tr {
        background: #FFFFF1;
        border-radius: 12px;
        margin-bottom: 20px;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border: 1px solid #e0e0e0;
    }
    .all-predictions-table td {
        padding: 6px 0;
        border: none;
        text-align: center;
    }
    .cell-date {
        display: none !important;
    }
    .cell-match {
        order: 2;
        width: 100%;
        margin-bottom: 5px;
    }
    .match-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 15px;
        text-align: center;
        color: #2c3e50;
    }
    .match-teams {
        display: flex;
        align-items: baseline;
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
        gap: 4px;
        overflow-x: auto;
        white-space: nowrap;
    }
    .team-home, .team-away {
        max-width: 120px;
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .team-vs {
        flex-shrink: 0;
        margin: 0 2px;
    }
    .match-datetime {
        display: none !important;
    }

    .odds-cell {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        background: #eee;
        padding: 8px 12px;
        border-radius: 5px;
        font-weight: 400;
        margin-bottom: 6px;
        width: auto;
        font-size: 15px !important;
        border: 1px solid #d0d0d0;
        text-align: center;
        color: #2c3e50 !important;
    }
    .odds-cell::before {
        font-weight: 700;
        margin-right: 8px;
        color: #1e1e1e;
    }
    .odds-cell-home::before { content: "1 "; }
    .odds-cell-draw::before  { content: "X "; }
    .odds-cell-away::before  { content: "2 "; }
    .odds-cell-over::before  { content: "Over 2.5 "; }
    .odds-cell-under::before { content: "Under 2.5 "; }
    .odds-cell-yes::before   { content: "BTTS Yes "; }
    .odds-cell-no::before    { content: "BTTS No "; }

    .prediction-badge {
        display: block;
        width: 100%;
        background: #F39C12;
        color: #2c3e50;
        border-radius: 4px;
        padding: 8px 0;
        font-size: 13px;
        font-weight: 700;
        text-align: center;
    }

    .cell-probability,
    .cell-prediction,
    .cell-confidence,
    .cell-value {
        display: none !important;
    }

    .mobile-stats-grid {
        display: block !important;
        margin-top: 12px;
        padding: 0;
    }
    .stats-two-columns {
        display: flex;
        gap: 10px;
        justify-content: space-between;
    }
    .stats-left {
        width: 100px;
        flex-shrink: 0;
    }
    .stats-right {
        flex: 1;
    }
    .stat-box {
        padding: 6px 8px;
        margin-bottom: 4px;
        border-radius: 6px;
        font-size: 15px;
        background: #f5f5f5;
        border: 1px solid #e0e0e0;
        text-align: center;
    }
    .stats-left .stat-box {
        background: transparent;
        font-weight: 700;
        text-align: right;
        border: none;
    }
    .stats-right .stat-box {
        background: #eee;
        border: 1px solid #d0d0d0;
    }
    .stats-right .stat-box .cf-probability-bars,
    .stats-right .stat-box .cf-two-bars {
        margin: 0 auto;
        max-width: 100%;
    }
}