/* =========
   DESIGN-TOKENS
   ========= */
:root {
    --bg-page: #f4f5f7;
    --bg-header: rgba(255, 255, 255, 0.92);
    --bg-card: #ffffff;
    --bg-card-alt: #f8f9fb;

    --border-subtle: #e0e3ea;
    --border-strong: #3a3a3a;

    --text-main: #111827;
    --text-muted: #6b7280;
    --text-soft: #9ca3af;
    --text-link: #0b6bdc;
    --danger: #dc2626;

    --accent: #0b6bdc;
    --accent-soft: #e3f0ff;

    --radius-card: 22px;
    --radius-field: 4px;
    --header-height: 76px;

    /* Nya färger från wizard */
    --accent-strong: rgba(37, 99, 235, 0.18);
    --accent-pill-bg: #eef2ff;
    --accent-pill-text: #4338ca;

    --wizard-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
}

/* =========
   GLOBAL RESET + BODY
   ========= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    background: radial-gradient(circle at top, #ffffff 0, #f4f5f7 52%, #eef0f5 100%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.sponsor-match-finder {
    padding: 30px 0 48px;
}

.sponsor-match-finder__container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.sponsor-match-finder__hero,
.sponsor-match-finder__start-card,
.sponsor-match-finder__summary,
.sponsor-match-finder__filters,
.sponsor-match-finder__results,
.sponsor-match-finder__detail,
.sponsor-match-finder__empty {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.sponsor-match-finder__hero,
.sponsor-match-finder__summary,
.sponsor-match-finder__filters-head,
.sponsor-match-finder__detail-head,
.sponsor-match-finder__results-head,
.sponsor-match-finder__card-head,
.sponsor-match-finder__card-actions,
.sponsor-match-finder__cta-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.sponsor-match-finder__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.sponsor-match-finder__title,
.sponsor-match-finder__summary h2,
.sponsor-match-finder__filters h2,
.sponsor-match-finder__results h2,
.sponsor-match-finder__detail-title,
.sponsor-match-finder__start-card h2,
.sponsor-match-finder__empty h2 {
    margin: 0;
    color: #0f172a;
}

.sponsor-match-finder__lead,
.sponsor-match-finder__summary p,
.sponsor-match-finder__detail-lead,
.sponsor-match-finder__start-card p,
.sponsor-match-finder__empty p {
    margin: 10px 0 0;
    color: #475569;
    line-height: 1.6;
}

.sponsor-match-finder__hero-side {
    min-width: 280px;
    display: grid;
    gap: 12px;
    justify-items: end;
}

.sponsor-match-finder__hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.sponsor-match-finder__hero-button {
    min-width: 180px;
}

.sponsor-match-finder__hero-meta,
.sponsor-match-finder__chips,
.sponsor-match-finder__card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sponsor-match-finder__hero-meta span,
.sponsor-match-finder__chip,
.sponsor-match-finder__card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #d9e2ef;
    color: #334155;
    font-size: 13px;
}

.sponsor-match-finder__chip {
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.sponsor-match-finder__chip:hover {
    border-color: #0f4c81;
    color: #0f4c81;
    background: #eff6ff;
}

.sponsor-match-finder__start-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 18px;
    align-items: center;
}

.sponsor-match-finder__start-note {
    color: #0f4c81;
}

.sponsor-match-finder__start-points,
.sponsor-match-finder__summary-stats,
.sponsor-match-finder__facts,
.sponsor-match-finder__detail-grid {
    display: grid;
    gap: 12px;
}

.sponsor-match-finder__start-points,
.sponsor-match-finder__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sponsor-match-finder__summary-stats {
    min-width: min(100%, 560px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sponsor-match-finder__point,
.sponsor-match-finder__summary-stat,
.sponsor-match-finder__facts div,
.sponsor-match-finder__panel,
.sponsor-match-finder__card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

.sponsor-match-finder__point,
.sponsor-match-finder__summary-stat,
.sponsor-match-finder__facts div {
    padding: 16px;
    display: grid;
    gap: 6px;
}

.sponsor-match-finder__point strong,
.sponsor-match-finder__summary-stat span,
.sponsor-match-finder__facts span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.sponsor-match-finder__point span,
.sponsor-match-finder__facts strong {
    color: #0f172a;
}

.sponsor-match-finder__summary-stat strong {
    font-size: 24px;
    line-height: 1.1;
    color: #0f172a;
}

.sponsor-match-finder__filters-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
    gap: 12px;
    margin-top: 18px;
}

.sponsor-match-finder__field {
    display: grid;
    gap: 8px;
}

.sponsor-match-finder__field span {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.sponsor-match-finder__field input,
.sponsor-match-finder__field select {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 0 14px;
    font: inherit;
    color: #0f172a;
}

.sponsor-match-finder__filters-submit {
    align-self: end;
    min-height: 46px;
}

.sponsor-match-finder__results-count {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #0f4c81;
    font-size: 13px;
    font-weight: 700;
}

.sponsor-match-finder__list {
    display: grid;
    gap: 12px;
}

.sponsor-match-finder__list--simple {
    gap: 8px;
}

.sponsor-match-finder__card {
    padding: 18px;
    background: #fff;
}

.sponsor-match-finder__simple-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-height: 320px;
    min-height: 86px;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    color: #0f172a;
    overflow: hidden;
    transition: border-color 0.18s ease, border-width 0.3s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.26s ease, max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.sponsor-match-finder__simple-row.is-removing {
    max-height: 0;
    min-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
}

.sponsor-match-finder__simple-row:hover {
    border-color: #0f4c81;
    box-shadow: 0 12px 24px rgba(15, 76, 129, 0.08);
    transform: translateY(-1px);
}

.sponsor-match-finder__simple-main {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.sponsor-match-finder__simple-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.sponsor-match-finder__simple-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sponsor-match-finder__simple-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #d9e2ef;
    color: #475569;
    font-size: 13px;
}

.sponsor-match-finder__simple-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.sponsor-match-finder__simple-button {
    min-height: 42px;
    white-space: nowrap;
}

.sponsor-match-finder__simple-button--info {
    text-decoration: none;
}

.sponsor-match-finder__simple-arrow {
    display: none;
}

.sponsor-match-finder__card-title {
    margin: 0;
    color: #0f172a;
}

.sponsor-match-finder__card-meta {
    margin-top: 10px;
}

.sponsor-match-finder__badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.sponsor-match-finder__badge--high {
    background: #dcfce7;
    color: #166534;
}

.sponsor-match-finder__badge--relevant {
    background: #eff6ff;
    color: #0f4c81;
}

.sponsor-match-finder__badge--possible {
    background: #fef3c7;
    color: #92400e;
}

.sponsor-match-finder__card-reason,
.sponsor-match-finder__card-idea,
.sponsor-match-finder__panel p {
    margin: 14px 0 0;
    color: #475569;
    line-height: 1.6;
}

.sponsor-match-finder__card-actions,
.sponsor-match-finder__cta-row {
    margin-top: 16px;
    align-items: center;
}

.sponsor-match-finder__detail-actions {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.sponsor-match-finder__detail-grid {
    margin-top: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sponsor-match-finder__panel {
    padding: 18px;
}

.sponsor-match-finder__reason-list {
    margin: 14px 0 0;
    padding-left: 18px;
    color: #475569;
    display: grid;
    gap: 8px;
}

.sponsor-match-finder__info-list {
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
}

.sponsor-match-finder__info-row {
    display: grid;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.sponsor-match-finder__info-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.sponsor-match-finder__info-row dt {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.sponsor-match-finder__info-row dd {
    margin: 0;
    color: #0f172a;
    line-height: 1.5;
    word-break: break-word;
}

.sponsor-match-finder__panel-price {
    font-weight: 700;
    color: #0f172a;
}

.sponsor-match-finder__error {
    padding: 14px 16px;
    border-radius: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

@media (max-width: 1100px) {
    .sponsor-match-finder__filters-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sponsor-match-finder__filters-submit {
        width: 100%;
    }

    .sponsor-match-finder__start-card,
    .sponsor-match-finder__summary,
    .sponsor-match-finder__detail-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-match-finder__summary-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .sponsor-match-finder__hero,
    .sponsor-match-finder__filters-head,
    .sponsor-match-finder__results-head,
    .sponsor-match-finder__card-head,
    .sponsor-match-finder__card-actions,
    .sponsor-match-finder__cta-row,
    .sponsor-match-finder__detail-head {
        flex-direction: column;
        align-items: stretch;
    }

    .sponsor-match-finder__hero-side,
    .sponsor-match-finder__detail-actions {
        justify-items: stretch;
        min-width: 0;
    }

    .sponsor-match-finder__hero-actions {
        justify-content: stretch;
    }

    .sponsor-match-finder__hero-actions form,
    .sponsor-match-finder__hero-button {
        width: 100%;
    }

    .sponsor-match-finder__start-points,
    .sponsor-match-finder__summary-stats,
    .sponsor-match-finder__facts,
    .sponsor-match-finder__detail-grid,
    .sponsor-match-finder__filters-form {
        grid-template-columns: 1fr;
    }

    .sponsor-match-finder__simple-row,
    .sponsor-match-finder__simple-actions {
        align-items: stretch;
    }

    .sponsor-match-finder__simple-row {
        flex-direction: column;
    }

    .sponsor-match-finder__simple-actions {
        justify-content: stretch;
    }

    .sponsor-match-finder__simple-button {
        width: 100%;
        text-align: center;
    }
}

