/* Spreekbuis Chatbot – Google-stijl | Echt logo */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --sb-red:       #e8574a;
    --sb-red-light: #fdf1f0;
    --sb-red-dim:   #f5ceca;
    --sb-red-deep:  #c93c30;
    --sb-black:     #111111;
    --sb-text:      #202124;
    --sb-grey:      #5f6368;
    --sb-grey-lt:   #f8f9fa;
    --sb-border:    #dfe1e5;
    --sb-white:     #ffffff;
    --sb-font:      'DM Sans', Arial, sans-serif;
    --sb-radius:    24px;
}

/* ── Base ───────────────────────────────────────────────────── */
.sbc-page {
    font-family: var(--sb-font);
    color: var(--sb-text);
    background: var(--sb-white);
    min-height: 500px;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   SEARCH VIEW
═══════════════════════════════════════════════════════════ */
.sbc-search-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    padding: 40px 20px 60px;
    animation: sbc-fadein 0.4s ease;
}

@keyframes sbc-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sbc-center-wrap {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* Logo */
.sbc-logo-wrap {
    display: flex;
    justify-content: center;
}

.sbc-logo-img {
    width: 64px;
    max-width: 90vw;
    height: auto;
    display: block;
    /* Strip the white background so it blends perfectly */
    mix-blend-mode: multiply;
}

/* Search bar */
.sbc-searchbar-wrap { width: 100%; }

.sbc-searchbar {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    padding: 10px 12px 10px 20px;
    background: var(--sb-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.sbc-searchbar:hover,
.sbc-searchbar:focus-within {
    box-shadow: 0 3px 14px rgba(0,0,0,0.13);
    border-color: transparent;
}

.sbc-search-icon { flex-shrink: 0; width: 20px; height: 20px; }

.sbc-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--sb-font);
    font-size: 16px;
    color: var(--sb-black);
    background: transparent;
    line-height: 1.5;
    min-width: 0;
}

.sbc-input::placeholder { color: #aaa; }

.sbc-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--sb-red);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
}

.sbc-send-btn:hover    { background: var(--sb-red-deep); transform: scale(1.06); }
.sbc-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.sbc-send-btn svg { width: 14px; height: 14px; stroke: white; }

/* Chips */
.sbc-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}

.sbc-chip {
    background: var(--sb-white);
    border: 1px solid var(--sb-border);
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13px;
    font-family: var(--sb-font);
    color: var(--sb-text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.sbc-chip:hover {
    background: var(--sb-red-light);
    border-color: var(--sb-red-dim);
    color: var(--sb-red-deep);
}

/* Tagline */
.sbc-tagline {
    font-size: 13px;
    color: var(--sb-grey);
    text-align: center;
    margin: 0;
    line-height: 1.5;
}
.sbc-tagline strong { color: var(--sb-black); }

/* ═══════════════════════════════════════════════════════════
   RESULTS VIEW
═══════════════════════════════════════════════════════════ */
.sbc-results-view { animation: sbc-fadein 0.3s ease; }

/* Top bar */
.sbc-topbar {
    background: var(--sb-white);
    padding: 10px 20px 0;
}

.sbc-topbar-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 10px;
}

.sbc-topbar-logo-img {
    width: 130px;
    height: auto;
    display: block;
    flex-shrink: 0;
    mix-blend-mode: multiply;
    cursor: pointer;
    transition: opacity 0.15s;
}

.sbc-topbar-logo-img:hover { opacity: 0.8; }

.sbc-topbar-searchbar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    padding: 8px 10px 8px 16px;
    background: var(--sb-white);
    max-width: 500px;
    transition: box-shadow 0.2s;
}

.sbc-topbar-searchbar:focus-within {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-color: transparent;
}

.sbc-input-top {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--sb-font);
    font-size: 15px;
    color: var(--sb-black);
    background: transparent;
    min-width: 0;
}

.sbc-input-top::placeholder { color: #aaa; }

.sbc-send-btn-top {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sb-red);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.sbc-send-btn-top:hover    { background: var(--sb-red-deep); }
.sbc-send-btn-top:disabled { opacity: 0.4; cursor: not-allowed; }

.sbc-send-btn-top svg { width: 13px; height: 13px; stroke: white; }

.sbc-topbar-border {
    height: 1px;
    background: var(--sb-border);
    margin: 0 -20px;
}

/* Results area — offset like Google */
.sbc-results-content {
    max-width: 660px;
    padding: 24px 20px 24px 168px;
}

@media (max-width: 640px) {
    .sbc-results-content { padding: 16px; }
    .sbc-topbar-logo-img { width: 90px; }
    .sbc-logo-img { width: 240px; }
}

/* Result entries */
.sbc-result-entry {
    margin-bottom: 32px;
    animation: sbc-fadein 0.3s ease;
}

/* Searching indicator */
.sbc-searching {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sb-grey);
    font-size: 14px;
    padding: 4px 0;
}

.sbc-searching-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sb-red);
    margin: 0 2px;
    animation: sbc-bounce 1.2s infinite;
    opacity: 0.3;
}
.sbc-searching-dots span:nth-child(2) { animation-delay: 0.2s; }
.sbc-searching-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes sbc-bounce {
    0%, 80%, 100% { transform: scale(0.75); opacity: 0.3; }
    40%            { transform: scale(1.1); opacity: 1; }
}

/* Question heading */
.sbc-question-label {
    font-size: 12px;
    color: var(--sb-grey);
    margin: 0 0 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.sbc-question-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--sb-black);
    margin: 0 0 16px;
    line-height: 1.3;
}

/* Answer */
.sbc-answer-block {
    font-size: 15px;
    color: var(--sb-text);
    line-height: 1.68;
    margin-bottom: 18px;
    padding: 16px 20px;
    background: var(--sb-red-light);
    border-left: 3px solid var(--sb-red);
}

/* Sources */
.sbc-sources-section { margin-top: 18px; }

.sbc-sources-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--sb-grey);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.sbc-source-card {
    padding: 10px 0;
    border-bottom: 1px solid var(--sb-border);
}
.sbc-source-card:last-child { border-bottom: none; }

.sbc-source-domain {
    font-size: 12px;
    color: var(--sb-grey);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.sbc-source-favicon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: var(--sb-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sbc-source-favicon svg { width: 10px; height: 10px; stroke: white; }

.sbc-source-title {
    font-size: 15px;
    color: #1a0dab;
    text-decoration: none;
    font-weight: 500;
    display: block;
    line-height: 1.3;
}
.sbc-source-title:hover { text-decoration: underline; color: var(--sb-red-deep); }

/* Divider + follow-up */
.sbc-divider {
    border: none;
    border-top: 1px solid var(--sb-border);
    margin: 28px 0 24px;
}

.sbc-followup-label {
    font-size: 12px;
    color: var(--sb-grey);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
