/* Marquee animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 60s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Price flash animation */
@keyframes flash-green {
    0% { background-color: rgba(34, 197, 94, 0.15); }
    100% { background-color: transparent; }
}

@keyframes flash-red {
    0% { background-color: rgba(239, 68, 68, 0.15); }
    100% { background-color: transparent; }
}

.flash-up {
    animation: flash-green 0.6s ease-out;
}

.flash-down {
    animation: flash-red 0.6s ease-out;
}

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

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass card effect */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dark .glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Glow effect on hover */
.glow-hover {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.4) !important;
}

/* Subtle gradient background for hero sections */
.hero-gradient {
    background: radial-gradient(ellipse at 50% 0%, rgba(96, 165, 250, 0.08) 0%, transparent 60%);
}

/* Smooth table row hover */
.table-row-hover {
    transition: background-color 0.15s ease;
}

.table-row-hover:hover {
    background-color: rgba(96, 165, 250, 0.04);
}

/* Badge glow */
.badge-cex {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-dex {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.dark ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
