/* =============================================================
   SCANS.CSS — Heart Workx Google Website Scanner v4
   Één scherm, spinner centraal, dashboard na scan
   ============================================================= */
/* ── PAGINA ──────────────────────────────────────────────────── */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.gs-pagina {
    background: linear-gradient(160deg, #2c4a52 0%, #1e333a 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* Scherm vult beschikbare hoogte tussen header en footer */
.gs-scherm {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ── TOPBALK ─────────────────────────────────────────────────── */
.gs-topbalk {
    padding: 32px 24px 20px;
    flex-shrink: 0;
}
.gs-topbalk-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* ── GOOGLE BADGE ────────────────────────────────────────────── */
.gs-google-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    margin-bottom: 16px;
}

/* ── TITEL ───────────────────────────────────────────────────── */
.gs-titel {
    font-family: var(--display-font, Georgia, serif);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 400;
    color: #faf7f2;
    line-height: 1.25;
    margin-bottom: 24px;
}

/* ── INVOER ──────────────────────────────────────────────────── */
.gs-invoer-wrap { display: flex; flex-direction: column; gap: 10px; }
.gs-invoer-rij {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.gs-invoer-veld {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.2);
    overflow: hidden;
    transition: border-color 0.2s;
    min-width: 0;
}
.gs-invoer-veld:focus-within { border-color: #e8c9a0; }
.gs-invoer-icon { padding: 0 12px; font-size: 1rem; flex-shrink: 0; }
.gs-invoer-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 12px 13px 0;
    font-size: 0.97rem;
    color: #1a1a1a;
    background: transparent;
    min-width: 0;
}
.gs-scan-knop {
    background: #a32508;
    color: #faf7f2;
    border: none;
    border-radius: 10px;
    padding: 13px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.gs-scan-knop:hover { background: #8a1f06; transform: translateY(-1px); }
.gs-invoer-hint { font-size: 0.75rem; color: rgba(232,201,160,0.6); margin: 0; }
.gs-fout {
    background: rgba(255,78,66,0.15);
    border: 1px solid rgba(255,78,66,0.4);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: #ffa09a;
    margin: 0;
}

/* ── MIDDEN ──────────────────────────────────────────────────── */
.gs-midden {
    display: flex;
    flex-direction: column;
    padding: 0 24px 24px;
}

/* ── SPINNER WRAP ────────────────────────────────────────────── */
.gs-spinner-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 32px 0;
}

/* ── RADAR ───────────────────────────────────────────────────── */
.gs-radar {
    position: relative;
    width: 240px;
    height: 240px;
}
.gs-radar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(232,201,160,0.15);
}
.gs-radar-ring.r1 { inset: 24px; }
.gs-radar-ring.r2 { inset: 52px; }
.gs-radar-ring.r3 { inset: 80px; }
.gs-radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(232,201,160,0.3) 100%);
    animation: gs-sweep 2.5s linear infinite;
    animation-play-state: paused;
}
@keyframes gs-sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.gs-radar-kern {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gs-ring-arc { transition: stroke-dashoffset 1s ease-out; }

/* ── SPINNER TEKST ───────────────────────────────────────────── */
.gs-spinner-tekst { text-align: center; }
.gs-laden-url { font-size: 0.82rem; color: #e8c9a0; margin: 0 0 6px; word-break: break-all; }
.gs-laden-bericht { font-size: 1rem; color: #faf7f2; margin: 0 0 16px; }
.gs-laden-stappen { display: inline-flex; flex-direction: column; gap: 8px; text-align: left; }
.gs-stap { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: rgba(200,221,226,0.5); transition: color 0.3s; }
.gs-stap.bezig { color: #e8c9a0; }
.gs-stap.klaar { color: #0cce6b; }
.gs-stap-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.gs-stap.bezig .gs-stap-dot { animation: gs-pulse 1s ease-in-out infinite; }
@keyframes gs-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

.gs-spinner-hint {
    font-size: 0.85rem;
    color: rgba(200,221,226,0.4);
    text-align: center;
    margin: 0;
}

/* ── DASHBOARD ───────────────────────────────────────────────── */
.gs-dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* ── TABS BALK ───────────────────────────────────────────────── */
.gs-tabs-balk {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}
.gs-res-url-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gs-res-url { font-size: 0.85rem; color: #c8dde2; font-weight: 600; word-break: break-all; }
.gs-tabs { display: flex; gap: 6px; flex-shrink: 0; }
.gs-tab {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 12px; font-size: 0.8rem; font-weight: 600;
    color: rgba(200,221,226,0.5);
    background: none; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px; cursor: pointer; transition: all 0.2s;
}
.gs-tab.actief { color: #faf7f2; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

/* ── DRIE KOLOMMEN ───────────────────────────────────────────── */
.gs-kolommen {
    flex: 1;
    display: flex;
    gap: 12px;
    flex: 1;
    min-height: 0;
}
.gs-kolom {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gs-kolom-scores { width: 220px; flex-shrink: 0; }
.gs-kolom-metrics { flex: 1; min-width: 0; }
.gs-kolom-colofoon { width: 240px; flex-shrink: 0; }

.gs-kolom-titel {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e8c9a0;
    flex-shrink: 0;
}

/* ── SCORES ──────────────────────────────────────────────────── */
.gs-scores-lijst { display: flex; flex-direction: column; gap: 10px; }
.gs-score-rij { display: flex; align-items: center; gap: 10px; }
.gs-score-info { flex: 1; min-width: 0; }
.gs-score-naam { font-size: 0.8rem; font-weight: 700; color: #faf7f2; margin-bottom: 2px; }
.gs-score-status {
    font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: white; padding: 2px 8px; border-radius: 20px; display: inline-block;
}
.gs-score-toelichting { font-size: 0.7rem; color: #c8dde2; line-height: 1.4; margin: 3px 0 0; }

/* ── METRICS ─────────────────────────────────────────────────── */
.gs-metrics-lijst { display: flex; flex-direction: column; gap: 12px; }
.gs-metric-kop { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3px; }
.gs-metric-label { font-size: 0.82rem; font-weight: 600; color: #faf7f2; }
.gs-metric-waarde { font-size: 0.9rem; font-weight: 700; font-family: var(--display-font, Georgia, serif); }
.gs-metric-norm { font-size: 0.65rem; font-weight: 600; color: rgba(200,221,226,0.45); margin-bottom: 4px; }
.gs-metric-balk-track { height: 4px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.gs-metric-balk-fill { height: 100%; border-radius: 3px; transition: width 0.8s ease-out; }
.gs-metric-hint { font-size: 0.72rem; color: #c8dde2; line-height: 1.5; margin: 0; }

/* ── COLOFOON ────────────────────────────────────────────────── */
.gs-colofoon-intro { font-size: 0.8rem; color: #c8dde2; line-height: 1.6; margin: 0; }
.gs-schaal { display: flex; flex-direction: column; gap: 10px; }
.gs-schaal-item { display: flex; gap: 8px; align-items: flex-start; }
.gs-schaal-chip {
    font-size: 0.62rem; font-weight: 700; padding: 2px 7px;
    border-radius: 20px; color: white; white-space: nowrap; flex-shrink: 0; margin-top: 1px;
}
.gs-chip-rood   { background: #ff4e42; }
.gs-chip-oranje { background: #ffa400; }
.gs-chip-groen  { background: #0cce6b; }
.gs-schaal-item strong { font-size: 0.8rem; color: #faf7f2; display: block; margin-bottom: 2px; }
.gs-schaal-item p { font-size: 0.72rem; color: #c8dde2; line-height: 1.4; margin: 0; }
.gs-colofoon-note {
    font-size: 0.72rem; color: rgba(200,221,226,0.5); line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 10px; margin: 0;
}

/* ── CONCLUSIE BALK ──────────────────────────────────────────── */
.gs-conclusie-balk { flex-shrink: 0; }
.gs-conclusie-inner {
    flex-wrap: nowrap;
    background: rgba(255,255,255,0.05);
    border-left: 4px solid #ccc;
    border-radius: 0 8px 8px 0;
    padding: 10px 18px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.gs-conclusie-icoon { font-size: 1.2rem; font-weight: 700; flex-shrink: 0; }
.gs-conclusie-tekst { font-size: 0.88rem; color: #faf7f2; line-height: 1.6; margin: 0; }

/* ── CTA BALK ────────────────────────────────────────────────── */
.gs-cta-balk {
    flex-shrink: 0;
    background: rgba(163,37,8,0.2);
    border: 1px solid rgba(163,37,8,0.35);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.gs-cta-tekst-wrap { flex: 1; min-width: 0; }
.gs-cta-titel { font-size: 0.92rem; font-weight: 700; color: #faf7f2; display: block; margin-bottom: 2px; }
.gs-cta-tekst { font-size: 0.78rem; color: #c8dde2; line-height: 1.5; }
.gs-cta-knoppen { display: flex; gap: 12px; align-items: center; flex-shrink: 0; flex-wrap: wrap; }
.gs-cta-knop-primair {
    background: #a32508; color: #faf7f2; font-size: 0.88rem; font-weight: 700;
    padding: 10px 20px; border-radius: 8px; text-decoration: none; transition: background 0.2s; white-space: nowrap;
}
.gs-cta-knop-primair:hover { background: #8a1f06; color: #faf7f2; text-decoration: none; }
.gs-cta-knop-secundair {
    background: none; border: none; color: rgba(232,201,160,0.7);
    font-size: 0.78rem; cursor: pointer; text-decoration: underline; padding: 0; white-space: nowrap;
}
.gs-cta-knop-secundair:hover { color: #e8c9a0; }

/* ══════════════════════════════════════════════════════════
   MOBIEL
   ══════════════════════════════════════════════════════════ */
@media (max-width: 899px) {
    .gs-topbalk { padding: 24px 16px 16px; }
    .gs-midden { padding: 0 16px 16px; }
    .gs-radar { width: 160px; height: 160px; }
    .gs-radar-ring.r1 { inset: 16px; }
    .gs-radar-ring.r2 { inset: 36px; }
    .gs-radar-ring.r3 { inset: 56px; }

    .gs-kolommen {
    flex: 1; flex-direction: column; }
    .gs-kolom-scores { width: 100%; }
    .gs-scores-lijst { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .gs-score-rij { width: calc(50% - 4px); }
    .gs-kolom-colofoon { width: 100%; }

    .gs-invoer-rij { flex-direction: column; }
    .gs-scan-knop { width: 100%; }

    .gs-cta-balk { flex-direction: column; align-items: flex-start; }
}
