/* 
    Mercado Custom Styles
    Premium Dark Luxury Theme
*/

:root {
    --mercado-dark: #06120e;
    --mercado-emerald: #0f3d2e;
    --mercado-gold: #d4af37;
    --mercado-cream: #f5f2e8;
}

html {
    scroll-behavior: smooth;
}

body {
    /* Prevents layout shift on load */
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--mercado-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--mercado-emerald);
    border: 1px solid var(--mercado-gold);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--mercado-gold);
}

/* Typography Adjustments */
h1, h2, h3, h4 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Gold Gradient Text Utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 50%, #aa8a2e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Transition State */
.nav-scrolled {
    background-color: rgba(6, 18, 14, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button Hover Effects */
button, a {
    transition: all 0.2s ease-in-out;
}

/* Image Aspect Ratios */
.img-card {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Subtle Gold Glow for Cards */
.card-glow:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

/* Focus Styles for Accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--mercado-gold);
    outline-offset: 4px;
}

/* Form Styles */
input, textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--mercado-cream);
    transition: border-color 0.3s;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--mercado-gold);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Success Message Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}
