/* Heroes Win Probability PR Difference Page Styles */

/* Page-specific variables */
:root {
    --pr-diff-bg: light-dark(#f0f0f0, #3a3a54);
    --high-win-bg: light-dark(#d4edda, #2d5a3d);
    --very-high-win-bg: light-dark(#c3e6cb, #1e4d25);
    --medium-win-bg: light-dark(#fff3cd, #5a5220);
    --low-win-bg: light-dark(#cce5ff, #1e3a5f);
    --neutral-win-bg: light-dark(#f8f8f8, #333344);
    --table-header: light-dark(#667eea, #4a5568);
    --table-even: light-dark(#f8f9fa, #2a2a3e);
}

/* Page-specific layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

.chart-container {
    position: relative;
    height: 500px;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    padding: 8px;
    text-align: center;
    border: 1px solid var(--table-border);
}

thead {
    position: sticky;
    top: -0.5px;
    z-index: 10;
    transform: translate3d(0, 0, 0);
}

th {
    background-color: var(--table-header);
    color: var(--text-light);
    font-weight: 600;
}

th:first-child {
    background-color: var(--pr-diff-bg);
    color: var(--text-color);
}

tbody tr:nth-child(even) {
    background-color: var(--table-even);
}

.table-wrapper {
    overflow-x: auto;
    height: 500px;
    overflow-y: auto;
}

/* Table cell coloring */
.pr-diff-cell {
    background-color: var(--pr-diff-bg) !important;
}

.high-win-rate {
    background-color: var(--high-win-bg) !important;
}

.very-high-win-rate {
    background-color: var(--very-high-win-bg) !important;
}

.medium-win-rate {
    background-color: var(--medium-win-bg) !important;
}

.low-win-rate {
    background-color: var(--low-win-bg) !important;
}

.neutral-win-rate {
    background-color: var(--neutral-win-bg) !important;
}

/* Enhanced stat note section styling */
.stat-note {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.stat-note::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(-45deg, var(--primary-color) 10, transparent);
    border-radius: 0 0 0 100%;
    opacity: 0.1;
}

.stat-note h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-note h4::before {
    content: '📊';
    font-size: 1.2rem;
}

.stat-note p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.stat-note p:last-child {
    margin-bottom: 0;
}

.stat-note strong {
    color: var(--primary-color);
    font-weight: 600;
}

.stat-note code {
    background: light-dark(rgba(102, 126, 234, 0.12), rgba(139, 157, 195, 0.2));
    color: var(--primary-color);
    padding: 3px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.95em;
    font-weight: 600;
    border: 1px solid light-dark(rgba(102, 126, 234, 0.2), rgba(139, 157, 195, 0.3));
}
