/**
 * FootBet - Predictions Page Shortcode Styles
 * [footbet_predictions_page]
 */

/* ============================================
   MAIN CONTAINER
   ============================================ */
.fb-predictions-page {
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a2e;
}

/* ============================================
   DATE FILTER TABS
   ============================================ */
.fb-predictions-date-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.fb-date-tab {
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fb-date-tab:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.fb-date-tab.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.fb-predictions-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 16px;
}

/* ============================================
   SECTION (per league)
   ============================================ */
.fb-predictions-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

.fb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.fb-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.fb-section-icon {
    font-size: 18px;
}

.fb-section-league-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.fb-predictions-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.fb-see-all-link {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.fb-see-all-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

/* ============================================
   TODAY'S MATCHES CAROUSEL
   ============================================ */
.fb-today-carousel {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.fb-today-carousel::-webkit-scrollbar {
    height: 4px;
}

.fb-today-carousel::-webkit-scrollbar-track {
    background: #f8fafc;
}

.fb-today-carousel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.fb-carousel-card {
    flex: 0 0 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
    background: #fff;
}

.fb-carousel-card:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    text-decoration: none;
    color: #1e293b;
    transform: translateY(-2px);
}

.fb-carousel-time {
    display: inline-block;
    padding: 3px 10px;
    background: #ef4444;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.fb-carousel-teams {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.fb-carousel-team-row {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.fb-carousel-logo-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.fb-carousel-team-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.fb-carousel-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.fb-carousel-vs {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
    text-align: center;
    padding: 0;
}

/* ============================================
   MATCH ROW (league sections)
   ============================================ */
.fb-league-matches {
    padding: 0;
}

.fb-match-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: #1e293b;
    transition: background 0.15s ease;
    cursor: pointer;
}

.fb-match-row:last-child {
    border-bottom: none;
}

.fb-match-row:hover {
    background: #f8fafc;
    text-decoration: none;
    color: #1e293b;
}

/* Date column */
.fb-match-date-col {
    flex: 0 0 90px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fb-match-date-label {
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    text-transform: capitalize;
}

.fb-match-time {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

/* Teams column */
.fb-match-teams-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.fb-match-team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fb-team-home {
    flex: 1;
    justify-content: flex-end;
}

.fb-team-away {
    flex: 1;
    justify-content: flex-start;
}

.fb-match-team .fb-team-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.fb-match-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.fb-match-vs {
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 0;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    text-align: center;
}

/* Prediction column */
.fb-match-prediction-col {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 16px;
}

.fb-view-prediction-cta {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    white-space: nowrap;
}

.fb-confidence-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.fb-confidence-medium {
    background: #fef3c7;
    color: #d97706;
}

.fb-confidence-high {
    background: #dcfce7;
    color: #16a34a;
}

/* Arrow */
.fb-match-arrow {
    font-size: 18px;
    color: #2563eb;
    transition: transform 0.15s;
}

.fb-match-row:hover .fb-match-arrow {
    transform: translateX(2px);
}

.fb-match-row:hover .fb-view-prediction-cta {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .fb-predictions-nav {
        padding: 8px 0;
        gap: 6px;
    }

    .fb-nav-pill {
        padding: 6px 12px;
        font-size: 12px;
    }

    .fb-predictions-date-tabs {
        gap: 4px;
    }

    .fb-date-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .fb-match-row {
        padding: 12px 14px;
    }

    .fb-match-date-col {
        flex: 0 0 70px;
    }

    .fb-match-date-label {
        font-size: 10px;
    }

    .fb-match-time {
        font-size: 13px;
    }

    .fb-match-team .fb-team-name {
        font-size: 12px;
    }

    .fb-match-team-logo {
        width: 20px;
        height: 20px;
    }

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

    .fb-match-prediction-col {
        display: none;
    }

    .fb-carousel-card {
        flex: 0 0 180px;
        padding: 12px 10px;
    }

    .fb-carousel-team-name {
        font-size: 12px;
    }

    .fb-section-header {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .fb-section-title {
        font-size: 14px;
    }

    .fb-section-league-logo {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .fb-match-teams-col {
        flex-direction: column;
        gap: 4px;
    }

    .fb-team-home,
    .fb-team-away {
        justify-content: flex-start;
    }

    .fb-match-vs {
        display: none;
    }

    .fb-match-team .fb-team-name {
        font-size: 11px;
    }
}
