/* Top Performing Leagues Styles - Updated v2.0 */
.top-performing-leagues-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin: 2rem 0;
    overflow: hidden;
}

/* Header Styles */
.top-leagues-header {
    background: linear-gradient(135deg, #1D365A 0%, #2D4A7C 100%);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
}

.top-leagues-title {
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    line-height: 1.2;
}

.top-leagues-subtitle {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    color: #e2e8f0;
    text-align: center;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Explanation Section */
.top-leagues-explanation {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-leagues-explanation-item {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #e2e8f0;
}

.top-leagues-explanation-item:last-child {
    margin-bottom: 0;
}

.top-leagues-explanation-item strong {
    color: #fff;
    font-weight: 600;
}

/* Table Styles */
.top-leagues-table-wrapper {
    overflow-x: auto;
    background: white;
}

.top-leagues-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
}

.top-leagues-table th {
    background-color: #f8fafc;
    color: #374151;
    padding: 1rem 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Column Headers - League stays left, others centered */
.top-leagues-col-league {
    text-align: left;
}

.top-leagues-col-profit,
.top-leagues-col-matches,
.top-leagues-col-roi,
.top-leagues-col-trend,
.top-leagues-col-actions {
    text-align: center;
}

.top-leagues-table td {
    padding: 0.75rem;
    font-weight: 500;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.top-leagues-table tbody tr:hover {
    background-color: #f8fafc;
}

/* League Column - HORIZONTAL LAYOUT (NO LOGO) */
.top-leagues-cell-league {
    min-width: 280px;
    text-align: left;
}

.top-leagues-league-info-horizontal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Rank & Medal Section */
.top-leagues-rank-medal-horizontal {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 65px;
    justify-content: flex-start;
}

.top-leagues-rank-number-horizontal {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    width: 25px;
    text-align: right;
    display: inline-block;
    flex-shrink: 0;
}

.top-leagues-medal-horizontal {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Flag Section */
.top-leagues-flag-horizontal {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    flex-shrink: 0;
}

/* Name & Country - HORIZONTAL LAYOUT */
.top-leagues-name-country-horizontal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.top-leagues-country-name-horizontal {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.top-leagues-name-horizontal {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
}

/* Separator between country and league name */
.top-leagues-name-country-horizontal::before {
    content: "•";
    color: #cbd5e1;
    font-weight: 300;
}

/* Profit Column */
.top-leagues-cell-profit {
    width: 100px;
    font-weight: 600;
    text-align: center;
}

.top-leagues-profit-value {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    min-width: 70px;
    text-align: center;
}

.top-leagues-profit-positive {
    color: #059669;
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
}

.top-leagues-profit-negative {
    color: #dc2626;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
}

/* Matches Column */
.top-leagues-cell-matches {
    text-align: center;
    width: 80px;
    font-weight: 600;
    color: #475569;
}

/* ROI Column */
.top-leagues-cell-roi {
    width: 90px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

.top-leagues-roi-value {
    padding: 0.4rem 0.6rem;
    background-color: #f1f5f9;
    border-radius: 6px;
    display: inline-block;
    min-width: 60px;
}

/* Trend Column */
.top-leagues-cell-trend {
    text-align: center;
    width: 70px;
}

.top-leagues-trend-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-leagues-trend-symbol {
    font-size: 1.3rem;
    font-weight: 900;
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 25px;
    border-radius: 50%;
    text-align: center;
}

.top-league-trend-up {
    color: #059669;
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
}

.top-league-trend-down {
    color: #dc2626;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
}

.top-league-trend-stable {
    color: #d97706;
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
}

/* Actions Column */
.top-leagues-cell-actions {
    width: 120px;
    text-align: center;
}

.top-leagues-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-leagues-predictions-btn {
    background: #1D365A;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
    display: inline-block;
    text-align: center;
}

.top-leagues-predictions-btn:hover {
    background: #2D4A7C;
    color: white;
    text-decoration: none;
}

/* Footer Styles */
.top-leagues-footer {
    background: #f8fafc;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.top-leagues-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.top-leagues-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.top-leagues-disclaimer {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.top-leagues-disclaimer p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.top-leagues-disclaimer strong {
    color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-performing-leagues-container {
        margin: 1rem 0;
    }
    
    .top-leagues-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .top-leagues-title {
        font-size: 1.4rem;
    }
    
    .top-leagues-subtitle {
        font-size: 1rem;
    }
    
    .top-leagues-explanation {
        padding: 1rem;
    }
    
    .top-leagues-explanation-item {
        font-size: 0.9rem;
    }
    
    .top-leagues-table {
        font-size: 0.85rem;
    }
    
    .top-leagues-table th,
    .top-leagues-table td {
        padding: 0.6rem 0.5rem;
    }
    
    .top-leagues-cell-league {
        min-width: 240px;
    }
    
    .top-leagues-league-info-horizontal {
        gap: 0.6rem;
    }
    
    .top-leagues-rank-medal-horizontal {
        min-width: 55px;
        gap: 0.5rem;
    }
    
    .top-leagues-rank-number-horizontal {
        font-size: 1.2rem;
        width: 20px;
    }
    
    .top-leagues-medal-horizontal {
        font-size: 1.2rem;
    }
    
    .top-leagues-flag-horizontal {
        font-size: 1.5rem;
        width: 30px;
    }
    
    .top-leagues-name-country-horizontal {
        gap: 0.3rem;
    }
    
    .top-leagues-country-name-horizontal {
        font-size: 0.8rem;
    }
    
    .top-leagues-name-horizontal {
        font-size: 0.9rem;
    }
    
    .top-leagues-cell-actions {
        width: 100px;
    }
    
    .top-leagues-predictions-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
    
    .top-leagues-footer {
        padding: 1rem;
    }
    
    .top-leagues-legend {
        gap: 1rem;
    }
    
    .top-leagues-legend-item {
        font-size: 0.8rem;
    }
    
    .top-leagues-disclaimer p {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .top-leagues-table-wrapper {
        overflow-x: auto;
    }
    
    .top-leagues-table {
        min-width: 720px;
    }
    
    .top-leagues-header {
        text-align: left;
    }
    
    .top-leagues-title,
    .top-leagues-subtitle {
        text-align: left;
    }
    
    .top-leagues-legend {
        justify-content: flex-start;
    }
    
    .top-leagues-disclaimer {
        text-align: left;
    }
    
    /* Mobile-specific alignment improvements */
    .top-leagues-rank-medal-horizontal {
        min-width: 50px;
    }
    
    .top-leagues-rank-number-horizontal {
        width: 18px;
        font-size: 1.1rem;
    }
    
    /* Ensure centered columns stay centered on mobile */
    .top-leagues-col-profit,
    .top-leagues-col-matches,
    .top-leagues-col-roi,
    .top-leagues-col-trend,
    .top-leagues-col-actions {
        text-align: center;
    }
}

/* Screen Reader Text */
.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;
}

/* No Data Message */
.top-leagues-no-data {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
    font-size: 1.1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin: 2rem 0;
}