/* StatsBet Predictions Frontend Styles */

.statsbet-predictions-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.statsbet-prediction-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.statsbet-prediction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Header Section */
.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
}

.league-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.country {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.league-name {
    font-weight: 700;
    font-size: 15px;
    color: #212529;
}

.match-datetime {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.kickoff-date {
    font-size: 13px;
    color: #495057;
    font-weight: 600;
}

.kickoff-time {
    font-size: 14px;
    color: #212529;
    font-weight: 700;
    background: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

/* Match Section */
.prediction-match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px;
    background: #ffffff;
    gap: 16px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.team-name {
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    color: #212529;
    line-height: 1.3;
    word-wrap: break-word;
    width: 100%;
}

.match-vs {
    padding: 0 16px;
    font-weight: 800;
    font-size: 14px;
    color: #adb5bd;
    letter-spacing: 1px;
}

/* Prediction Info Section */
.prediction-info {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.prediction-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.prediction-main > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: #ffffff;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: border-color 0.2s ease;
}

.prediction-main > div:hover {
    border-color: #0d6efd;
}

.prediction-main .label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.prediction-main .value {
    font-weight: 800;
    font-size: 22px;
    color: #212529;
}

.prediction-outcome .value {
    color: #0d6efd;
    font-size: 22px;
}

.prediction-chance .value {
    color: #198754;
    font-size: 22px;
}

.prediction-odds .value {
    color: #fd7e14;
    font-size: 22px;
}

/* No Predictions */
.no-predictions {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.no-predictions p {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Mobile Responsive - WordPress Mobile Detection */
@media (max-width: 768px) {
    .statsbet-predictions-container {
        gap: 12px;
        padding: 0;
    }

    .statsbet-prediction-card {
        border-radius: 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .statsbet-prediction-card:hover {
        transform: none;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .prediction-header {
        padding: 12px 14px;
        background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    }

    .league-info {
        gap: 2px;
    }

    .country {
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .league-name {
        font-size: 13px;
    }

    .match-datetime {
        gap: 3px;
    }

    .kickoff-date {
        font-size: 11px;
    }

    .kickoff-time {
        font-size: 12px;
        padding: 3px 8px;
        border-radius: 4px;
    }

    /* Compact Match Section for Mobile */
    .prediction-match {
        flex-direction: row;
        padding: 16px 12px;
        gap: 8px;
    }

    .team {
        gap: 8px;
        flex: 1;
    }

    .team-logo {
        width: 35px;
        height: 35px;
    }

    .team-name {
        font-size: 11px;
        line-height: 1.2;
    }

    .match-vs {
        padding: 0 8px;
        font-size: 11px;
        color: #ced4da;
    }

    /* Compact Stats Grid for Mobile */
    .prediction-info {
        padding: 8px;
        background: #f8f9fa;
    }

    .prediction-main {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .prediction-main > div {
        padding: 8px 4px;
        border-radius: 6px;
        border-width: 1.5px;
    }

    .prediction-main > div:hover {
        border-color: #e9ecef;
    }

    .prediction-main .label {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .statsbet-predictions-container .prediction-main .value {
        font-size: 11px !important;
        font-weight: 700 !important;
    }

    .statsbet-predictions-container .prediction-outcome .value {
        font-size: 11px !important;
        font-weight: 700 !important;
        word-break: break-word;
        hyphens: auto;
        text-align: center;
        line-height: 1.2;
    }

    .statsbet-predictions-container .prediction-chance .value {
        font-size: 11px !important;
        font-weight: 700 !important;
    }

    .statsbet-predictions-container .prediction-odds .value {
        font-size: 11px !important;
        font-weight: 700 !important;
    }
}

/* Extra Small Mobile - Very Compact */
@media (max-width: 480px) {
    .statsbet-predictions-container {
        gap: 10px;
    }

    .prediction-header {
        padding: 10px 12px;
    }

    .league-name {
        font-size: 12px;
    }

    .prediction-match {
        padding: 12px 10px;
    }

    .team-logo {
        width: 30px;
        height: 30px;
    }

    .team-name {
        font-size: 10px;
    }

    .match-vs {
        font-size: 10px;
        padding: 0 6px;
    }

    .prediction-info {
        padding: 6px;
    }

    .prediction-main {
        gap: 4px;
    }

    .prediction-main > div {
        padding: 6px 3px;
        border-radius: 5px;
    }

    .prediction-main .label {
        font-size: 8px;
    }

    .statsbet-predictions-container .prediction-main .value {
        font-size: 10px !important;
        font-weight: 700 !important;
    }

    .statsbet-predictions-container .prediction-outcome .value {
        font-size: 10px !important;
        font-weight: 700 !important;
    }

    .statsbet-predictions-container .prediction-chance .value {
        font-size: 10px !important;
        font-weight: 700 !important;
    }

    .statsbet-predictions-container .prediction-odds .value {
        font-size: 10px !important;
        font-weight: 700 !important;
    }
}

/* WordPress Mobile Body Class Support */
body.mobile .statsbet-prediction-card {
    border-radius: 10px;
}

body.mobile .prediction-match {
    padding: 14px 12px;
}

body.mobile .team-logo {
    width: 35px;
    height: 35px;
}

body.mobile .team-name {
    font-size: 11px;
}

body.mobile .prediction-main {
    grid-template-columns: repeat(3, 1fr);
}

body.mobile .prediction-info {
    padding: 8px;
}

body.mobile .prediction-main {
    gap: 6px;
}

body.mobile .prediction-main > div {
    padding: 8px 4px;
}

body.mobile .statsbet-predictions-container .prediction-main .value {
    font-size: 11px !important;
    font-weight: 700 !important;
}

body.mobile .statsbet-predictions-container .prediction-outcome .value {
    font-size: 11px !important;
    font-weight: 700 !important;
}

body.mobile .statsbet-predictions-container .prediction-chance .value {
    font-size: 11px !important;
    font-weight: 700 !important;
}

body.mobile .statsbet-predictions-container .prediction-odds .value {
    font-size: 11px !important;
    font-weight: 700 !important;
}