/* KissBooK Phase 5 — Gamification & Advanced Mechanics */

/* -------------------
   #5 ONBOARDING
------------------- */
.kb-onboarding-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: var(--kb-z-overlay);
    display: none;
}
.kb-onboarding-tooltip {
    position: absolute;
    background: #4f46e5;
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: var(--kb-z-max);
    max-width: 250px;
    font-size: 14px;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
.kb-onboarding-tooltip.active {
    opacity: 1;
    pointer-events: auto;
}
.kb-onboarding-btn {
    background: rgba(255,255,255,0.2);
    border: none; color: white;
    padding: 5px 10px; border-radius: 6px;
    cursor: pointer; margin-top: 10px;
    font-weight: bold; width: 100%;
}
.kb-onboarding-btn:hover {
    background: rgba(255,255,255,0.3);
}
.kb-highlight-element {
    position: relative;
    z-index: var(--kb-z-max);
    box-shadow: 0 0 0 4px #4f46e5, 0 0 20px rgba(79, 70, 229, 0.5);
    border-radius: 8px;
    background: white; /* Ensure visibility if transparent */
}

/* -------------------
   #13 VITRINE DE TROPHÉES
------------------- */
.kb-trophies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    padding: 15px 0;
}
.kb-trophy-item {
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 5px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s;
}
body.kb-dark-mode .kb-trophy-item {
    background: #0f172a; border-color: #334155;
}
.kb-trophy-item.unlocked {
    filter: none; opacity: 1;
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
}
.kb-trophy-icon { font-size: 32px; margin-bottom: 5px; }
.kb-trophy-name { font-size: 10px; font-weight: bold; color: #334155; }
body.kb-dark-mode .kb-trophy-name { color: #cbd5e1; }

/* -------------------
   #24 EASTER EGG
------------------- */
@keyframes kb-party-mode {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}
body.kb-easter-egg-active {
    animation: kb-party-mode 2s linear infinite;
}

/* -------------------
   #40 MODE PERFORMANCE
------------------- */
body.kb-performance-mode * {
    /* Disable all animations, transitions, and heavy shadows */
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    text-shadow: none !important;
}
body.kb-performance-mode .kbt-film-poster img {
    filter: none !important;
}