/* RECATOOLS — Food Picker (shared cluster styles)
 * Identical across every food-picker-<country> tool. Tool-specific accents
 * come from the Food & Travel category colour (#e2502f). No external assets. */

:root {
    --fp-accent: #e2502f;
    --fp-accent-dark: #c23d1f;
    --fp-ink: #1a1814;
    --fp-muted: #6b6760;
    --fp-line: #ebebeb;
    --fp-soft: #fbf3f0;
}

.fp-picker { padding: 1.25rem 1.25rem 1.5rem; }

.fp-intro {
    font-size: .9rem;
    line-height: 1.6;
    color: var(--fp-muted);
    margin: 0 0 1.1rem;
}

.fp-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
    margin-bottom: 1.1rem;
}

.fp-filter { display: flex; flex-direction: column; gap: .3rem; }

.fp-filter label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--fp-muted);
}

.fp-filter select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: .6rem .8rem;
    font-size: .9rem;
    color: var(--fp-ink);
    background: #fff;
    border: 1px solid var(--fp-line);
    border-radius: 8px;
    cursor: pointer;
}

.fp-filter select:focus {
    outline: none;
    border-color: var(--fp-accent);
    box-shadow: 0 0 0 3px rgba(226, 80, 47, .15);
}

.fp-pick-btn {
    display: inline-block;
    width: 100%;
    padding: .85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--fp-accent);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease;
}

.fp-pick-btn:hover:not(:disabled) { background: var(--fp-accent-dark); }
.fp-pick-btn:active:not(:disabled) { transform: translateY(1px); }
.fp-pick-btn:disabled { opacity: .55; cursor: progress; }

.fp-result { margin-top: 1.25rem; }

.fp-hint, .fp-empty {
    text-align: center;
    color: var(--fp-muted);
    font-size: .9rem;
    padding: 1.5rem 1rem;
    background: var(--fp-soft);
    border-radius: 12px;
    margin: 0;
}

/* ---- result dish card ---- */

.fp-dish {
    border: 1px solid var(--fp-line);
    border-top: 4px solid var(--fp-accent);
    border-radius: 14px;
    padding: 1.25rem 1.35rem 1.4rem;
    background: #fff;
    animation: fp-fade .25s ease;
}

@keyframes fp-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

/* self-hosted Pexels reference photo — small, at the BOTTOM of the card.
   Secondary to the text: the name + description load first; this lazy-loads. */
.fp-figure {
    margin: 1rem 0 0;
    padding-top: .9rem;
    border-top: 1px solid var(--fp-line);
}
.fp-img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    background: #f3f4f6;
}
.fp-credit {
    margin-top: .35rem;
    font-size: .62rem;
    color: #9b968d;
    letter-spacing: .01em;
}

.fp-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.fp-name-en { font-size: 1.4rem; font-weight: 800; color: var(--fp-ink); line-height: 1.2; }
.fp-name-zh, .fp-name-local, .fp-name-pt { font-size: 1.05rem; color: var(--fp-accent-dark); font-weight: 600; }
.fp-name-local, .fp-name-pt { font-style: italic; color: var(--fp-muted); }

.fp-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .85rem 0 .6rem; }

.fp-tag {
    font-size: .7rem;
    font-weight: 600;
    padding: .22rem .55rem;
    border-radius: 999px;
    letter-spacing: .02em;
}
.fp-tag--meal  { background: #eef2ff; color: #4338ca; }
.fp-tag--axis  { background: var(--fp-soft); color: var(--fp-accent-dark); }
.fp-tag--spice { background: #fef2f2; color: #b91c1c; }

.fp-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .85rem; }
.fp-badge {
    font-size: .68rem;
    font-weight: 600;
    padding: .2rem .5rem;
    border-radius: 6px;
    background: #f3f4f6;
    color: var(--fp-muted);
}
.fp-badge--ok   { background: #ecfdf5; color: #047857; }
.fp-badge--note { background: #fffbeb; color: #92400e; }

.fp-origin { display: flex; gap: .5rem; align-items: baseline; margin-bottom: .7rem; }
.fp-origin-label {
    font-size: .64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--fp-accent);
    flex: 0 0 auto;
}
.fp-origin-text { font-size: .82rem; color: var(--fp-muted); }

.fp-desc { font-size: .92rem; line-height: 1.62; color: var(--fp-ink); margin: 0; }

.fp-suggest {
    margin: .85rem 0 0;
    font-size: .82rem;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: .55rem .8rem;
}

.fp-share-btn {
    margin-top: 1rem;
    padding: .55rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--fp-accent-dark);
    background: #fff;
    border: 1px solid var(--fp-accent);
    border-radius: 999px;
    cursor: pointer;
}
.fp-share-btn:hover { background: var(--fp-soft); }

@media (max-width: 480px) {
    .fp-controls { grid-template-columns: 1fr; }
    .fp-name-en { font-size: 1.2rem; }
}
