/* Gedeelde stijl voor de losse guide-, hub-, about- en contactpagina's.
   Donker thema, afgestemd op de hoofd-app. */

* { box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #282b3e;
    background-image: linear-gradient(180deg, #282b3e 0%, #282b3e 62%, #30344d 100%);
    background-attachment: fixed;
    color: #d7d9e6;
    line-height: 1.65;
    min-height: 100vh;
}

a { color: #8b93f0; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Topbar ── */
.guide-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 56px;
    padding: 0 20px;
    background-color: #20233b;
    border-bottom: 1px solid #363a5a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.guide-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #e0e0e0;
}
.guide-topbar-brand img { height: 34px; width: 34px; }
.brand-invest { color: #2b8aa6; }
.brand-tracker { color: #5cb85c; }
.guide-topbar-cta {
    display: inline-flex;
    align-items: center;
    line-height: normal;
    padding: 8px 18px;
    background-color: #6a74e6;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
}
.guide-topbar-cta:hover { background-color: #8b93f0; text-decoration: none; }

/* ── Taalwisselaar met vlaggen (zelfde look als op de homepage) ── */
.guide-lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 14px;
}
.guide-lang-btn {
    display: inline-block;
    border: 2px solid #454b6e;
    border-radius: 6px;
    padding: 3px;
    line-height: 0;
    background: transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.guide-lang-btn:hover {
    border-color: #6a74e6;
    box-shadow: 0 0 6px rgba(106, 116, 230, 0.4);
    text-decoration: none;
}
.guide-lang-btn.active {
    border-color: #6a74e6;
    box-shadow: 0 0 8px rgba(106, 116, 230, 0.6);
}
.guide-lang-btn img {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

/* ── Layout ── */
.guide-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 28px 20px 64px;
}

/* ── Breadcrumb ── */
.breadcrumb {
    font-size: 13px;
    color: #8a8fa8;
    margin-bottom: 18px;
}
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.breadcrumb li::after { content: "\203A"; margin-left: 6px; color: #5a5f7a; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li:last-child { color: #b7bac8; }

/* ── Typografie ── */
.guide-wrap h1 {
    color: #f0f1f7;
    font-size: 30px;
    line-height: 1.25;
    margin: 6px 0 14px;
}
.guide-wrap h2 {
    color: #e8e9f2;
    font-size: 22px;
    margin: 34px 0 10px;
    padding-top: 6px;
}
.guide-wrap h3 {
    color: #dfe1ee;
    font-size: 17px;
    margin: 22px 0 6px;
}
.guide-wrap p { margin: 0 0 14px; }
.guide-wrap ul, .guide-wrap ol { margin: 0 0 16px; padding-left: 22px; }
.guide-wrap li { margin-bottom: 7px; }
.guide-wrap strong { color: #f0f1f7; }

.guide-lead {
    font-size: 18px;
    color: #c6c9db;
    background: #2e324e;
    border: 1px solid #454b6e;
    border-left: 4px solid #6a74e6;
    border-radius: 8px;
    padding: 16px 18px;
    margin: 0 0 26px;
}

/* ── Meta (byline + datum) ── */
.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
    color: #8a8fa8;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #363a5a;
}
.guide-meta .author { color: #b7bac8; }

/* ── Afbeeldingen ── */
.guide-figure { margin: 16px 0 22px; }
.guide-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #454b6e;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.guide-figure figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: #8a8fa8;
    text-align: center;
}

/* ── Genummerde stappen ── */
.guide-step {
    background: #2e324e;
    border: 1px solid #454b6e;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.guide-step h3 { margin-top: 0; color: #a9b0ff; }

/* ── CTA-blok ── */
.guide-cta {
    text-align: center;
    background: #2e324e;
    border: 1px solid #454b6e;
    border-radius: 12px;
    padding: 26px 22px;
    margin: 34px 0;
}
.guide-cta h2 { margin: 0 0 8px; }
.guide-cta p { margin: 0 0 18px; color: #c6c9db; }
.guide-cta-btn {
    display: inline-block;
    padding: 13px 28px;
    background-color: #6a74e6;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
}
.guide-cta-btn:hover { background-color: #8b93f0; text-decoration: none; }

/* ── "Not financial advice" ── */
.guide-disclaimer {
    font-size: 12.5px;
    color: #8a8fa8;
    background: #23263c;
    border: 1px solid #363a5a;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 26px 0 0;
}

/* ── Gerelateerde guides ── */
.related-guides {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid #363a5a;
}
.related-guides h2 { font-size: 18px; margin: 0 0 12px; }
.related-guides ul { list-style: none; padding: 0; margin: 0; }
.related-guides li { margin-bottom: 8px; }

/* ── Guide-hub kaarten ── */
.guide-card-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}
.guide-card {
    display: block;
    background: #2e324e;
    border: 1px solid #454b6e;
    border-radius: 10px;
    padding: 20px 22px;
    color: inherit;
}
.guide-card:hover {
    border-color: #6a74e6;
    text-decoration: none;
    background: #313559;
}
.guide-card h2 { margin: 0 0 6px; font-size: 19px; color: #e8e9f2; }
.guide-card p { margin: 0; color: #b7bac8; font-size: 14px; }

/* ── Footer ── */
.guide-footer {
    border-top: 1px solid #363a5a;
    background-color: #20233b;
    padding: 22px 20px;
    text-align: center;
    font-size: 13px;
    color: #8a8fa8;
}
.guide-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-bottom: 10px;
}

/* ── Mobiel ── */
@media (max-width: 600px) {
    .guide-wrap { padding: 20px 14px 48px; }
    .guide-wrap h1 { font-size: 25px; }
    .guide-wrap h2 { font-size: 20px; }
    .guide-lead { font-size: 16px; }
    .guide-topbar-brand { font-size: 17px; }
    .guide-topbar { padding: 0 14px; }
}
