/* OU Global Styles - Version 1.0 - Centralized CSS for all Over/Under plugins */
.ou-home-stats-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #FF9800;
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
}

.ou-home-stats-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a 0%, #dc2626 50%, #059669 100%);
    background-size: 200% 100%;
    animation: ou-home-shimmer 3s ease-in-out infinite;
}

@keyframes ou-home-shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.ou-home-stats-header {
    background-color: #0B1C4B;
    color: white;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.ou-home-stats-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><circle cx="50" cy="50" r="2" fill="white"/></svg>') repeat;
    background-size: 50px 50px;
}

/* Double Container Header Styles */
.ou-home-stats-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.ou-home-stats-league-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.ou-home-stats-logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-left: 20px;
}

.ou-home-stats-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #FF9800;
    border-radius: 5px;
    padding: 8px;
    width: 90px;
    height: 90px;
    box-sizing: border-box;
}

.ou-league-logo {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.ou-home-stats-flag {
    font-size: 3rem;
}

.ou-home-stats-league-details {
    flex: 1;
}

.ou-home-stats-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.ou-home-stats-subtitle {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff; 
    line-height: 1.2;
}

/* Table Styles */
.ou-home-stats-table-wrapper {
    overflow-x: auto;
    background: white;
}

.ou-home-stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.ou-home-stats-table th {
    background-color: #FF9800;
    color: white;
    padding: 0.8rem 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #e0e0e0;
    position: relative;
}

.ou-home-stats-table td {
    padding: 1.25rem 1rem;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
    vertical-align: middle;
    border-bottom: none;
}

.ou-home-stats-table tbody tr {
    border-bottom: 1px solid #B9B9B9;
    transition: all 0.3s ease;
}

.ou-home-stats-goal-line {
    text-align: center !important;
    font-weight: 600;
    min-width: 120px;
}

.ou-home-goal-line-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.ou-home-goal-line-short {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 0.01rem;
    text-align: center;
    width: 100%;
}

.ou-home-goal-line-full {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.ou-home-stats-matches {
    color: #475569;
    font-weight: 600;
    font-size: 1.1rem;
}

.ou-home-stats-won {
    color: #059669;
    font-weight: 700;
    font-size: 1.1rem;
}

.ou-home-stats-lost {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.1rem;
}

.ou-home-stats-win-rate {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.1rem;
}

.ou-home-stats-odds {
    color: #ea580c;
    font-weight: 700;
    font-size: 1.1rem;
}

.ou-home-stats-profit {
    color: #ea580c;
    font-weight: 700;
    font-size: 1.1rem;
}

.ou-home-profit-positive {
    color: #059669;
}

.ou-home-profit-negative {
    color: #dc2626;
}

.ou-home-roi-badge {
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 12px;
    background: transparent !important;
    color: #64748b;
    font-weight: 600;
    display: block;
    margin-top: 0.25rem;
    line-height: 1.2;
}

.ou-home-upcoming-matches-badge {
    background-color: #FF9800;
    color: #fff;
    border: 1px solid #999;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;   
    height: 48px;  
}

.ou-home-upcoming-matches-badge.zero-upcoming {
    background-color: #aaaaaa;
    color: #fff;
    border: 1px solid #8A8A8A;
}

.ou-home-stats-button {
    background-color: #616161;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.ou-home-stats-button:hover {
    background-color: #272727;
    color: white;
    text-decoration: none;
}

.ou-home-button-arrow {
    font-size: 1rem;
    transition: transform 0.2s ease;
    color: #FF9800;
}

.ou-home-stats-button:hover .ou-home-button-arrow {
    transform: translateX(3px);
}

.ou-home-stats-footer {
    background: #fff;
    padding: 0.5rem 2rem;
    padding-bottom: 1.7rem;
}

.ou-home-stats-disclaimer p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

.ou-home-stats-disclaimer strong {
    color: #475569;
}

.ou-home-stats-no-data {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    color: #64748b;
}

.ou-home-stats-no-data p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.ou-home-screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ou-home-stats-header-container {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .ou-home-stats-logo-container {
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
    }

    .ou-home-stats-logo {
        width: 70px;
        height: 70px;
        padding: 6px;
    }

    .ou-home-stats-title {
        font-size: 1.5rem;
    }

    .ou-home-stats-subtitle {
        font-size: 0.9rem;
    }

    .ou-home-stats-flag {
        font-size: 2.5rem;
    }

    .ou-home-stats-table {
        font-size: 0.85rem;
    }

    .ou-home-stats-table th,
    .ou-home-stats-table td {
        padding: 0.8rem 0.5rem;
    }

    .ou-home-goal-line-short {
        font-size: 1rem;
    }

    .ou-home-goal-line-full {
        font-size: 0.75rem;
    }

    .ou-home-stats-matches,
    .ou-home-stats-won,
    .ou-home-stats-lost,
    .ou-home-stats-win-rate,
    .ou-home-stats-odds,
    .ou-home-stats-profit {
        font-size: 1rem;
    }

    .ou-home-upcoming-matches-badge {
        width: 45px;
        height: 43px;
        font-size: 0.8rem;
    }

    .ou-home-stats-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .ou-home-stats-footer {
        padding: 0.5rem 1rem;
        padding-bottom: 1.5rem;
    }
}

/* Desktop responsive */
@media (max-width: 1200px) {
    .ou-home-stats-table {
        font-size: 0.9rem;
    }
    
    .ou-home-stats-table th,
    .ou-home-stats-table td {
        padding: 1rem 0.75rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .ou-home-stats-container {
        margin: 1rem 0;
        border-radius: 8px;
    }

    .ou-home-stats-header {
        padding: 0.75rem;
    }

    .ou-home-stats-header-container {
        padding: 10px;
    }

    .ou-home-stats-logo {
        width: 60px;
        height: 60px;
        padding: 5px;
    }

    .ou-home-stats-title {
        font-size: 1.3rem;
    }

    .ou-home-stats-table-wrapper {
        overflow-x: auto;
    }

    .ou-home-stats-table {
        min-width: 700px;
    }

    .ou-home-stats-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }

    .ou-home-stats-footer {
        padding: 0.5rem 0.8rem;
        padding-bottom: 1.2rem;
    }
}

/* Hover effects for better interactivity */
.ou-home-stats-table tbody tr:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ou-home-stats-table tbody tr:active {
    transform: translateY(0);
}

/* Focus styles for accessibility */
.ou-home-stats-button:focus {
    outline: 2px solid #FF9800;
    outline-offset: 2px;
}

.ou-home-stats-table th:focus,
.ou-home-stats-table td:focus {
    outline: 2px solid #FF9800;
    outline-offset: -2px;
}

/* Upcoming matches badge in header */
.ou-home-upcoming-matches-badge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}

.ou-home-upcoming-matches-badge {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    text-align: center;
    white-space: nowrap;
}

.ou-home-upcoming-matches-badge.zero-upcoming {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    border: 2px solid #fff;
}

/* ROI Column Styles */
.ou-home-stats-roi {
    font-weight: 700;
    font-size: 1.1rem;
}

.ou-home-roi-positive {
    color: #059669 !important;
}

.ou-home-roi-negative {
    color: #dc2626 !important;
}

/* Remove the old ROI badge from profit cell */
.ou-home-stats-profit .ou-home-roi-badge {
    display: none;
}

/* Table header adjustments for new ROI column */
.ou-home-stats-table th.ou-home-stats-roi {
    background-color: #FF9800;
    color: white;
}

/* Responsive adjustments for header badge */
@media (max-width: 768px) {
    .ou-home-upcoming-matches-badge-container {
        margin: 10px 0;
        order: 2;
        width: 100%;
    }
    
    .ou-home-stats-header-container {
        flex-wrap: wrap;
    }
    
    .ou-home-stats-league-info {
        order: 1;
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .ou-home-stats-logo-container {
        order: 3;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .ou-home-upcoming-matches-badge {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .ou-home-upcoming-matches-badge {
        min-width: 90px;
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}




