/* Visual language: black-and-white duet, pill-shaped controls, 16px cards.
   Tokens follow the Uber-inspired design spec; Inter stands in for UberMove/UberMoveText. */
:root {
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-text: #000000;
    --color-muted: #5e5e5e;
    --color-faint: #afafaf;
    --color-border: #e2e2e2;
    --color-soft: #efefef;
    --color-softer: #f3f3f3;
    --color-primary: #000000;
    --color-primary-dark: #282828;
    --color-on-primary: #ffffff; /* text on --color-primary; Support\Theme overrides these from admin Settings */
    --color-danger: #b3261e;
    --color-success: #2e7d32;
    --radius: 12px;
    --radius-md: 8px;
    --radius-card: 16px;
    --radius-pill: 999px;
    --shadow-1: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-2: 0 4px 16px rgba(0, 0, 0, 0.16);
    --font-display: "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-display);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; font-feature-settings: "ss01"; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

a { color: var(--color-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }

button, .button {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-on-primary);
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color .12s;
}
button:hover, .button:hover { background: var(--color-primary-dark); }
button:disabled { background: var(--color-soft); color: var(--color-faint); cursor: not-allowed; }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

.button--secondary { background: var(--color-soft); color: var(--color-text); border: none; }
.button--secondary:hover { background: var(--color-border); }
.button--danger { background: var(--color-danger); }
.button--danger:hover { background: #8f1e17; }
.link-button { background: none; border: none; color: var(--color-text); text-decoration: underline; padding: 0; font-weight: 500; cursor: pointer; }
.link-button:hover { background: none; }

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.25; /* explicit, so selects and text boxes get the same height in every browser */
    background: var(--color-soft);
    color: var(--color-text);
}
input::placeholder, textarea::placeholder { color: var(--color-faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-text); background: #fff; }

label { display: block; margin-bottom: var(--space-3); font-weight: 500; font-size: 0.9rem; }
label input, label select, label textarea { margin-top: var(--space-1); font-weight: 400; }

/* Native <select> ignores padding/height in some browsers (Safari/macOS), so it
   rendered shorter than the text boxes beside it. Drop the native chrome and
   draw our own chevron so a dropdown matches a text input exactly. */
select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--color-primary); }

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--color-soft);
    color: var(--color-muted);
    margin-right: 4px;
}
.badge--new { background: var(--color-primary); color: var(--color-on-primary); }
.badge--recommended { background: var(--color-soft); color: #000; }
.badge--spicy { background: #fdecea; color: var(--color-danger); }
.badge--vegetarian { background: #e8f5e9; color: var(--color-success); }
.badge--unavailable { background: #eee; color: var(--color-muted); }

.error-text { color: var(--color-danger); }
