/* Custom styles for Football Fun Leaderboards */

/* Apply Inter font globally */
body, html {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

/* Top 3 row highlighting */
.dark .top-3-row {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-left: 3px solid #ffffff;
}

.dark .top-3-row td {
    border-color: rgba(255, 255, 255, 0.2);
}

.top-3-row {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    border-left: 3px solid #000000;
}

.top-3-row td {
    border-color: rgba(0, 0, 0, 0.2);
}

/* Position badges for top 3 */
.position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
}

.position-1 {
    background: linear-gradient(135deg, #b8860b, #daa520);
    color: #000;
    box-shadow: 0 2px 4px rgba(184, 134, 11, 0.3);
}

.position-2 {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    color: #000;
    box-shadow: 0 2px 4px rgba(192, 192, 192, 0.3);
}

.position-3 {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: #fff;
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.3);
}

/* Responsive table improvements */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 14px;
    }
    
    .wallet-address {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Loading states */
.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Custom scrollbar for webkit browsers */
.overflow-x-auto::-webkit-scrollbar {
    height: 6px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #374151;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 3px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Search input focus effect */
#searchInput:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Button hover effects */
button:not(:disabled):hover {
    background-color: #4b5563;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Table row hover effects */
.dark tbody tr:hover {
    background-color: rgba(75, 85, 99, 0.3);
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: rgba(229, 231, 235, 0.5);
    transition: background-color 0.2s ease;
}

/* Error states */
.error-message {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

/* Empty states */
.empty-state {
    color: #9ca3af;
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

/* Tooltip styles */
.tooltip-trigger {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #1f2937;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    position: fixed;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 11px;
    line-height: 1.4;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

.tooltip-trigger:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
