/* style.css - MOBILE FRIENDLY, POPPINS & BOOTSTRAP ICONS */

/* 1. LETTERTYPE IMPORT (Poppins) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* --- HR HUISSTIJL KLEUREN --- */
    --hr-blauw-zwart: #002D3C; /* Tekstkleur & donkere elementen */
    --hr-rood: #D50055;        /* Primaire actiekleur */
    --hr-donker-rood: #9D2245; /* Hover kleur */
    --hr-room: #F3EFEA;        /* Achtergrond */
    --hr-wit: #FFFFFF;
    
    /* Accentkleuren (gemapt op jouw AI-categorieën) */
    --hr-blauw: #00AEEF;       /* Voorheen: over-ai */
    --hr-groen: #59B6AE;       /* Voorheen: met-ai */
    --hr-geel: #FFC90E;        /* Voorheen: ondersteund-ai */
    --hr-paars: #8E368C;       /* NIEUW: De gevraagde kleur paars */
}

body {
    background-color: var(--hr-room);
    font-family: 'Arial', 'Helvetica', sans-serif; 
    color: var(--hr-blauw-zwart);
    line-height: 1.6;
}

/* --- DOMEIN KLEUREN --- */

/* Categorie: Blauw (bijv. Representatie & Bias) */
.bg-over-ai, .bg-blauw { background-color: var(--hr-blauw) !important; color: var(--hr-blauw-zwart) !important; }
.text-over-ai { color: var(--hr-blauw) !important; }
.btn-over-ai { background-color: var(--hr-blauw); color: var(--hr-blauw-zwart); border: none; font-weight: bold; }
.btn-over-ai:hover { background-color: #008cbf; color: var(--hr-wit); }

/* Categorie: Groen (bijv. Toegankelijkheid & Afstemming) */
.bg-met-ai, .bg-groen { background-color: var(--hr-groen) !important; color: var(--hr-blauw-zwart) !important; }
.text-met-ai { color: var(--hr-groen) !important; }
.btn-met-ai { background-color: var(--hr-groen); color: var(--hr-blauw-zwart); border: none; font-weight: bold; }
.btn-met-ai:hover { background-color: #4aa099; color: var(--hr-wit); }

/* Categorie: Geel (bijv. Didactiek & Pedagogiek) */
.bg-ondersteund-ai, .bg-geel { background-color: var(--hr-geel) !important; color: var(--hr-blauw-zwart) !important; }
.text-ondersteund-ai { color: #d39e00 !important; } 
.btn-ondersteund-ai { background-color: var(--hr-geel); color: var(--hr-blauw-zwart); border: none; font-weight: bold; }
.btn-ondersteund-ai:hover { background-color: #e6b400; color: var(--hr-blauw-zwart); }

/* Categorie: Paars (NIEUW: voor Toetsing & Kaders) */
.bg-paars, .bg-toetsing, .bg-kaders { background-color: var(--hr-paars) !important; color: var(--hr-wit) !important; }
.text-paars { color: var(--hr-paars) !important; }
.btn-paars { background-color: var(--hr-paars); color: var(--hr-wit); border: none; font-weight: bold; }
.btn-paars:hover { background-color: #6a2869; color: var(--hr-wit); }

/* --- ALGEMENE KNOPPEN --- */
.btn-primary {
    background-color: var(--hr-rood);
    border-color: var(--hr-rood);
    border-radius: 0;
}
.btn-primary:hover {
    background-color: var(--hr-donker-rood);
    border-color: var(--hr-donker-rood);
}

/* --- KAARTEN (HR STIJL) --- */
.domain-card {
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
    border: none !important;
    background: transparent;
}
.domain-card:hover { transform: translateY(-5px); }

.domain-card .card-body { 
    border-top-left-radius: 30px; 
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    
    background-color: var(--hr-wit);
    box-shadow: 0 4px 10px rgba(0,45,60, 0.1);
    color: var(--hr-blauw-zwart);
}

/* --- DOBBELSTEEN --- */
#dice-container {
    perspective: 1000px;
    margin: 0 auto;
    width: 150px;
    height: 150px;
    cursor: pointer;
    transition: transform 0.1s;
}
#dice-container:active { transform: scale(0.95); }

#dice-result {
    font-size: 5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--hr-wit);
    color: var(--hr-rood);
    border: 4px solid var(--hr-blauw-zwart);
    border-radius: 0; 
    border-top-left-radius: 30px; 
    box-shadow: 0 10px 20px rgba(0,45,60, 0.15);
}

/* --- TIMER --- */
.timer-display {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Courier New', Courier, monospace;
    color: var(--hr-rood);
}

/* --- OVERLAY KNOPPEN --- */
#theme-buttons-container button {
    font-weight: 600;
    border-radius: 0;
    border-top-left-radius: 20px;
    transition: all 0.2s;
    font-size: 1.3rem;
    padding: 2rem 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
#theme-buttons-container button:hover { 
    transform: scale(1.02); 
    box-shadow: 0 5px 15px rgba(0,45,60, 0.2);
}

/* --- ACTIEVE VRAAG PANEL --- */
#active-question-panel { 
    border-radius: 0;
    border-top-left-radius: 30px;
    overflow: hidden; 
    background-color: var(--hr-wit);
    border: 1px solid rgba(0,45,60, 0.1);
}
#active-question-text { 
    font-size: 1.6rem; 
    line-height: 1.5;
    color: var(--hr-blauw-zwart);
}

/* --- AI INZICHT MODAL --- */
.modal-xl-custom {
    max-width: 95% !important;
    margin-left: auto;
    margin-right: auto;
}
#insightModal .modal-content {
    border-radius: 0;
    border-top-left-radius: 40px;
    border: none;
    box-shadow: 0 0 50px rgba(0,45,60, 0.3);
}
#insightModal .modal-header {
    background-color: var(--hr-blauw-zwart);
    color: var(--hr-wit);
    padding: 25px 40px;
    border-top-left-radius: 40px;
    border-top-right-radius: 0;
}
#insightModal .modal-title { font-size: 2.2rem; font-weight: 700; color: var(--hr-wit); }
#insightModal .modal-body {
    padding: 50px;
    background-color: var(--hr-room);
}
#insight-text-display {
    font-size: 2rem;        
    line-height: 1.6;        
    color: var(--hr-blauw-zwart);          
    font-weight: 500;
    white-space: pre-wrap;   
    border-left: 10px solid var(--hr-rood); 
    padding-left: 30px;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* --- NOTITIE MODAL --- */
#read-note-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--hr-blauw-zwart);
}
.clickable-row {
    cursor: pointer;
    transition: background-color 0.15s;
}
.clickable-row:hover {
    background-color: #e2e6ea !important;
}

/* --- DASHBOARD SPECIFIEK --- */
textarea.auto-grow {
    min-height: 80px;
    overflow-y: hidden;
    resize: none;
    border-color: #ccc;
    background-color: var(--hr-wit);
    color: var(--hr-blauw-zwart);
}
textarea.auto-grow:focus {
    border-color: var(--hr-blauw);
    box-shadow: 0 0 0 0.25rem rgba(0, 174, 239, 0.25);
}

.action-btn-group {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* =========================================
    MEDIA QUERIES (MOBIEL AANPASSINGEN)
   ========================================= */

@media (max-width: 768px) {
    html { font-size: 14px; }
    #dice-container { width: 100px; height: 100px; }
    #dice-result { font-size: 3rem; border-width: 3px; }
    .timer-display { font-size: 2.5rem; }
    #active-question-text { font-size: 1.2rem; }
    #insightModal .modal-header { padding: 15px 20px; }
    #insightModal .modal-title { font-size: 1.5rem; }
    #insightModal .modal-body { padding: 20px; }
    #insight-text-display { font-size: 1.2rem; padding-left: 15px; border-left-width: 5px; }
    .action-btn-group { position: static; margin-bottom: 10px; display: flex; justify-content: flex-end; width: 100%; }
    .modal-footer { flex-direction: column; gap: 10px; }
    .modal-footer > * { width: 100%; margin: 0 !important; }
    .modal-footer .text-muted { order: -1; margin-bottom: 10px; }
    #theme-buttons-container button { font-size: 1.1rem; padding: 1rem; }
}

/* --- SPELUITLEG BUTTON --- */
.btn-speluitleg {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1050;
    background-color: var(--hr-rood);
    color: var(--hr-wit);
    border: none;
    border-radius: 30px 0 0 30px; 
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: -4px 0 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.btn-speluitleg:hover {
    background-color: var(--hr-donker-rood);
    color: var(--hr-wit);
    padding-right: 30px;
}

@media (max-width: 768px) {
    .btn-speluitleg { padding: 10px 15px; font-size: 0.9rem; border-radius: 20px 0 0 20px; }
}