/* Custom styles for Lucky52superdealstore */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060910;
}
::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Selection color */
::selection {
    background: rgba(212, 160, 60, 0.3);
    color: #fdfbf7;
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(6, 9, 16, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 60, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Menu button animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    width: 5;
    margin: 0;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Deal card hover */
.deal-card {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 160, 60, 0.05);
}

/* Category item hover */
.category-item {
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.category-item:hover {
    transform: translateX(4px);
}

/* Gold shimmer animation for special elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Pulse ring for badges */
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* Ensure images have proper aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .deal-card,
    .category-item,
    .floating {
        animation: none;
        transition: none;
    }
    .deal-card:hover {
        transform: none;
    }
    .category-item:hover {
        transform: none;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.1;
    }
}
