/* ============================================================
   "PULL UP A SEAT" — FOOD FACET
   Built on the color/font variables defined in style.css.
   Eight category colors defined here, extending (not clashing
   with) the core site palette — used identically for every
   category so none reads as more prominent than another.
   ============================================================ */

:root {
    --seat-cat-1: #FF5C5C; /* Grew up at his table */
    --seat-cat-2: #77B6EA; /* He cooked for my kids too */
    --seat-cat-3: #E8A33D; /* Welcomed in like family */
    --seat-cat-4: #6FA88C; /* Fed me when I needed it most */
    --seat-cat-5: #B0729A; /* Cooked alongside him */
    --seat-cat-6: #D97A4D; /* Tasted his goopy chicken */
    --seat-cat-7: #5FA3CC; /* Got a plate at the door */
    --seat-cat-8: #A98D5C; /* Learned something at his stove */
}

.fs-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

.fs-intro {
    text-align: left;
    max-width: 760px;
    margin: 0 auto;
    padding: 50px 24px 30px;
}

.fs-intro p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 760px;
    margin: 12px 0 0;
}

.fs-tagline {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 700;
    font-size: 20px;
    color: var(--color-secondary);
    margin-top: 10px;
}

.fs-recipe-card {
    border: 1px solid rgba(55, 57, 58, 0.3);
    border-radius: 10px;
    padding: 26px 28px;
    margin: 26px 0;
}

.fs-recipe-card h2 {
    font-size: 30px;
    margin-bottom: 14px;
}

.fs-recipe-card ol {
    margin: 0;
    padding-left: 22px;
}

.fs-recipe-card li {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.fs-recipe-card li:last-child {
    margin-bottom: 0;
}

.fs-belongs-header {
    font-size: 30px;
    margin-top: 10px;
}

.fs-cloud-frame {
    position: relative;
    width: 100%;
    height: 640px;
    border: 1px solid rgba(55, 57, 58, 0.3);
    border-radius: 10px;
    overflow: hidden;
    background: #F2E9D8;
    touch-action: none;
}

.fs-cloud-frame svg {
    display: block;
    width: 100%;
    height: 100%;
}

.fs-node-label {
    font-family: var(--font-body);
    font-weight: 700;
    fill: var(--color-text);
    pointer-events: none;
}

.fs-don-label {
    font-family: var(--font-body);
    fill: var(--color-background);
    pointer-events: none;
}

.fs-join-btn-wrap {
    text-align: center;
    margin-top: 24px;
}

.fs-join-btn {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 17px;
    padding: 13px 30px;
    border-radius: 8px;
    border: none;
    background: var(--color-primary);
    color: var(--color-background);
    cursor: pointer;
}

.fs-join-btn:hover { opacity: 0.9; }

/* ---- Legend ---- */

.fs-legend {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    padding: 18px;
    border-top: 1px solid rgba(55, 57, 58, 0.2);
}

.fs-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.fs-legend-swatch {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Hover/tap reveal card ---- */

.fs-card {
    position: absolute;
    background: var(--color-background);
    border: 1px solid rgba(55, 57, 58, 0.4);
    border-radius: 8px;
    padding: 14px 16px;
    max-width: 240px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    font-size: 14px;
    line-height: 1.5;
    z-index: 10;
    display: none;
}

.fs-card.visible { display: block; }

.fs-card .fs-card-name {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-secondary);
    margin: 0 0 2px;
}

.fs-card .fs-card-category {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.7;
    margin: 0 0 8px;
}

.fs-card .fs-card-memory {
    margin: 0;
}

/* ---- Join modal ---- */

.fs-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fs-modal-overlay.visible {
    display: flex;
}

.fs-modal {
    background: var(--color-background);
    border-radius: 10px;
    padding: 30px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.fs-modal h2 {
    font-size: 26px;
    margin-bottom: 4px;
}

.fs-modal .fs-modal-sub {
    font-size: 15px;
    opacity: 0.75;
    margin-bottom: 20px;
}

.fs-field {
    margin-bottom: 16px;
}

.fs-field label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.fs-field input[type="text"],
.fs-field textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(55, 57, 58, 0.4);
    background: rgba(255,255,255,0.5);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 18px;
    resize: vertical;
}

.fs-field select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(55, 57, 58, 0.4);
    background: rgba(255,255,255,0.5);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 18px;
    cursor: pointer;
}

.fs-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.fs-modal-actions button {
    flex: 1;
    padding: 11px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.fs-btn-cancel {
    background: transparent;
    border: 1px solid rgba(55, 57, 58, 0.4);
    color: var(--color-text);
}

.fs-btn-submit {
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: var(--color-background);
}

.fs-btn-submit:disabled { opacity: 0.4; cursor: default; }

.fs-form-error {
    color: #a13a2f;
    font-size: 14px;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .fs-intro { padding: 40px 16px 20px; }
    .fs-wrap { padding: 0 16px 70px; }
    .fs-cloud-frame { height: 460px; }
}
