/* Custom styles for Happy Hands Brand New Liquidation */

:root {
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --slate-950: #060a14;
    --slate-900: #0a0f1e;
    --slate-800: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--slate-950);
    color: #e2e8f0;
    overflow-x: hidden;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(6, 10, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Selection color */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #f0fdfa;
}

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

::-webkit-scrollbar-track {
    background: var(--slate-950);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--teal-600), var(--gold-500));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--teal-500), var(--gold-400));
}

/* Image filter for map */
.filter-grayscale {
    filter: grayscale(0.8) brightness(0.7) contrast(1.1);
}

.filter-grayscale:hover {
    filter: grayscale(0) brightness(1) contrast(1);
}

/* Subtle gradient border effect on cards */
.border-gradient {
    position: relative;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 1rem;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.3), rgba(251, 191, 36, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Gold text gradient utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #fcd34d, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Teal text gradient utility */
.text-teal-gradient {
    background: linear-gradient(135deg, #5eead4, #2dd4bf, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ambient glow effects */
.glow-teal {
    box-shadow: 0 0 60px rgba(45, 212, 191, 0.15);
}

.glow-gold {
    box-shadow: 0 0 60px rgba(251, 191, 36, 0.1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .group:hover img {
        transform: none;
    }
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shimmer effect for hero text */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.hero-shimmer {
    background: linear-gradient(90deg, #5eead4 0%, #fbbf24 50%, #5eead4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Pulse animation for dot */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(45, 212, 191, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
    }
}

.animate-pulse {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
