/* --- css/profile.css --- */

/* ========================================= */
/* === 1. ANIMATIES (KEYFRAMES) ============ */
/* ========================================= */

/* Rustig rollende scanlines */
@keyframes scanline-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* De "storing" / glitch effect tijdens wissels */
@keyframes signal-noise {
    0% { opacity: 1; }
    25% { opacity: 0.8; background-size: 100% 3px; } /* Strepen vervormen */
    50% { opacity: 1; background-color: rgba(0,0,0,0); }
    75% { opacity: 0.7; background-color: rgba(50, 255, 50, 0.1); } /* Groene flits */
    100% { opacity: 1; }
}

/* ========================================= */
/* === 2. BASIS PROFIEL STIJLEN ============ */
/* ========================================= */

.profile-wrapper { 
    width: 200px; height: 200px; margin: 0 auto 30px; border-radius: 50%; 
    border: 4px solid var(--accent); background-color: #333; overflow: hidden; 
    position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    display: flex; align-items: center; justify-content: center; 
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                margin 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}

/* Fallback letters (achter de video) */
.profile-initials { 
    font-size: 4rem; font-weight: 800; color: #555; user-select: none; 
    transition: font-size 0.5s ease; 
    position: absolute; 
    z-index: 0; 
}

/* OUDE IMG STIJL (Voor de zekerheid behouden) */
.profile-pic { 
    width: 100%; height: 100%; object-fit: cover; position: absolute; 
    top: 0; left: 0; transition: transform 0.5s ease; 
    z-index: 1; 
}
.profile-wrapper:hover .profile-pic { transform: scale(1.1); }

/* --- VIDEO STYLING (DOUBLE BUFFERING) --- */

.profile-video {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; top: 0; left: 0;
    transform: scale(1.02); 
    
    /* Standaard onzichtbaar */
    opacity: 0; 
    z-index: 1; 
    
    /* De Fade-overgang (0.5 seconde) */
    transition: opacity 0.5s ease-in-out;
}

/* De video die NU speelt is zichtbaar */
.profile-video.active {
    opacity: 1;
    z-index: 2; /* Bovenop de andere video */
}

/* --- DE OVERLAY (Beveiliging, Stijl & Animatie) --- */

.profile-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10; /* Ligt BOVENOP de video */
    border-radius: 50%;
    
    /* Zorgt dat je erop kunt klikken voor de 'Yes' actie */
    cursor: pointer; 

    /* STIJL: Scanlines (TV effect) */
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 6px; /* Iets dikkere retro lijnen */
    
    /* STIJL: Vignette (Donkere binnenrand) */
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
    
    /* RUSTIGE ANIMATIE: Beweegt langzaam naar beneden */
    animation: scanline-scroll 5s linear infinite;
    transition: background-color 0.2s ease;
    
    pointer-events: auto; 
}

/* --- DE STORING (Wordt aangezet door JS tijdens wissel) --- */
.profile-overlay.interference {
    /* HARDE ANIMATIE: Snelle scroll + geflikker */
    animation: scanline-scroll 0.2s linear infinite, signal-noise 0.15s linear infinite;
    
    /* Maak beeld iets donkerder om de 'knip' te verbergen */
    background-color: rgba(0,0,0,0.3); 
}

/* --------------------------------------- */

.profile-name { 
    font-size: 2.5rem; margin: 0 0 10px 0; line-height: 1.1; font-weight: 800; color: white;
    white-space: nowrap; transition: font-size 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.profile-role { 
    color: var(--accent); font-size: 1.2rem; margin-bottom: 20px; font-weight: 600; 
    text-transform: uppercase; letter-spacing: 1.5px; line-height: 1.4;
    transition: font-size 0.5s ease, letter-spacing 0.5s ease;
}

.profile-about { 
    color: var(--text-muted); line-height: 1.6; max-width: 500px; margin: 0 auto 30px; font-size: 1rem;
    min-height: 100px; opacity: 1; transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.profile-about.text-exit { opacity: 0; transform: translateY(-15px); }
.profile-about.text-enter-start { opacity: 0; transform: translateY(15px); transition: none !important; }

.socials { display: flex; justify-content: center; gap: 20px; margin-top: 25px; transition: gap 0.5s ease; }
.socials a { 
    color: white; font-size: 1.5rem; transition: all 0.3s ease; 
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05);
}
.socials a:hover { color: white; background: var(--accent); transform: translateY(-3px); box-shadow: 0 5px 15px var(--accent-glow); }

.cv-btn {
    display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; padding: 12px 30px;
    border: 2px solid var(--accent); color: var(--text-main); text-decoration: none; font-weight: 700;
    border-radius: 50px; transition: all 0.3s ease; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
    background: rgba(0,0,0,0.3); cursor: pointer; font-family: inherit;
    
    /* Altijd pulseren */
    animation: idle-pulse-btn 2s infinite;
}
.cv-btn i { margin-right: 10px; font-size: 1.1em; }
.cv-btn:hover { background: var(--accent); color: white; box-shadow: 0 5px 20px var(--accent-glow); transform: translateY(-2px); }

.app-container.split-view .profile-wrapper { width: 140px; height: 140px; margin-bottom: 20px; }
.app-container.split-view .profile-initials { font-size: 2.5rem; }
.app-container.split-view .profile-name { font-size: 1.6rem; }
.app-container.split-view .profile-role { font-size: 0.9rem; letter-spacing: 0.5px; margin-bottom: 15px; }
.app-container.split-view .socials { gap: 10px; }

@media (max-width: 768px) {
    .profile-wrapper { width: 150px; height: 150px; margin-bottom: 20px; }
    .profile-name { font-size: 2rem; white-space: normal; }
    .profile-about { min-height: auto; font-size: 0.95rem; }
    .app-container.split-view .profile-wrapper { width: 150px; height: 150px; } 
}

/* ========================================= */
/* === 3. SKILLS TABS ====================== */
/* ========================================= */
.game-tab-controller { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.game-tab-btn {
    background: transparent; border: 2px solid var(--accent); color: white; padding: 10px 30px;
    border-radius: 50px; font-family: inherit; font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.3s ease; min-width: 140px; 
}
.game-tab-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.game-tab-btn.active {
    background: var(--accent); color: var(--bg-main); box-shadow: 0 5px 20px var(--accent-glow); transform: translateY(-2px);
}
.game-skill-box {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px; padding: 25px; min-height: 300px; position: relative;
}
.game-skill-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.skill-tree-content { display: none; }
.skill-tree-content.active { display: block; }

/* ========================================= */
/* === 4. SKILL RIJEN ====================== */
/* ========================================= */
.game-stat-row {
    display: flex; align-items: center; gap: 15px; padding: 5px; border-radius: 12px; cursor: pointer; 
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s ease;
}
.game-stat-row:hover, .game-stat-row.is-interacting { transform: scale(1.03); background: rgba(255,255,255,0.05); }

.game-icon-box {
    width: 44px; height: 44px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; 
    border-radius: 10px; font-size: 1.1rem; color: white; flex-shrink: 0; transition: color 0.3s ease, background 0.3s ease;
}
.game-stat-row:hover .game-icon-box, .game-stat-row.is-interacting .game-icon-box { color: var(--accent); background: rgba(255,255,255,0.1); }

.game-bar-container { flex: 1; display: flex; flex-direction: column; }
.game-stat-info { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 6px; color: #e0e0e0; font-weight: 500; }
.game-lvl { color: var(--text-muted); font-size: 0.85rem; font-weight: 400; }

.game-xp-track { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.game-xp-fill {
    height: 100%; background: var(--accent); width: 0%; border-radius: 10px;
    transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 0 10px var(--accent-glow);
}

/* ========================================= */
/* === 5. TOOLBOX (skills zonder balk) ===== */
/* ========================================= */
.toolbox-row {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.toolbox-title {
    display: block; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 12px; font-weight: 600;
}
.toolbox-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.toolbox-chip {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
    color: #e0e0e0; padding: 6px 16px; border-radius: 50px; font-size: 0.85rem;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.toolbox-chip:hover { border-color: var(--accent); color: white; transform: translateY(-2px); }

/* Naam-toggle (Bengaalse easter egg) */
.profile-name.name-toggle { cursor: pointer; }