/**
 * MFT Football Odds - Public Styles
 * Based on XenForo styling
 */

/* Widget Container */
.mft-fo-widget {
    margin: 20px 0;
}

/* Odds Table Container */
.mft-fo-odds-table-container {
    width: 100%;
    overflow-x: auto;
}

/* Odds Table */
.mft-fo-odds-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.mft-fo-odds-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.mft-fo-odds-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #212529;
}

.mft-fo-odds-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.mft-fo-odds-table tbody tr:hover {
    background-color: #f8f9fa;
}

.mft-fo-odds-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #495057;
}

/* Match Row */
.mft-fo-match-row[data-status="1H"],
.mft-fo-match-row[data-status="2H"],
.mft-fo-match-row[data-status="HT"] {
    background-color: #fff3cd !important;
}

.mft-fo-match-row[data-status="FT"] {
    opacity: 0.7;
}

/* Status Badge */
.mft-fo-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.mft-fo-status-live {
    background-color: #dc3545;
    color: #fff;
}

.mft-fo-status-finished {
    background-color: #6c757d;
    color: #fff;
}

.mft-fo-status-upcoming {
    background-color: #e9ecef;
    color: #495057;
}

/* Team Info */
.mft-fo-team-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mft-fo-team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mft-fo-team-name {
    font-weight: 500;
}

/* Score */
.mft-fo-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
}

/* Odds Display */
.mft-fo-odds-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mft-fo-odds-value {
    font-weight: 600;
}

.mft-fo-odds-home {
    color: #0066cc;
}

.mft-fo-odds-away {
    color: #dc3545;
}

.mft-fo-odds-over {
    color: #28a745;
}

.mft-fo-odds-under {
    color: #0066cc;
}

.mft-fo-odds-draw {
    color: #6c757d;
}

/* No Data Message */
.mft-fo-no-data {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .mft-fo-odds-table {
        font-size: 12px;
    }
    
    .mft-fo-odds-table th,
    .mft-fo-odds-table td {
        padding: 8px 12px;
    }
    
    .mft-fo-team-name {
        font-size: 13px;
    }
    
    .mft-fo-score {
        font-size: 16px;
    }
}

/* Loading State */
.mft-fo-loading {
    text-align: center;
    padding: 40px 20px;
}

.mft-fo-loading:after {
    content: "⏳";
    font-size: 32px;
    animation: mft-fo-spin 1s linear infinite;
}

@keyframes mft-fo-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Live Indicator */
.mft-fo-live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #dc3545;
    border-radius: 50%;
    animation: mft-fo-pulse 1.5s ease-in-out infinite;
}

@keyframes mft-fo-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Widget Title */
.mft-fo-widget-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #212529;
}

/* Section */
.section-ratio-bet {
    /* margin: 40px 0; */
    /* đừng dùng margin cho section này nữa nha. nó bị lỗi á */
}

.max-w-lmd {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
