/* Custom Styles for All Star Automall */

:root {
    --color-emerald-50: #ecfdf5;
    --color-emerald-100: #d1fae5;
    --color-emerald-600: #059669;
    --color-emerald-900: #064e3b;
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --color-stone-500: #78716c;
    --color-stone-800: #292524;
    --color-stone-900: #1c1917;
}

body {
    font-family: 'Nunito', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-fredoka {
    font-family: 'Fredoka', sans-serif;
}

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

/* Navbar Transition */
#navbar {
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

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

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

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

::-webkit-scrollbar-track {
    background: var(--color-stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-emerald-200);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-emerald-400);
}

/* Focus Styles for Accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-emerald-600);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile Menu Button */
#mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-fredoka {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    #navbar, #mobile-menu, .animate-fade-in-up {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}
