/**
 * CEREBRUM ADVANCED - Styles pour fonctionnalités avancées
 */

/* Proactive Suggestions */
.cerebrum-proactive-suggestion {
    position: fixed;
    bottom: 100px;
    right: 100px;
    width: 320px;
    background: linear-gradient(135deg,
        rgba(10, 14, 26, 0.95) 0%,
        rgba(14, 18, 30, 0.98) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 16px;
    z-index: 9997;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cerebrum-proactive-suggestion.show {
    opacity: 1;
    transform: translateX(0);
}

.cerebrum-proactive-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.cerebrum-proactive-header i {
    width: 20px;
    height: 20px;
    color: #ffaa00;
}

.cerebrum-proactive-header span {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.cerebrum-proactive-close {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cerebrum-proactive-close i {
    width: 14px;
    height: 14px;
}

.cerebrum-proactive-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ff4444;
}

.cerebrum-proactive-content {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.cerebrum-proactive-open {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #00d4ff, #00b8e6);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cerebrum-proactive-open:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.5);
}

/* Oracle Mode */
.cerebrum-oracle-panel {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    padding: 20px;
    margin: 16px 0;
}

.cerebrum-oracle-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cerebrum-oracle-header i {
    width: 24px;
    height: 24px;
    color: #8a2be2;
}

.cerebrum-oracle-header h3 {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cerebrum-predictions-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.cerebrum-prediction-card {
    background: rgba(138, 43, 226, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    padding: 14px;
    transition: all 0.3s ease;
}

.cerebrum-prediction-card:hover {
    background: rgba(138, 43, 226, 0.15);
    transform: translateX(4px);
}

.cerebrum-prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cerebrum-prediction-timeframe {
    font-size: 12px;
    font-weight: 600;
    color: #8a2be2;
}

.cerebrum-prediction-probability {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(138, 43, 226, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.cerebrum-prediction-event {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
}

.cerebrum-prediction-recommendation {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Action Panel */
.cerebrum-action-panel {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 20px;
}

.cerebrum-action-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cerebrum-action-header i {
    width: 24px;
    height: 24px;
    color: #ffaa00;
}

.cerebrum-action-header h3 {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cerebrum-action-list {
    display: grid;
    gap: 10px;
}

.cerebrum-action-list .cerebrum-action-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.05));
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    justify-content: flex-start;
}

.cerebrum-action-list .cerebrum-action-btn i {
    width: 18px;
    height: 18px;
    color: #00d4ff;
}

.cerebrum-action-list .cerebrum-action-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.1));
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

/* Particle Canvas */
.cerebrum-particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.3;
}

/* Mood Ring */
.cerebrum-mood-ring {
    position: fixed;
    top: 20px;
    right: 100px;
    z-index: 9998;
}

.cerebrum-mood-indicator {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.2) 0%,
        rgba(0, 212, 255, 0.1) 100%);
    border: 2px solid rgba(0, 212, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.5s ease;
    animation: mood-pulse 2s ease-in-out infinite;
}

@keyframes mood-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    }
}

.cerebrum-mood-indicator[data-mood="excited"] {
    border-color: rgba(255, 0, 255, 0.6);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}

.cerebrum-mood-indicator[data-mood="calm"] {
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.cerebrum-mood-indicator[data-mood="focused"] {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.cerebrum-mood-indicator[data-mood="creative"] {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

/* Hyperconnectivity Graph */
.cerebrum-hyperconnect-viz {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 20px;
    margin: 16px 0;
}

#cerebrum-connection-graph {
    width: 100%;
    height: 300px;
}

/* Avatar 3D - MASQUÉ */
.cerebrum-avatar-3d {
    display: none !important;
    position: fixed;
    bottom: 200px;
    right: 120px;
    z-index: 9996;
}

.cerebrum-avatar-container {
    position: relative;
    width: 100px;
    height: 150px;
}

.cerebrum-avatar-head {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #00b8e6);
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.5);
    animation: avatar-breathe 3s ease-in-out infinite;
}

.cerebrum-avatar-body {
    width: 70px;
    height: 80px;
    margin: 5px auto 0;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.6), rgba(0, 212, 255, 0.3));
    border-radius: 35px 35px 20px 20px;
}

.cerebrum-avatar-speech-bubble {
    position: absolute;
    top: -40px;
    left: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 8px 12px;
    color: #000;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cerebrum-avatar-speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.95);
}

@keyframes avatar-breathe {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.05) translateY(-5px);
    }
}

.cerebrum-avatar-container:hover .cerebrum-avatar-speech-bubble {
    opacity: 1;
}

/* Personality Selector */
.cerebrum-personality-selector {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 20px;
    margin: 16px 0;
}

.cerebrum-personality-header h4 {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.cerebrum-personality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.cerebrum-personality-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cerebrum-personality-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cerebrum-personality-card.selected {
    border-color: rgba(0, 212, 255, 0.6);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.cerebrum-personality-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.cerebrum-personality-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.cerebrum-personality-style {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* DNA Visualization */
.cerebrum-dna-helix {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 20px;
    margin: 16px 0;
}

.cerebrum-dna-strand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.cerebrum-dna-gene {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    animation: dna-rotate 4s linear infinite;
}

@keyframes dna-rotate {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
}

.cerebrum-dna-connection {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(0, 212, 255, 0.3) 0%,
        rgba(0, 255, 136, 0.3) 100%);
}

/* Scenario Timeline */
.cerebrum-scenario-timeline-3d {
    perspective: 1000px;
    padding: 20px;
}

.cerebrum-timeline-track {
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.cerebrum-timeline-milestone {
    position: relative;
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.cerebrum-timeline-milestone:hover {
    transform: translateZ(50px) scale(1.1);
}

/* Advanced Synthesis Preview */
.cerebrum-synthesis-preview-3d {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 20px;
    margin: 16px 0;
    perspective: 1000px;
}

.cerebrum-preview-layer {
    transform-style: preserve-3d;
    margin: 12px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.cerebrum-preview-layer:hover {
    transform: rotateX(5deg) translateZ(20px);
}

/* Responsive */
@media (max-width: 768px) {
    .cerebrum-proactive-suggestion {
        right: 12px;
        left: 12px;
        width: auto;
    }

    .cerebrum-mood-ring {
        top: 12px;
        right: 80px;
    }

    .cerebrum-avatar-3d {
        display: none;
    }

    .cerebrum-personality-grid {
        grid-template-columns: 1fr;
    }
}

/* Advanced Animations */
@keyframes holographic-shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.cerebrum-holographic {
    background: linear-gradient(
        45deg,
        rgba(0, 212, 255, 0.3) 0%,
        rgba(255, 0, 255, 0.3) 25%,
        rgba(0, 255, 136, 0.3) 50%,
        rgba(255, 170, 0, 0.3) 75%,
        rgba(0, 212, 255, 0.3) 100%
    );
    background-size: 400% 400%;
    animation: holographic-shimmer 10s ease infinite;
}

/* Neural Network Connections */
.cerebrum-neural-connection {
    stroke: rgba(0, 212, 255, 0.4);
    stroke-width: 2;
    fill: none;
    animation: neural-pulse 2s ease-in-out infinite;
}

@keyframes neural-pulse {
    0%, 100% {
        stroke-opacity: 0.3;
        stroke-width: 2;
    }
    50% {
        stroke-opacity: 0.8;
        stroke-width: 3;
    }
}

.cerebrum-neural-node {
    fill: #00d4ff;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
    animation: node-glow 3s ease-in-out infinite;
}

@keyframes node-glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.9));
    }
}
