/* Base variables and Global Styles */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --spacing-unit: 0.25rem;
    --brand-dark: #111111;
    --brand-darker: #161616;
    --brand-red: #9B0000;
    --brand-orange: #FF4500;
    --brand-orange-light: #fd8559;
    --brand-light: #FFF0E6;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #262626;
    --color-neutral-600: #525252;
    --color-neutral-800: #262626;
    /* Same as gray-800 in this context */
    --color-neutral-900: #171717;
    --color-zinc-700: #3f3f46;
    --color-zinc-800: #27272a;
    --color-zinc-900: #18181b;
    /* Used in menu item card gradient */
    --color-red-400: #f87171;
    --color-red-500: #ef4444;
    --color-green-500: #00c950;
    /* For hover states */

    --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Main Container */
.main-container {
    /* (Mobile): Full width with basic padding */
    width: 100%;
    padding-bottom: calc(var(--spacing-unit) * 16);
    padding-left: calc(var(--spacing-unit) * 4);
    padding-right: calc(var(--spacing-unit) * 4);

    margin-left: auto;
    margin-right: auto;
}

/* Extra PC / Tablet specific width constraints*/
@media (min-width: 768px) {
    .main-container {
        /* Limits width so it doesn't stretch across a wide monitor */
        max-width: 48rem;
    }
}

/* General Utilities */
.is-hidden {
    display: none !important;
    /* Ensure it overrides other display properties if necessary */
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-weight-medium {
    /* Replaces .font-weight-medium for directness */
    font-weight: 500;
}

.text-center {
    text-align: center;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(var(--spacing-unit) * 4);
    /* px-4 on main, fallback for others */
    padding-right: calc(var(--spacing-unit) * 4);
}

@media (min-width: 640px) {

    /* sm */
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {

    /* md */
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {

    /* lg */
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {

    /* xl */
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {

    /* 2xl */
    .container {
        max-width: 1536px;
    }
}


.flex-container--space-between {
    /* From cart.js */
    display: flex;
    justify-content: space-between;
}

.flex-items-center {
    display: flex;
    align-items: center;
}

.flex-justify-center {
    display: flex;
    justify-content: center;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-grow {
    flex-grow: 1;
}

.section-padding-top {
    padding-top: calc(var(--spacing-unit) * 8);
    /* pt-12 */
}

.section-padding-bot {
    padding-bottom: calc(var(--spacing-unit) * 8);
    /* pt-12 */
}

.error-message {
    color: var(--color-red-400);
    /* text-red-400 */
    font-size: 0.875rem;
    /* text-sm */
    line-height: 1.25rem;
    margin-top: calc(var(--spacing-unit) * 1);
    /* mt-1 */
}

/* Body Styles */
.body-base {
    margin: 0;
    background-color: var(--brand-dark);
    color: var(--brand-light);
    min-height: 100vh;
    position: relative;
    font-family: var(--font-sans);
}

/* Hide number input arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

textarea {
    resize: vertical;
}

/* Date and Time inputs styling */
input[type=date],
input[type=time] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Animation for cart button */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 0.5s;
}

/* Modal slide-up animation */
.slide-up {
    animation: slideUp 0.3s forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Fade-in animation */
.fade-in {
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Custom scrollbar for better mobile experience */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #2D0C0C;
}

::-webkit-scrollbar-thumb {
    background: #8B0000;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF4500;
}

/* Menu card hover effect */
.menu-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(255, 69, 0, 0.2), 0 4px 6px -2px rgba(255, 69, 0, 0.1);
}

/* Loading animation */
.loading {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading div {
    display: inline-block;
    position: absolute;
    left: 8px;
    width: 16px;
    background: #FF4500;
    animation: loading 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.loading div:nth-child(1) {
    left: 8px;
    animation-delay: -0.24s;
}

.loading div:nth-child(2) {
    left: 32px;
    animation-delay: -0.12s;
}

.loading div:nth-child(3) {
    left: 56px;
    animation-delay: 0;
}

@keyframes loading {
    0% {
        top: 8px;
        height: 64px;
    }

    50%,
    100% {
        top: 24px;
        height: 32px;
    }
}

.loading-overlay {
    /* 1. Positioning to be on top and cover the screen */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;

    /* 2. Black, semi-transparent background for the "blurry" or "dimming" effect */
    background-color: rgba(0, 0, 0, 0.85);

    /* 3. Centering the text content */
    display: flex;
    justify-content: center;
    align-items: center;

    /* 4. Styling for the text itself */
    color: white;
    font-size: calc(var(--spacing-unit) * 8);
    text-align: center;
}