@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Button active states */
button:active, .btn:active {
    transform: scale(0.95);
}

/* Disabled button styles */
button:disabled, .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #111827;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    border: 1px solid #374151;
}

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

/* Hover effects */
.hover-glow:hover {
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

/* Country flags */
.flag {
    width: 24px;
    height: 16px;
    background-size: cover;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 0 1px rgba(0,0,0,0.3);
}

/* FAQ Accordion */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(6, 182, 212, 0.3);
}

.faq-answer {
    animation: fadeIn 0.3s ease-out;
}

/* Profile Modal */
#profile-modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Toast */
.toast-notification {
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Community card hover effect */
#community-cards > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#community-cards > div {
    transition: all 0.3s ease;
}

/* Player card animations */
#player-results-grid > div {
    animation: fadeIn 0.4s ease-out both;
}

#player-results-grid > div:nth-child(1) { animation-delay: 0s; }
#player-results-grid > div:nth-child(2) { animation-delay: 0.05s; }
#player-results-grid > div:nth-child(3) { animation-delay: 0.1s; }
#player-results-grid > div:nth-child(4) { animation-delay: 0.15s; }
#player-results-grid > div:nth-child(5) { animation-delay: 0.2s; }
#player-results-grid > div:nth-child(6) { animation-delay: 0.25s; }
#player-results-grid > div:nth-child(7) { animation-delay: 0.3s; }
#player-results-grid > div:nth-child(8) { animation-delay: 0.35s; }

/* Scrollbar for modal */
#profile-modal-content::-webkit-scrollbar {
    width: 6px;
}

#profile-modal-content::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 3px;
}

#profile-modal-content::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}

#profile-modal-content::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .hero-content {
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
}