/* Premium Dark Market Vouch System - Ultra Professional Design */

/* Animated gradient background */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background: linear-gradient(-45deg, #14b8a6, #22c55e, #3b82f6, #ec4899);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* Ultra smooth scrollbar */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 15, 0.95);
    border-left: 1px solid rgba(20, 184, 166, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #14b8a6, #0d9488);
    border-radius: 10px;
    border: 2px solid rgba(10, 10, 15, 0.95);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.4);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0d9488, #0f766e);
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.6);
}

/* Glowing effect animations */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(20, 184, 166, 0.5), 0 0 20px rgba(20, 184, 166, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(20, 184, 166, 0.8), 0 0 40px rgba(20, 184, 166, 0.5);
    }
}

.glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Premium hover effects */
.premium-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.15), transparent);
    transition: left 0.7s ease;
}

.premium-hover:hover::before {
    left: 100%;
}

/* Floating animation for icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(2deg);
    }
    66% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(to right, transparent 0%, rgba(20, 184, 166, 0.2) 50%, transparent 100%);
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Particle effect */
.particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.8), transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: float-up 10s infinite ease-in;
    z-index: 1;
}

@keyframes float-up {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateX(calc(100px * sin(var(--random)))) scale(0);
        opacity: 0;
    }
}

/* Ultra premium card effects */
.ultra-card {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 15, 25, 0.98), rgba(10, 10, 20, 0.95));
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(30px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(20, 184, 166, 0.1) inset,
        0 0 60px rgba(20, 184, 166, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ultra-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(20, 184, 166, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ultra-card:hover::after {
    opacity: 1;
}

.ultra-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(20, 184, 166, 0.6);
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(20, 184, 166, 0.3),
        0 0 0 2px rgba(20, 184, 166, 0.3) inset;
}

/* Text gradient animation */
@keyframes text-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.text-gradient {
    background: linear-gradient(135deg, #14b8a6, #22c55e, #3b82f6, #14b8a6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-gradient 5s ease infinite;
}

/* Loading spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(20, 184, 166, 0.2);
    border-top-color: #14b8a6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Pulse animation for important elements */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(20, 184, 166, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
    }
}

.pulse {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade in animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

/* Scale up animation */
@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-up {
    animation: scaleUp 0.5s ease-out forwards;
}

/* Rotate animation for badges */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate 20s linear infinite;
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 2s ease-in-out infinite;
}

/* Glass morphism effect */
.glass {
    background: rgba(15, 15, 25, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Neon glow text */
.neon-text {
    color: #14b8a6;
    text-shadow:
        0 0 10px rgba(20, 184, 166, 0.8),
        0 0 20px rgba(20, 184, 166, 0.6),
        0 0 30px rgba(20, 184, 166, 0.4),
        0 0 40px rgba(20, 184, 166, 0.2);
    animation: neon-flicker 3s ease-in-out infinite;
}

@keyframes neon-flicker {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(20, 184, 166, 0.8),
            0 0 20px rgba(20, 184, 166, 0.6),
            0 0 30px rgba(20, 184, 166, 0.4),
            0 0 40px rgba(20, 184, 166, 0.2);
    }
    50% {
        text-shadow:
            0 0 15px rgba(20, 184, 166, 1),
            0 0 30px rgba(20, 184, 166, 0.8),
            0 0 45px rgba(20, 184, 166, 0.6),
            0 0 60px rgba(20, 184, 166, 0.4);
    }
}

/* Responsive utilities */
@media (max-width: 768px) {
    .premium-hover:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .ultra-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    body {
        background: #000000;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card,
    .ultra-card {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Enhanced hover effects for cards */
.card, .user-card, .vouch-card {
    will-change: transform;
}

/* Smooth transitions for all interactive elements */
a, button, .btn {
    will-change: transform;
}

/* Parallax scrolling effect */
@keyframes parallax {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Gradient text effect */
@keyframes gradient-text {
    0%, 100% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(10deg);
    }
}

/* Enhanced glow effect */
.glow-enhanced {
    animation: glow-pulse-enhanced 3s ease-in-out infinite;
}

@keyframes glow-pulse-enhanced {
    0%, 100% {
        box-shadow: 0 0 15px rgba(20, 184, 166, 0.6), 0 0 30px rgba(20, 184, 166, 0.4);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(20, 184, 166, 0.9), 0 0 60px rgba(20, 184, 166, 0.6);
        filter: brightness(1.1);
    }
}
