/* 
CSS Styling - Questje's ReQuestje's Charts Website
Main stylesheet for all pages and components
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ============ HEADER ============ */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

header h1 {
    font-size: 2.4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.back-link {
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.8;
}

/* Back to Charts Button - Moved below header */
.back-button-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.back-to-charts-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.back-to-charts-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Auth Section - 20% bigger */
.auth-section {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 1.08rem;
    white-space: nowrap;
}

.user-info i {
    font-size: 1.44rem;
    color: #9146ff;
}

.username {
    font-size: 1.02rem;
}

.username strong {
    color: #fff;
    font-weight: 600;
}

/* Profile Picture Styles - 20% bigger */
.profile-pic-small {
    width: 28.8px;
    height: 28.8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.comment-profile-pic {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
    object-fit: cover;
    margin-right: 5px;
}

.logout-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 0.96rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 12px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.login-btn {
    padding: 12px 24px;
    background: #9146ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.login-btn:hover {
    background: #7d3fc1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(145, 70, 255, 0.4);
}

.login-btn i {
    font-size: 1.44rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.chart-selector-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.controls label {
    font-size: 1rem;
    font-weight: 500;
}

#chartSelector {
    padding: 8px 15px;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#chartSelector:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Navigation Buttons */
.nav-button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.nav-button:disabled {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

.loading-hidden {
    display: none !important;
}

#loadingIndicator {
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
}

/* ============ LEGEND ============ */
.chart-legend {
    display: flex;
    justify-content: left;
    gap: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    margin-left: 0px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #2c3e50;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
}

.legend-color.new { background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%); }
.legend-color.riser { background: linear-gradient(135deg, #27ae60 0%, #229954 100%); }
.legend-color.same { background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%); }
.legend-color.faller { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.legend-color.reentry { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }

.legend-item .count {
    font-weight: bold;
    color: #3498db;
}

/* Clickable Legend Items */
.legend-item.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    padding: 5px 5px;
    border-radius: 6px;
}

.legend-item.clickable:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.legend-item.active-filter {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.legend-item.clickable {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* ============ MAIN CONTENT ============ */
main {
    padding: 20px;
    min-height: 400px;
}

/* Song Page Styles */
.song-page {
    padding: 20px;
}

.song-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 20px;
}

.song-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.song-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.song-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    margin-top: 20px;
}

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

.chart-container {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.chart-container h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

#songChart {
    width: 100%;
    height: auto;
    display: block;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/* Tooltips */
.tooltip-container {
    position: fixed;
    display: none;
    z-index: 1000;
}

.tooltip {
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Chart Tooltip (for popup chart) */
.chart-tooltip-container {
    position: fixed;
    display: none;
    z-index: 1001;
}

.chart-tooltip {
    background: #2c3e50;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

/* ============ COMMENTS SECTION ============ */
.comments-section {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.comments-section h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* Login message for comments */
.comments-login-message {
    background: #e8f4f8;
    border: 1px solid #b8dce8;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 12px;
    color: #2c3e50;
}

.inline-login-btn {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
    padding: 0;
    font-size: inherit;
}

.inline-login-btn:hover {
    color: #2980b9;
}

.comment-input-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
}

.comment-input,
.comment-textarea {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    resize: vertical;
}

.comment-input {
    height: 28px;
}

.comment-textarea {
    min-height: 60px;
    max-height: 80px;
}

.comment-input:focus,
.comment-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 3px rgba(52, 152, 219, 0.3);
}

.comment-input:disabled {
    background: #f0f0f0;
    color: #999;
}

.submit-comment-btn {
    padding: 8px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.submit-comment-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-item {
    background: white;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    font-size: 12px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 4px;
    gap: 8px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-author {
    color: #2c3e50;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-date {
    font-size: 10px;
    color: #999;
    white-space: nowrap;
}

.comment-text {
    color: #555;
    line-height: 1.4;
    word-wrap: break-word;
}

.no-comments {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 20px 10px;
    font-style: italic;
}

/* ============ TABLE STYLING ============ */
#chartTable {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#chartTable thead {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
}

#chartTable th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    user-select: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

#chartTable th:last-child {
    border-right: none;
}

#chartTable th.compact-column {
    width: 90px;
    text-align: center;
}

#chartTable th.charts-column {
    width: 90px;
    text-align: center;
}

#chartTable th.points-column {
    width: 140px;
    text-align: center;
}

#chartTable th.sortable {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#chartTable th.sortable:hover {
    background: rgba(255, 255, 255, 0.1);
}

#chartTable th.sorted {
    background: rgba(52, 152, 219, 0.3);
}

.sort-arrow {
    margin-left: 5px;
    opacity: 0.7;
    font-size: 0.85rem;
}

#chartTable tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #e0e0e0;
}

#chartTable tbody tr:hover {
    background: #f8f9fa;
}

#chartTable td {
    padding: 8px 12px;
    font-size: 0.9rem;
    border-right: 1px solid #e0e0e0;
}

#chartTable td:last-child {
    border-right: none;
}

/* Compact cells */
.compact-cell {
    text-align: center;
    width: 90px;
}

/* Position Cells */
.position-cell {
    font-weight: bold;
    color: #2c3e50;
}

.position-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.position-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 24px;
    padding: 0 8px;
    border-radius: 4px;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
}

/* Position colors based on movement */
.position-number.new-entry {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
}

.position-number.riser {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.position-number.same {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.position-number.faller {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.position-number.reentry {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

/* Special styling for All Songs view */
.position-number.top-three {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    font-size: 0.95rem;
}

.position-number.top-ten {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

/* Movement icons */
.movement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0.9;
    width: 20px;
}

/* Other cells */
.prev-position-cell {
    color: #565a5a;
    font-weight: 500;
}

.title-cell {
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
    cursor: pointer;
}

.song-title-text {
    text-decoration: underline;
}

.title-cell:hover .song-title-text {
    color: #3498db;
}

.charts-cell {
    text-align: center;
    font-weight: bold;
    color: #3498db;
    width: 90px;
}

.points-cell {
    text-align: center;
    font-weight: bold;
    color: #27ae60;
    font-size: 0.95rem;
    width: 120px;
}

/* #1 Label styling - NO underline */
.number-one-label {
    color: #e74c3c;
    font-weight: bold;
    font-size: 0.85rem;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 3px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    text-decoration: none;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 60px;
    color: #e74c3c;
}

.error-message h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.error-message p {
    font-size: 1rem;
    color: #7f8c8d;
}

/* ============ FOOTER ============ */
footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.85rem;
}

footer span {
    font-weight: bold;
    color: #3498db;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-left {
        flex-direction: column;
        width: 100%;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .back-to-charts-btn {
        width: 100%;
        text-align: center;
    }

    .auth-section {
        width: 100%;
    }

    .user-info,
    .login-btn {
        width: 100%;
        justify-content: center;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .nav-button {
        width: 100%;
    }
    
    .chart-selector-group {
        width: 100%;
        justify-content: space-between;
    }
    
    #chartSelector {
        flex: 1;
    }
    
    .chart-legend {
        font-size: 0.75rem;
        gap: 10px;
    }
    
    #chartTable {
        font-size: 0.8rem;
    }
    
    #chartTable th,
    #chartTable td {
        padding: 6px 8px;
    }
    
    .title-cell {
        font-size: 0.9rem;
    }
    
    .position-number {
        min-width: 30px;
        height: 20px;
        padding: 0 6px;
    }
    
    .movement-icon {
        width: 16px;
        font-size: 0.8rem;
    }
    
    .number-one-label {
        font-size: 0.75rem;
        margin-left: 5px;
        padding: 1px 4px;
    }
    
    #chartTable th.charts-column,
    .charts-cell {
        width: 70px;
    }
    
    #chartTable th.points-column,
    .points-cell {
        width: 90px;
    }

    .song-stats {
        grid-template-columns: 1fr;
    }

    .song-content {
        grid-template-columns: 1fr;
    }

    .comments-section {
        max-height: none;
    }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#chartTable tbody tr {
    animation: fadeIn 0.2s ease;
}

/* ============ CHART HISTORY POPUP ============ */
.chart-history-popup {
    position: absolute;
    background: white;
    border: 2px solid #3498db;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 15px;
    min-width: 330px;
    animation: popupFadeIn 0.2s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

#popupSongTitle {
    font-weight: bold;
    font-size: 14px;
    color: #2c3e50;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.close-popup {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    transition: color 0.2s ease;
}

.close-popup:hover {
    color: #e74c3c;
}

#historyChart {
    display: block;
    background: #fafafa;
    border-radius: 5px;
}

/* Hover effect for table rows */
.chart-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chart-row:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* ============ FILTER CONTROLS ============ */
.filters-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-group label {
    font-weight: 500;
    color: #2c3e50;
}

.song-filter-input {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
}

.song-filter-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.clear-filter-btn {
    padding: 8px 15px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.clear-filter-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.filter-status {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px 15px;
    border-radius: 6px;
    color: #856404;
    font-size: 14px;
    display: none;
}

.filter-status .results-count {
    font-weight: bold;
    color: #2c3e50;
}

/* ============ TOP SPOT COLUMN ============ */
.top-spot-column {
    width: 80px;
}

.top-spot-cell {
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
    padding: 5px;
}

/* Adjust Song Title Column Width */
.song-title-column {
    width: 35%;
    max-width: 350px;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
    font-size: 16px;
}

/* ============ COMPACT NUMBER COLUMNS ============ */
.compact-cell {
    width: 90px !important;
    max-width: 90px !important;
    text-align: center;
}

.position-cell, .prev-position-cell {
    width: 85px !important;
    max-width: 85px !important;
}

.charts-cell {
    width: 90px !important;
    max-width: 90px !important;
    text-align: center;
}

.top-spot-cell {
    width: 100px !important;
    max-width: 100px !important;
    text-align: center;
    background: transparent !important;
}

.points-cell {
    width: 120px !important;
    max-width: 120px !important;
    text-align: center;
}

/* Adjust table headers for compact columns */
th.compact-column {
    width: 75px !important;
    max-width: 75px !important;
}

th.charts-column {
    width: 90px !important;
    max-width: 90px !important;
}

th.top-spot-column {
    width: 65px !important;
    max-width: 65px !important;
}

th.points-column {
    width: 80px !important;
    max-width: 80px !important;
}

/* Song title takes remaining space */
.song-title-column {
    width: auto !important;
    min-width: 250px;
}

.title-cell {
    padding-left: 10px;
    padding-right: 10px;
}

/* ============ POINTS TOOLTIP ============ */
.points-tooltip {
    position: fixed;
    z-index: 1002;
    background: #2c3e50;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transform: translateX(-50%);
    animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.points-tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tooltip-stat {
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    color: #ecf0f1;
}

.tooltip-stat strong {
    color: #3498db;
    font-weight: 600;
}

.points-cell {
    cursor: help;
}

/* Add a small indicator that the cell is hoverable */
.points-cell:hover {
    background: rgba(52, 152, 219, 0.1);
}
/* ============ SORT ARROW COLORS ============ */
.sort-arrow {
    color: #999;
    font-weight: normal;
    font-size: 0.85rem;
}

.sort-arrow.asc {
    color: #e74c3c !important;
    font-weight: bold !important;
    font-size: 1rem !important;
}

.sort-arrow.desc {
    color: #2ecc71 !important;
    font-weight: bold !important;
    font-size: 1rem !important;
}

/* ============ NUMBER ONE LABEL TOOLTIP ============ */
.number-one-tooltip {
    position: fixed;
    z-index: 1003;
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    font-size: 12px;
    white-space: nowrap;
    animation: tooltipFadeIn 0.2s ease;
}
