/* RESET & BASE */
:root {
    --mana-brown: #1A241D;
    --mana-gold: #d8b888;
    --accent-orange: #D97706;
    --paper: #F8F6F2;
    --text-dark: #1A241D;
    --text-light: #F5F5F4;
    
    --font-heading: 'BNCringeSans', sans-serif;
    --font-body: 'EBGaramond', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.scan-page {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--paper);
    /* Zorg dat het pad naar je afbeelding klopt */
    background-image: url('./images/optimized-webp/Logo_InnerMana_wie_ben_jij.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: multiply;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* APP CONTAINER - AANGEPAST: MATGLAS EFFECT */
.app {
    width: 100%;
    max-width: 650px;
    
    /* Semi-transparant wit */
    background: rgba(255, 255, 255, 0.80);
    
    /* Het 'Frosted Glass' effect (blur de achtergrond erachter) */
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    
    padding: 40px 30px;
    border-radius: 4px;
    
    /* Subtiele schaduw en rand voor diepte */
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    
    position: relative;
    margin: 0 20px;
}

/* HEADER */
.scan-header { text-align: center; margin-bottom: 30px; }
.scan-header h1 {
    font-family: var(--font-heading);
    color: var(--mana-brown);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.archetypes-badge {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 15px;
}
.intro-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #333; /* Iets donkerder voor leesbaarheid op glas */
    line-height: 1.5;
}

.divider { height: 1px; background: rgba(0,0,0,0.1); margin-bottom: 30px; }

/* QUIZ PROGRESS */
.progress-container { margin-bottom: 25px; }
.progress-labels { display: flex; justify-content: space-between; margin-bottom: 8px; }
#progress-label { font-family: var(--font-heading); font-size: 0.8rem; font-weight: bold; color: #666; text-transform: uppercase; }
.cat-tag { 
    font-family: var(--font-heading); 
    font-size: 0.7rem; 
    background: var(--mana-brown); 
    color: var(--mana-gold); 
    padding: 2px 8px; 
    border-radius: 2px; 
}
.progress-track { height: 6px; background: rgba(0,0,0,0.1); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent-orange); width: 0%; transition: width 0.4s ease; }

/* DARK QUESTION CARD */
.card-dark {
    background-color: var(--mana-brown);
    color: white;
    padding: 40px 30px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(26, 36, 29, 0.25);
    margin-bottom: 30px;
}

.q-icon svg, .q-icon img { 
    width: 48px; 
    height: 48px; 
    margin-bottom: 20px; 
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
    opacity: 0.9;
}

.question-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1.4;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 500;
}

/* OPTION BUTTONS */
.options-grid { display: flex; flex-direction: column; gap: 12px; }

.option-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-style: italic;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--mana-gold);
    border-color: var(--mana-gold);
    transform: translateX(5px);
}

.option-btn.selected {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
    font-style: normal;
    font-weight: 600;
}

.option-btn .tag-hint {
    font-size: 0.75rem;
    opacity: 0.5;
    font-family: var(--font-heading);
    font-style: normal;
    letter-spacing: 1px;
}

/* NAVIGATION */
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top:20px;}
.nav-btn {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 2px;
    padding: 12px 24px;
    border: none;
    transition: all 0.3s;
}
.nav-btn.primary { background: var(--mana-brown); color: white; }
.nav-btn.primary:hover:not(:disabled) { background: var(--accent-orange); }
.nav-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.nav-btn.ghost { background: transparent; color: #555; }
.nav-btn.ghost:hover { color: var(--mana-brown); }
.full-width { width: 100%; }

/* MODAL & SLIDERS */
.hidden { display: none !important; }
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(26, 36, 29, 0.95);
    display: flex; justify-content: center; align-items: center; z-index: 100;
}
.modal-card { background: white; padding: 40px; max-width: 400px; text-align: center; border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.modal-card h3 { font-family: var(--font-heading); color: var(--mana-brown); margin-bottom: 15px; font-size: 1.5rem; }
.modal-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 25px; }

.slider-group { margin: 30px 0; display: flex; flex-direction: column; gap: 25px; }
.slider-item label { display: block; font-family: var(--font-heading); font-weight: bold; margin-bottom: 10px; color: var(--mana-brown); font-size:0.95rem; }
.range-wrap { display: flex; align-items: center; gap: 15px; }
input[type=range] { flex-grow: 1; accent-color: var(--accent-orange); height: 4px; cursor: pointer; }
.val { font-family: var(--font-heading); font-weight: bold; color: var(--accent-orange); font-size: 1.2rem; width: 30px; text-align: right; }

/* RESULTS */
.results-header { text-align: center; margin-bottom: 40px; }

/* AANGEPAST: Donkere achtergrond voor contrast met lichte tekst */
.chart-wrapper { 
    width: 100%; 
    max-width: 500px; 
    margin: 20px auto; 
    position: relative; 
    
    background: #1A241D; /* Mana Brown achtergrond */
    
    border-radius: 4px; 
    padding: 10px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.3); 
    border: 1px solid var(--mana-gold);
}
#results-canvas { width: 100%; height: auto; display: block; }

.summary-tags { display: flex; justify-content: center; gap: 10px; margin-top: 15px; }
.tag { font-family: var(--font-heading); font-size: 0.7rem; padding: 4px 10px; text-transform: uppercase; background: rgba(255,255,255,0.5); border-radius: 2px; }
.tag.strength { background: var(--mana-brown); color: white; }
.tag.weakness { border: 1px solid var(--mana-brown); color: var(--mana-brown); background: transparent; }

.result-cards { display: flex; flex-direction: column; gap: 20px; }
/* Cards ook iets transparant voor consistentie */
.res-card { background: rgba(255,255,255,0.7); border: 1px solid rgba(0,0,0,0.05); padding: 25px; border-radius: 4px; }
.res-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--mana-brown); border-bottom: 2px solid var(--accent-orange); display: inline-block; padding-bottom: 2px; font-family:var(--font-heading); text-transform:uppercase; }
.res-card.special { background: rgba(255,255,255,0.9); border-left: 4px solid var(--accent-orange); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.bullet-list { margin-left: 20px; margin-top: 10px; list-style-type: square; color: #444; line-height: 1.5; }
.bullet-list li { margin-bottom: 6px; }

.italic-text { font-style: italic; color: #555; margin-bottom: 10px; }
.bold-text { font-weight: bold; color: var(--mana-brown); font-family: var(--font-heading); }
.small-label { font-size: 0.7rem; font-family: var(--font-heading); letter-spacing: 1px; color: #888; margin-top: 15px; }
.identity-list { margin-top: 10px; list-style: none; font-style: italic; color: var(--mana-brown); font-weight: 500;}
.card-divider { border: 0; height: 1px; background: #ccc; margin: 15px 0; }

.cta-section { background: var(--mana-brown); color: white; padding: 30px; text-align: center; margin-top: 40px; border-radius: 4px; }
.cta-section h3 { color: var(--accent-orange); margin-bottom: 10px; }
.email-form { display: flex; gap: 10px; margin: 20px 0; }
.email-form input { flex-grow: 1; padding: 12px; border: none; border-radius: 2px; font-family: var(--font-body); font-size:1rem; }
.success-msg { color: #4ade80; margin-top: 10px; font-family: var(--font-heading); font-size: 0.9rem;}
.error-msg { color: #f87171; margin-top: 10px; font-family: var(--font-heading); font-size: 0.9rem;}

.links-row { margin-top: 20px; font-size: 0.9rem; }
.text-link { color: #ccc; text-decoration: none; border-bottom: 1px solid #ccc; transition: 0.3s; }
.text-link:hover { color: var(--accent-orange); border-color: var(--accent-orange); }
.dot { margin: 0 10px; color: #555; }

/* FIX: Voorkomt witte balken aan de zijkant door animaties */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
