/* ============================================================================
 * WORKSHOPS.CSS — scoped styles for /workshops/*, /dashboard/workshops-hosting.
 * All rules live under .mgc-workshops so nothing leaks into the app shell.
 * ========================================================================= */

.mgc-workshops { padding: 0; }
/* Kill the global section-padding leak from main.css */
.mgc-workshops section { padding: 0; }

.mgc-workshops h1 { font-family: var(--stitch-font-headline, "Source Serif 4", "Playfair Display", serif); }
.mgc-workshops h2, .mgc-workshops h3 { font-family: var(--stitch-font-headline, "Source Serif 4", "Playfair Display", serif); }

/* ── Hero band on the directory landing ────────────────────── */
.ws-hero {
    padding: 2.5rem 1.25rem 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--stitch-surface-container-low, #f5f3ef) 0%, var(--stitch-surface, #fbf9f5) 100%);
    border-bottom: 1px solid var(--stitch-outline-variant, #c1c9bf);
}
.ws-hero-eyebrow {
    display: inline-block;
    font-family: var(--stitch-font-label, "Hanken Grotesk", sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--stitch-on-surface-variant, #414941);
    background: var(--stitch-surface-container, #efeeea);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}
.ws-hero-title { font-size: clamp(1.75rem, 5vw, 2.6rem); margin: 0 0 0.6rem; color: var(--stitch-primary, #033619); }
.ws-hero-sub  { max-width: 620px; margin: 0 auto 1.2rem; color: var(--stitch-on-surface-variant, #414941); }
.ws-hero-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* ── Search bar ─────────────────────────────────────────────── */
.ws-search { padding: 1.2rem 1.25rem; border-bottom: 1px solid var(--stitch-outline-variant, #c1c9bf); background: var(--stitch-surface-container-low, #f5f3ef); }
.ws-search-form { display: flex; gap: 0.7rem; align-items: end; flex-wrap: wrap; max-width: 900px; margin: 0 auto; }
.ws-search-field { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; min-width: 160px; }
.ws-search-field span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--stitch-on-surface-variant, #414941); }
.ws-search-field input, .ws-search-field select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--stitch-outline-variant, #c1c9bf);
    background: #fff;
    font: inherit;
}

/* ── Grid of workshop cards ────────────────────────────────── */
.ws-grid {
    display: grid;
    gap: 1rem;
    padding: 1.5rem 1.25rem 2.5rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}
.ws-card {
    display: flex;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--stitch-outline-variant, #c1c9bf);
    border-radius: 16px;
    padding: 1.1rem 1.1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ws-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(3, 54, 25, 0.09);
    border-color: var(--stitch-primary-container, #1f4d2e);
}
.ws-card-emoji { font-size: 2rem; flex-shrink: 0; align-self: start; }
.ws-card-body { flex: 1; min-width: 0; }
.ws-card-cat {
    font-family: var(--stitch-font-label, "Hanken Grotesk", sans-serif);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stitch-secondary, #006c48);
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.ws-card-title { margin: 0 0 0.35rem; font-size: 1.15rem; color: var(--stitch-primary, #033619); }
.ws-card-summary { margin: 0 0 0.7rem; font-size: 0.9rem; color: var(--stitch-on-surface-variant, #414941); line-height: 1.4; }
.ws-card-meta { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.78rem; color: var(--stitch-on-surface-variant, #414941); }
.ws-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px dashed var(--stitch-outline-variant, #c1c9bf); font-size: 0.82rem; }
.ws-card-price  { font-weight: 600; color: var(--stitch-primary, #033619); }
.ws-card-spots  { color: var(--stitch-tertiary-accent, #e8c268); font-weight: 600; background: rgba(232, 194, 104, 0.15); padding: 3px 10px; border-radius: 999px; }

/* ── Detail page ────────────────────────────────────────────── */
.ws-detail { padding: 1.5rem 1.25rem 3rem; max-width: 780px; margin: 0 auto; }
.ws-detail .ws-eyebrow { font-family: var(--stitch-font-label, "Hanken Grotesk", sans-serif); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--stitch-secondary, #006c48); font-weight: 600; margin-bottom: 0.6rem; }
.ws-detail h1 { font-size: clamp(1.8rem, 5.5vw, 2.8rem); margin: 0 0 0.6rem; color: var(--stitch-primary, #033619); }
.ws-summary   { font-size: 1.1rem; color: var(--stitch-on-surface-variant, #414941); margin-bottom: 1.4rem; }

.ws-facts { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); background: var(--stitch-surface-container-low, #f5f3ef); border: 1px solid var(--stitch-outline-variant, #c1c9bf); border-radius: 12px; padding: 1rem 1.1rem; margin: 0 0 1.5rem; }
.ws-facts > div { display: flex; flex-direction: column; gap: 0.15rem; }
.ws-facts dt { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stitch-on-surface-variant, #414941); font-weight: 600; }
.ws-facts dd { margin: 0; font-size: 0.95rem; }
.ws-address-hint { display: block; margin-top: 0.2rem; font-size: 0.75rem; color: var(--stitch-outline, #717971); font-style: italic; }

.ws-body { font-size: 1rem; line-height: 1.65; color: var(--stitch-on-surface, #1b1c1a); margin-bottom: 2rem; }

.ws-rsvp { background: #fff; border: 1px solid var(--stitch-outline-variant, #c1c9bf); border-radius: 14px; padding: 1.2rem; margin-bottom: 2rem; }
.ws-rsvp-form label { display: block; margin-bottom: 0.9rem; }
.ws-rsvp-form span { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.35rem; }
.ws-rsvp-form textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--stitch-outline-variant, #c1c9bf); font: inherit; }
.ws-rsvp-hint { font-size: 0.78rem; color: var(--stitch-outline, #717971); margin: 0.6rem 0 0; }

.ws-rsvp-status { padding: 1rem 1.1rem; border-radius: 10px; margin-bottom: 0.7rem; }
.ws-rsvp-status.ok      { background: var(--stitch-secondary-container, #92f7c3); color: var(--stitch-on-secondary-container, #00734d); }
.ws-rsvp-status.pending { background: rgba(232, 194, 104, 0.2); color: #5a4300; }
.ws-rsvp-status.warn    { background: rgba(186, 26, 26, 0.1); color: #93000a; }
.ws-rsvp-note { padding: 0.7rem 1rem; background: var(--stitch-surface-container, #efeeea); border-radius: 8px; font-size: 0.9rem; }

.ws-cancelled-banner { background: rgba(186, 26, 26, 0.08); border: 1px solid rgba(186, 26, 26, 0.3); color: #93000a; padding: 0.9rem 1.1rem; border-radius: 10px; margin-bottom: 1.5rem; }

.ws-reviews h2 { font-size: 1.4rem; margin: 2rem 0 1rem; }
.ws-review { padding: 0.9rem 0; border-top: 1px solid var(--stitch-outline-variant, #c1c9bf); }
.ws-review-head { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.4rem; font-size: 0.9rem; }
.ws-review-stars { color: var(--stitch-tertiary-accent, #e8c268); letter-spacing: 0.05em; }
.ws-review-date { color: var(--stitch-outline, #717971); font-size: 0.8rem; }

/* ── Host dashboard ─────────────────────────────────────────── */
.ws-host-dash { padding: 1.5rem 1.25rem 3rem; max-width: 1100px; margin: 0 auto; }
.ws-dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.ws-host-card { background: #fff; border: 1px solid var(--stitch-outline-variant, #c1c9bf); border-radius: 14px; padding: 1.2rem 1.3rem; margin-bottom: 1.5rem; }
.ws-host-card header { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--stitch-outline-variant, #c1c9bf); }
.ws-host-card h3 { margin: 0; font-size: 1.2rem; flex: 1; }
.ws-host-when, .ws-host-count { margin: 0; font-size: 0.85rem; color: var(--stitch-on-surface-variant, #414941); }

.ws-roster { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ws-roster th, .ws-roster td { text-align: left; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--stitch-outline-variant, #c1c9bf); vertical-align: top; }
.ws-roster th { font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stitch-on-surface-variant, #414941); }
.ws-msg { color: var(--stitch-on-surface-variant, #414941); font-style: italic; max-width: 260px; }

.ws-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; text-transform: capitalize; }
.ws-badge-requested { background: rgba(232, 194, 104, 0.2); color: #5a4300; }
.ws-badge-confirmed { background: var(--stitch-secondary-container, #92f7c3); color: var(--stitch-on-secondary-container, #00734d); }
.ws-badge-declined, .ws-badge-cancelled, .ws-badge-no_show { background: rgba(186, 26, 26, 0.1); color: #93000a; }
.ws-badge-attended  { background: var(--stitch-primary-container, #1f4d2e); color: #fff; }

.ws-inline-form { display: flex; gap: 0.4rem; }
.btn-sm { padding: 4px 12px !important; font-size: 0.78rem !important; }
.ws-cancel-details { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--stitch-outline-variant, #c1c9bf); }
.ws-cancel-details summary { cursor: pointer; font-size: 0.85rem; color: #93000a; }
.ws-cancel-form label { display: block; margin: 0.7rem 0; font-size: 0.85rem; }
.ws-cancel-form textarea { width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--stitch-outline-variant, #c1c9bf); font: inherit; }
.btn-danger { background: #ba1a1a; color: #fff; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; }
.btn-danger:hover { background: #93000a; }

.ws-past-list { list-style: none; padding: 0; margin: 0; }
.ws-past-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--stitch-outline-variant, #c1c9bf); font-size: 0.9rem; }

.ws-flash { padding: 0.8rem 1rem; background: var(--stitch-secondary-container, #92f7c3); color: var(--stitch-on-secondary-container, #00734d); border-radius: 8px; margin-bottom: 1.5rem; }
.ws-errors { padding: 0.8rem 1rem; background: rgba(186, 26, 26, 0.08); color: #93000a; border-radius: 8px; margin-bottom: 1.5rem; }
.ws-errors p { margin: 0.2rem 0; }
.ws-empty { padding: 2rem 1rem; text-align: center; color: var(--stitch-on-surface-variant, #414941); background: var(--stitch-surface-container-low, #f5f3ef); border-radius: 12px; }

/* ── Create form ────────────────────────────────────────────── */
.ws-form-wrap { padding: 1.5rem 1.25rem 3rem; max-width: 720px; margin: 0 auto; }
.ws-form-wrap h1 { margin: 0 0 0.4rem; color: var(--stitch-primary, #033619); }
.ws-form-lede   { color: var(--stitch-on-surface-variant, #414941); margin-bottom: 1.5rem; }
.ws-form label { display: block; margin-bottom: 1rem; }
.ws-form label span { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.35rem; color: var(--stitch-on-surface, #1b1c1a); }
.ws-form label em { color: var(--stitch-outline, #717971); font-weight: 400; font-style: normal; }
.ws-form input[type="text"], .ws-form input[type="url"], .ws-form input[type="number"],
.ws-form input[type="datetime-local"], .ws-form select, .ws-form textarea {
    width: 100%; padding: 10px 12px; border-radius: 8px;
    border: 1px solid var(--stitch-outline-variant, #c1c9bf); font: inherit; background: #fff;
}
.ws-form-row { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.ws-form-fieldset { border: 1px solid var(--stitch-outline-variant, #c1c9bf); border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1rem; }
.ws-form-fieldset legend { font-weight: 600; padding: 0 0.4rem; font-size: 0.85rem; }

/* ── Mobile tuning ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .ws-facts { grid-template-columns: 1fr; }
    .ws-roster { font-size: 0.82rem; }
    .ws-inline-form { flex-direction: column; }
    .ws-msg { max-width: none; }
}
