/* Emotion Analysis Display Styles */
.emotion-analysis-display {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 1000;
    min-width: 250px;
    max-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.emotion-analysis-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
}

.emotion-analysis-header i {
    margin-right: 8px;
    font-size: 16px;
    color: #ffd700;
}

.emotion-analysis-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.emotion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.emotion-item:last-child {
    border-bottom: none;
}

.emotion-label {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.emotion-value {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    min-width: 40px;
    text-align: center;
}

/* Stress Level Colors */
.emotion-value.high-stress {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.emotion-value.medium-stress {
    background: linear-gradient(135deg, #ffa726, #ff9800);
    color: white;
}

.emotion-value.low-stress {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    color: white;
}

/* Engagement Level Colors */
.emotion-value.high-engagement {
    background: linear-gradient(135deg, #42a5f5, #2196f3);
    color: white;
}

.emotion-value.medium-engagement {
    background: linear-gradient(135deg, #ab47bc, #9c27b0);
    color: white;
}

.emotion-value.low-engagement {
    background: linear-gradient(135deg, #ef5350, #f44336);
    color: white;
}

/* Primary Emotion Colors */
.emotion-value[data-emotion="mutlu"] {
    background: linear-gradient(135deg, #ffd700, #ffc107);
    color: #333;
}

.emotion-value[data-emotion="üzgün"] {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    color: white;
}

.emotion-value[data-emotion="kızgın"] {
    background: linear-gradient(135deg, #ef5350, #f44336);
    color: white;
}

.emotion-value[data-emotion="korkmuş"] {
    background: linear-gradient(135deg, #ba68c8, #ab47bc);
    color: white;
}

.emotion-value[data-emotion="şaşırmış"] {
    background: linear-gradient(135deg, #ffb74d, #ff9800);
    color: white;
}

.emotion-value[data-emotion="nötr"] {
    background: linear-gradient(135deg, #90a4ae, #78909c);
    color: white;
}

.emotion-value[data-emotion="gergin"] {
    background: linear-gradient(135deg, #ff7043, #ff5722);
    color: white;
}

.emotion-value[data-emotion="rahat"] {
    background: linear-gradient(135deg, #81c784, #66bb6a);
    color: white;
}

.emotion-value[data-emotion="güvenli"] {
    background: linear-gradient(135deg, #4db6ac, #26a69a);
    color: white;
}

.emotion-value[data-emotion="endişeli"] {
    background: linear-gradient(135deg, #ff8a65, #ff7043);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .emotion-analysis-display {
        position: fixed;
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
}

/* Animation for value changes */
.emotion-value {
    transition: all 0.3s ease;
}

.emotion-value.updating {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Hide/show animation */
.emotion-analysis-display.hidden {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
