/* Adriana's Mexican Restaurant Tampa — Custom Styles */

/* Base adjustments */
html {
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #f0e6f6;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.5);
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    image-rendering: auto;
    loading: lazy;
}

/* Custom scrollbar for select dropdowns */
select option {
    background: #1a0d1e;
    color: #f0e6f6;
}

/* Date input styling */
input[type="date"] {
    color-scheme: dark;
}

/* Noise texture overlay for premium feel */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* Mobile menu animation fixes */
@media (max-width: 767px) {
    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(15, 8, 16, 0.98);
        z-index: 40;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        padding: 2rem;
    }

    .mobile-menu.open {
        display: flex;
        animation: menuSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu:not(.open) {
        display: none;
    }

    @keyframes menuSlideIn {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .mobile-link {
        font-size: 1.5rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .float-slow,
    .float-medium,
    .float-fast {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .gold-text {
        background: none;
        -webkit-text-fill-color: #e8c860;
        color: #e8c860;
    }

    .card-lift {
        border-width: 2px;
    }
}

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    #reservationForm,
    .btn-shine {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .gold-text {
        color: #8B6914;
        -webkit-text-fill-color: #8B6914;
    }
}
