@import url('https://cdn.tailwindcss.com');

:root {
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.2);
    --bg-dark: #050505;
}

body {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
}

h1,
h2,
h3,
h4,
.font-news {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Ticker */
@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-ticker {
    animation: ticker 40s linear infinite;
}

/* News Cards & Hover Effects */
.news-item {
    transition: transform 0.3s ease, background 0.3s ease;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.news-item:hover img {
    transform: scale(1.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ranking Numbers in Sidebar */
.rank-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease;
}

.sidebar-trend:hover .rank-number {
    color: #10b981;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #222;
}

/* Category Buttons */
.category-btn {
    transition: all 0.2s ease;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specific Line Clamping for News */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}