/* ══════════════════════════════════════════════════════
   Summer Camp Recommender — v1.6
   Colors: Primary #4db8cc | Secondary #ff9800
   ══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --scr-primary:   #4db8cc;
    --scr-primary-d: #3a9fb3;   /* darker primary for hover */
    --scr-secondary: #ff9800;
    --scr-secondary-d: #e68900;
    --scr-ink:     #1a1a2e;
    --scr-smoke:   #6b7280;
    --scr-border:  #e5e7eb;
    --scr-bg:      #f9fafb;
    --scr-white:   #ffffff;
    --scr-shadow:  0 4px 24px rgba(0,0,0,0.08);
    --scr-font:    'Inter', system-ui, sans-serif;
    --scr-radius:  16px;
}

/* ── Reset & wrapper ─────────────────────────────────── */
.scr-wrapper * { box-sizing: border-box; }
.scr-wrapper {
    font-family: var(--scr-font);
    color: var(--scr-ink);
    max-width: 820px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Quiz card ───────────────────────────────────────── */
.scr-quiz {
    background: var(--scr-white);
    border-radius: 24px;
    padding: 48px 52px 44px;
    box-shadow: var(--scr-shadow);
    position: relative;
    overflow: hidden;
}
.scr-quiz::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--scr-primary), var(--scr-secondary));
}
@media (max-width: 640px) { .scr-quiz { padding: 32px 20px 28px; } }

/* ── Header ──────────────────────────────────────────── */
.scr-tag {
    display: inline-block;
    background: var(--scr-primary);
    color: var(--scr-white);
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 4px 14px; border-radius: 100px; margin-bottom: 16px;
}
.scr-quiz__title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800; line-height: 1.15; margin: 0 0 12px; color: var(--scr-ink);
}
.scr-quiz__title em { font-style: normal; color: var(--scr-primary); }
.scr-quiz__sub { font-size: 15px; color: var(--scr-smoke); margin: 0 0 36px; line-height: 1.6; font-weight: 400; }

/* ── Step indicators ─────────────────────────────────── */
.scr-steps { display: flex; align-items: center; margin-bottom: 36px; }
.scr-step {
    width: 32px; height: 32px; border-radius: 50%;
    border: 2px solid var(--scr-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: var(--scr-smoke);
    transition: all 0.25s; flex-shrink: 0;
}
.scr-step.active { background: var(--scr-primary); border-color: var(--scr-primary); color: var(--scr-white); }
.scr-step.done   { background: var(--scr-secondary); border-color: var(--scr-secondary); color: var(--scr-white); }
.scr-step-line   { flex: 1; height: 2px; background: var(--scr-border); transition: background 0.25s; }
.scr-step-line.done { background: var(--scr-secondary); }

/* ── Panels ──────────────────────────────────────────── */
.scr-panel { display: none; animation: scrFadeSlide 0.25s ease; }
.scr-panel.active { display: block; }
@keyframes scrFadeSlide {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Label ───────────────────────────────────────────── */
.scr-label {
    display: block; font-size: 18px; font-weight: 700;
    margin-bottom: 6px; color: var(--scr-ink); line-height: 1.3;
}
.scr-hint { font-size: 13px; color: var(--scr-smoke); margin: 0; }

/* ── Age picker ──────────────────────────────────────── */
.scr-age-picker { display: flex; align-items: center; gap: 28px; margin: 24px 0 12px; }
.scr-age-btn {
    width: 52px; height: 52px; border-radius: 50%;
    border: 2px solid var(--scr-primary); background: transparent;
    font-size: 22px; color: var(--scr-primary);
    cursor: pointer; font-weight: 400; transition: all 0.2s; line-height: 1;
}
.scr-age-btn:hover { background: var(--scr-primary); color: var(--scr-white); }
.scr-age-display { text-align: center; min-width: 80px; }
.scr-age-display span {
    display: block; font-size: 72px; font-weight: 800; line-height: 1; color: var(--scr-primary);
}
.scr-age-display small { font-size: 12px; color: var(--scr-smoke); text-transform: uppercase; letter-spacing: 0.08em; }
.scr-age-hint { display: none; }

/* ══════════════════════════════════════════════════════
   CHIPS — interests & locations
   Desktop: 3-col grid
   Mobile: 1-col stacked list
   ══════════════════════════════════════════════════════ */
.scr-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}
/* Location chips — more items, slightly smaller */
.scr-chips--locations {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 700px) {
    .scr-chips--locations { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .scr-chips { grid-template-columns: 1fr; gap: 6px; }
    .scr-chips--locations { grid-template-columns: repeat(2, 1fr); }
}

/* Suggest chip — always full width */
.scr-chip--suggest { grid-column: 1 / -1; margin-top: 4px; }

.scr-chip { cursor: pointer; display: block; }
.scr-chip input[type="checkbox"] {
    position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0;
}
.scr-chip span {
    display: flex; align-items: center; justify-content: center;
    padding: 11px 14px; border-radius: 10px;
    border: 1.5px solid var(--scr-border);
    background: var(--scr-white);
    font-size: 13px; font-weight: 500; color: var(--scr-ink);
    transition: all 0.15s; user-select: none;
    text-align: center; min-height: 44px; line-height: 1.3;
}
@media (max-width: 600px) {
    .scr-chip span { justify-content: flex-start; text-align: left; padding: 13px 16px; font-size: 14px; }
    .scr-chips--locations .scr-chip span { justify-content: center; text-align: center; }
}
.scr-chip input:checked + span {
    background: var(--scr-primary);
    border-color: var(--scr-primary);
    color: var(--scr-white); font-weight: 600;
}
.scr-chip:hover span { border-color: var(--scr-primary); background: #f0fbfd; }
.scr-chip input:checked + span:hover { background: var(--scr-primary-d); }

/* Suggest chip special style */
.scr-chip--suggest span {
    border-style: dashed; border-color: var(--scr-secondary);
    color: var(--scr-secondary); font-weight: 600; background: #fff8f0;
    justify-content: center;
}
.scr-chip--suggest:hover span { background: var(--scr-secondary); border-color: var(--scr-secondary); color: var(--scr-white); border-style: solid; }
.scr-chip--suggest input:checked + span { background: var(--scr-secondary); border-color: var(--scr-secondary); color: var(--scr-white); border-style: solid; }

.scr-chips-hint { margin-top: 10px; font-size: 13px; color: var(--scr-primary); font-weight: 600; }

/* ── Nav buttons ─────────────────────────────────────── */
.scr-nav {
    display: flex; align-items: center; gap: 12px;
    margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--scr-border);
}
.scr-btn {
    padding: 13px 28px; border-radius: 100px;
    font-family: var(--scr-font); font-size: 15px; font-weight: 600;
    cursor: pointer; border: 2px solid transparent; transition: all 0.2s; white-space: nowrap;
}
.scr-btn--ghost { background: transparent; border-color: var(--scr-border); color: var(--scr-smoke); }
.scr-btn--ghost:hover { border-color: var(--scr-ink); color: var(--scr-ink); }
.scr-btn--primary { background: var(--scr-primary); color: var(--scr-white); margin-left: auto; border-color: var(--scr-primary); }
.scr-btn--primary:hover { background: var(--scr-primary-d); border-color: var(--scr-primary-d); }
.scr-btn--submit {
    background: var(--scr-secondary); color: #fff !important; margin-left: auto;
    font-size: 15px; padding: 14px 36px; text-decoration: none;
    display: inline-block; border-color: var(--scr-secondary);
}
.scr-btn--submit:hover { background: var(--scr-secondary-d); border-color: var(--scr-secondary-d); color: #fff !important; }

/* ══════════════════════════════════════════════════════
   RESULTS HEADER
   ══════════════════════════════════════════════════════ */
.scr-results { animation: scrFadeIn 0.3s ease; margin-top: 8px; }
@keyframes scrFadeIn { from { opacity: 0; } to { opacity: 1; } }

.scr-results__header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.scr-results__actions { display: flex; align-items: center; gap: 16px; }
.scr-results__meta { font-size: 15px; font-weight: 600; color: var(--scr-ink); }
.scr-results__meta span { color: var(--scr-primary); }

.scr-back-link {
    background: none; border: none; font-family: var(--scr-font);
    font-size: 14px; color: var(--scr-smoke); cursor: pointer; padding: 0; transition: color 0.2s;
}
.scr-back-link:hover { color: var(--scr-ink); }

.scr-share-btn {
    display: flex; align-items: center; gap: 6px; background: transparent;
    border: 1.5px solid var(--scr-border); border-radius: 100px; padding: 7px 16px;
    font-family: var(--scr-font); font-size: 13px; color: var(--scr-smoke);
    cursor: pointer; transition: all 0.2s;
}
.scr-share-btn:hover { border-color: var(--scr-primary); color: var(--scr-primary); }

.scr-toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
    background: var(--scr-ink); color: var(--scr-white);
    padding: 11px 22px; border-radius: 100px; font-size: 14px; font-weight: 500;
    z-index: 9999; box-shadow: 0 4px 20px rgba(0,0,0,0.2); pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   CAMP CARDS — inspired by Image 2
   No image, no excerpt, no emoji
   Layout: Tag → Title → Organizer • Location → Date → View →
   ══════════════════════════════════════════════════════ */
.scr-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 700px) { .scr-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .scr-cards { grid-template-columns: 1fr; } }

.scr-card {
    background: var(--scr-white);
    border-radius: 16px;
    border: 1.5px solid var(--scr-border);
    padding: 20px;
    display: flex; flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    animation: scrCardIn 0.35s ease both;
    min-height: 160px;
}
.scr-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-2px); }
@keyframes scrCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.scr-card:nth-child(2) { animation-delay: 0.05s; }
.scr-card:nth-child(3) { animation-delay: 0.10s; }
.scr-card:nth-child(4) { animation-delay: 0.15s; }
.scr-card:nth-child(5) { animation-delay: 0.20s; }
.scr-card:nth-child(6) { animation-delay: 0.25s; }

/* Category tag — top of card */
.scr-card__tag-row { margin-bottom: 10px; }
.scr-card__cat {
    display: inline-block;
    font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
    color: var(--scr-smoke); text-transform: none;
    background: var(--scr-bg); border-radius: 6px;
    padding: 3px 10px;
}
.scr-card__cat--best { background: #fff3e0; color: var(--scr-secondary); }

/* Title */
.scr-card__title {
    font-size: 15px; font-weight: 700; color: var(--scr-ink);
    margin: 0 0 6px; line-height: 1.3;
    /* allow 2-line wrap, then clip */
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Organizer • Location */
.scr-card__meta-line {
    font-size: 12px; color: var(--scr-smoke); margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scr-card__meta-sep { margin: 0 4px; color: var(--scr-border); }

/* Date line */
.scr-card__date {
    font-size: 12px; color: var(--scr-smoke); margin-bottom: 0;
}

/* Spacer pushes footer to bottom */
.scr-card__spacer { flex: 1; min-height: 12px; }

/* Footer: price left, View right */
.scr-card__footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--scr-border);
}
.scr-card__price { font-size: 14px; font-weight: 700; color: var(--scr-secondary); }
.scr-card__view {
    font-size: 13px; font-weight: 600; color: var(--scr-primary);
    text-decoration: none; transition: color 0.2s; white-space: nowrap;
}
.scr-card__view:hover { color: var(--scr-primary-d); }

/* ── No results ──────────────────────────────────────── */
.scr-no-results { text-align: center; padding: 60px 24px; background: var(--scr-white); border-radius: 20px; border: 1.5px solid var(--scr-border); }
.scr-no-results h3 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.scr-no-results p  { color: var(--scr-smoke); font-size: 15px; margin: 0 0 24px; }

/* ══════════════════════════════════════════════════════
   LOGIN GATE
   ══════════════════════════════════════════════════════ */
.scr-login-gate {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px); z-index: 1000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.scr-login-gate__box {
    background: var(--scr-white); border-radius: 20px; padding: 48px 40px;
    max-width: 420px; width: 100%; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15); animation: scrFadeSlide 0.3s ease;
}
@media (max-width: 480px) { .scr-login-gate__box { padding: 32px 24px; } }

.scr-login-gate__box h3 { font-size: 24px; font-weight: 800; margin: 0 0 10px; color: var(--scr-ink); }
.scr-login-gate__box p { font-size: 14px; color: var(--scr-smoke); line-height: 1.6; margin: 0 0 28px; }
.scr-login-gate__btn {
    display: block; width: 100%; box-sizing: border-box;
    background: var(--scr-secondary); color: #fff !important; text-decoration: none !important;
    padding: 15px 28px; border-radius: 100px; font-family: var(--scr-font);
    font-size: 15px; font-weight: 700; text-align: center; margin-bottom: 14px;
    transition: background 0.2s; border: none; cursor: pointer;
}
.scr-login-gate__btn:hover { background: var(--scr-secondary-d); color: #fff !important; }
.scr-login-gate__skip {
    background: none; border: none; font-family: var(--scr-font);
    font-size: 13px; color: var(--scr-smoke); cursor: pointer; padding: 4px;
    text-decoration: underline; text-underline-offset: 3px;
    display: block; margin: 0 auto; transition: color 0.2s;
}
.scr-login-gate__skip:hover { color: var(--scr-ink); }
