/* Sitac CSS - Light theme styles for static sitac page */

.sitac-page {
    background: #f2f4f8;
    min-height: 100vh;
    padding: 40px 0;
}

.sitac-container {
    max-width: 960px;
    margin: auto;
    background: white;
    border-radius: 12px;
    padding: 40px 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.sitac-container h1 {
    margin-top: 0;
    color: #202833;
    font-weight: 600;
    text-align: center;
}

.sitac-container h2 {
    color: #274bde;
    margin-top: 40px;
    border-bottom: 2px solid #f2f4f8;
    padding-bottom: 8px;
}

.sitac-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.sitac-table th,
.sitac-table td {
    padding: 10px 12px;
    text-align: left;
}

.sitac-table td.n {
    text-align: right;
}

.sitac-table th {
    background: #f5f7fa;
    color: #333;
    font-weight: 600;
}

.sitac-table th.col-icon {
    text-align: center;
    cursor: help;
    position: relative;
}

.sitac-table th.col-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1d23;
    color: #e2e8f0;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sitac-table th.col-icon:hover::after,
.sitac-table th.col-icon.tooltip-active::after {
    opacity: 1;
}

/* Value cell tooltips */
.sitac-table td[data-tooltip] {
    position: relative;
    cursor: help;
}

.sitac-table td[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1d23;
    color: #e2e8f0;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sitac-table td[data-tooltip]:hover::after,
.sitac-table td[data-tooltip].tooltip-active::after {
    opacity: 1;
}

.sitac-table tr:nth-child(even) {
    background: #fafbfc;
}

.sitac-back-btn {
    display: inline-block;
    margin-top: 30px;
    background: #4263eb;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sitac-back-btn:hover {
    background: #274bde;
}

/* Side badges */
.side-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: white;
}

.side-badge.blue {
    background: #4263eb;
}

.side-badge.red {
    background: #e03131;
}

.side-badge.grey {
    background: #868e96;
}

/* Tabs for sitac page (light theme) */
.sitac-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0;
    flex-wrap: wrap;
}

.sitac-tabs .tab-btn {
    padding: 8px 14px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #868e96;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sitac-tabs .tab-btn:hover {
    color: #495057;
}

.sitac-tabs .tab-btn.active {
    color: #274bde;
    border-bottom-color: #274bde;
}

.sitac-container .tab-content {
    display: none;
}

.sitac-container .tab-content.active {
    display: block;
}

/* Player name links */
.sitac-table td a {
    color: inherit;
    text-decoration: none;
}

.sitac-table td a:hover {
    color: #e67700;
    text-decoration: none;
}

/* Fixed rank column width */
.col-rank {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    text-align: center !important;
}
