@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,500,700);

/* Feature request board — server-rendered, styled to match the Doozy landing
   page (Roboto, brand #0290C3). Layout is a brand header strip over a light
   content body. Component classes (.fb-*) are shared by the public pages and the
   admin tables (which render inside the default site layout). */

* { box-sizing: border-box; }

/* ── Page shell (public pages, via _BoardLayout) ─────────────────────────── */
.fbpage {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0290C322;
    color: #243038;
    font-family: "Roboto", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fbpage__hero { background: #0290C3; color: #ffffff; }
.fbpage__hero-inner { max-width: 56rem; margin: 0 auto; padding: 1.5rem 1.25rem; }
.fbpage__brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: #ffffff; }
.fbpage__logo { width: 3.25rem; height: 3.25rem; flex: 0 0 auto; }
.fbpage__brand-title { display: block; font-size: 1.6rem; font-weight: 500; line-height: 1.2; }
.fbpage__brand-tagline { display: block; font-size: 0.95rem; font-weight: 400; opacity: 0.9; margin-top: 0.15rem; }

.fbpage__body { flex: 1 1 auto; }
.fbpage__container { max-width: 56rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.fbpage__footer { text-align: center; color: #8aa0ad; font-size: 0.75rem; padding: 1rem; }
.fbpage__footer p { margin: 0; }

/* Language selector */
.lang-selector { display: flex; gap: 0.4rem; align-items: center; justify-content: center; margin-top: 0.6rem; font-size: 0.85rem; }
.lang-selector__icon { opacity: 0.8; }
.lang-selector__select { color: inherit; background: #ffffff; border: 1px solid #cdd7dd; border-radius: 0.3rem; padding: 0.3rem 0.5rem; font: inherit; font-size: 0.85rem; cursor: pointer; }
.lang-selector__select option { color: #243038; }
.lang-selector__go { color: inherit; background: #ffffff; border: 1px solid #cdd7dd; border-radius: 0.3rem; padding: 0.3rem 0.6rem; font: inherit; cursor: pointer; }
.lang-selector__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Wide variant + header nav (admin pages) */
.fbpage__hero-inner--wide {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem 1.5rem; flex-wrap: wrap; max-width: 72rem;
}
.fbpage__container--wide { max-width: 72rem; }
.fbpage__nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.fbpage__nav a { color: #ffffff; text-decoration: none; font-weight: 500; opacity: 0.9; }
.fbpage__nav a:hover { opacity: 1; text-decoration: underline; }

/* ── Headings ────────────────────────────────────────────────────────────── */
.fb-h1 { margin: 0 0 0.25rem; font-size: 1.6rem; font-weight: 500; }
.fb-sub { margin: 0 0 1.5rem; color: #1d1f20; line-height: 1.5; }
.fb-h2 { margin: 2rem 0 0.85rem; font-size: 1.25rem; font-weight: 500; }

/* ── Panels (forms) — echoes landing__actions card ───────────────────────── */
.fb-panel {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

/* ── Feature cards ───────────────────────────────────────────────────────── */
.fb-feature {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
}
.fb-feature__votes {
    flex: 0 0 auto;
    text-align: center;
    min-width: 3.75rem;
    padding: 0.5rem 0.4rem;
    border-radius: 0.5rem;
    background: #e8f4fa;
}
.fb-feature__votes-count { display: block; font-size: 1.5rem; font-weight: 700; color: #0290C3; line-height: 1.1; }
.fb-feature__votes-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: #6b93a6; }
.fb-feature__body { flex: 1 1 auto; min-width: 0; }
.fb-feature__title { margin: 0 0 0.25rem; font-size: 1.1rem; font-weight: 500; }
.fb-feature__desc { margin: 0 0 0.75rem; color: #55636c; line-height: 1.5; }

/* ── Status badges ───────────────────────────────────────────────────────── */
.fb-status {
    display: inline-block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem; border-radius: 0.65rem; background: #eef1f3; color: #5a6b76;
    margin-left: 0.5rem; vertical-align: middle; font-weight: 500;
}
.fb-status--planned { background: #e7f0ff; color: #2b5fb0; }
.fb-status--progress { background: #fff3d6; color: #946200; }
.fb-status--shipped { background: #e3f7e8; color: #1f7a3d; }
.fb-status--declined { background: #f7e3e3; color: #9a2b2b; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.fb-btn {
    display: inline-block; border: 1px solid transparent; border-radius: 0.35rem;
    padding: 0.6rem 1.15rem; font-size: 0.95rem; font-weight: 500; font-family: inherit;
    cursor: pointer; text-decoration: none; transition: opacity 0.2s ease, background 0.2s ease;
    background: #eef1f3; color: #243038;
}
.fb-btn:hover { opacity: 0.9; }
.fb-btn--primary { background: #0290C3; color: #ffffff; }
.fb-btn--secondary { background: #ffffff; color: #0290C3; border-color: #0290C3; }
.fb-inline { display: inline; }
.fb-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.fb-field { margin-bottom: 1rem; }
.fb-field label { display: block; font-weight: 500; margin-bottom: 0.3rem; }
.fb-field input[type=text],
.fb-field input[type=email],
.fb-field input[type=number],
.fb-field select,
.fb-field textarea {
    width: 100%; padding: 0.6rem 0.7rem; border: 1px solid #cdd7de; border-radius: 0.35rem;
    font-size: 0.95rem; font-family: inherit; background: #fff; color: #243038;
}
.fb-field input:focus, .fb-field select:focus, .fb-field textarea:focus {
    outline: none; border-color: #0290C3; box-shadow: 0 0 0 2px rgba(2,144,195,0.15);
}

/* Allocation rows (donate): feature name + small number input */
.fb-alloc-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid #eef1f3; }
.fb-alloc-row:last-of-type { border-bottom: none; }
.fb-alloc-row label { margin: 0; font-weight: 400; }
.fb-alloc-row input[type=number] { width: 5rem; flex: 0 0 auto; }

/* ── Claim code + pay links ──────────────────────────────────────────────── */
.fb-claimcode {
    font-family: ui-monospace, "Courier New", monospace; font-size: 1.5rem; font-weight: 700;
    letter-spacing: 0.1em; background: #e8f4fa; color: #0a5e7e; padding: 0.5rem 1rem;
    border-radius: 0.5rem; display: inline-block;
}
.fb-pay-links { margin: 1.25rem 0; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Lists / misc ────────────────────────────────────────────────────────── */
.fb-alloc { margin: 0.25rem 0 0; padding-left: 1.1rem; line-height: 1.7; }
.fb-empty { color: #6b7a83; font-style: italic; }
.fb-note { color: #6b7a83; font-size: 0.88rem; }
.fb-stat { font-size: 1.05rem; margin: 0.5rem 0 1rem; }
.fb-stat strong { color: #0290C3; }

/* ── Admin (renders inside the default site layout) ──────────────────────── */
.fb-admin { max-width: 60rem; margin: 1.5rem auto; padding: 0 1rem; font-family: "Roboto", sans-serif; color: #243038; }
.fb-table { width: 100%; border-collapse: collapse; }
.fb-table th, .fb-table td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid #eef1f3; font-size: 0.9rem; vertical-align: top; }
.fb-table th { color: #5a6b76; font-weight: 500; }

@media (max-width: 480px) {
    .fbpage__brand-title { font-size: 1.35rem; }
    .fbpage__logo { width: 2.75rem; height: 2.75rem; }
    .fbpage__container { padding: 1.5rem 1rem 2.5rem; }
}
