/* CoinReward — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}
@keyframes coin-spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.animate-fade-in { animation: fadeIn 0.4s ease-out; }
.animate-slide-up { animation: slideUp 0.5s ease-out; }
.animate-pulse-glow { animation: pulse-glow 2s infinite; }
.animate-coin-spin { animation: coin-spin 1s ease-in-out; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Flash messages */
.flash-message {
    animation: slideUp 0.3s ease-out, fadeOut 0.3s ease-out 4s forwards;
}
@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}

/* Task timer progress bar */
.timer-bar {
    transition: width 1s linear;
}

/* Spin wheel animation */
.spin-animation {
    animation: spin 3s cubic-bezier(0.17, 0.67, 0.12, 0.99) forwards;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(1440deg); }
}

/* Scratch card effect */
.scratch-surface {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    cursor: pointer;
    user-select: none;
}

/* Mobile sidebar */
@media (max-width: 1023px) {
    .sidebar-mobile-hidden {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar-mobile-hidden.active {
        transform: translateX(0);
    }
}

/* Table responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Badge pulse */
.badge-pulse {
    position: relative;
}
.badge-pulse::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-glow 2s infinite;
}
