/* Custom styles for FriendFrenzy Leaderboard */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #0ea5e9, #ec4899);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #0284c7, #db2777);
}

/* Table row hover effects */
#leaderboard-body tr {
    transition: all 0.3s ease;
}

#leaderboard-body tr:hover {
    background-color: rgba(14, 165, 233, 0.05);
    transform: translateX(4px);
}

/* Rank badges */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: bold;
    color: white;
}

.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #808080);
}

.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.rank-other {
    background: linear-gradient(135deg, #0ea5e9, #7dd3fc);
}

/* Achievement badges */
.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 4px;
    margin-bottom: 4px;
}

.achievement-gold {
    background-color: #FEF3C7;
    color: #92400E;
    border: 1px solid #FBBF24;
}

.achievement-silver {
    background-color: #E5E7EB;
    color: #374151;
    border: 1px solid #9CA3AF;
}

.achievement-bronze {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #F87171;
}
/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #0ea5e9, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating action button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #ec4899);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(14, 165, 233, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .flex-col-mobile {
        flex-direction: column;
    }
    
    .space-y-mobile > * + * {
        margin-top: 1rem;
    }
}

/* Print styles */
@media print {
    .fab,
    #add-friend,
    button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .shadow-lg, .shadow-xl {
        box-shadow: none !important;
    }
    
    table {
        border: 1px solid #000;
    }
    
    th, td {
        border: 1px solid #000;
        padding: 8px;
    }
}