/* Hume EVI 3 Widget Styles */
.hume-evi3-widget {
    max-width: 600px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hume-evi3-error {
    padding: 15px;
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
    border-radius: 5px;
    margin: 20px 0;
}

.hume-evi3-container {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.hume-evi3-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hume-evi3-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.hume-evi3-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    animation: pulse 2s infinite;
}

.hume-evi3-status[data-status="connecting"] .status-dot {
    background: #ffa500;
}

.hume-evi3-status[data-status="connected"] .status-dot {
    background: #4caf50;
}

.hume-evi3-status[data-status="disconnected"] .status-dot {
    background: #f44336;
    animation: none;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hume-evi3-messages {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.hume-evi3-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    animation: fadeIn 0.3s;
}

.hume-evi3-message-user {
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.hume-evi3-message-assistant {
    background: #f3e5f5;
    border-left: 3px solid #9c27b0;
}

.hume-evi3-message strong {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hume-evi3-error-message {
    background: #ffebee;
    color: #c62828;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid #f44336;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.hume-evi3-controls {
    padding: 20px;
    background: white;
    text-align: center;
}

.hume-evi3-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.hume-evi3-connect-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.hume-evi3-connect-btn:active:not(:disabled) {
    transform: translateY(0);
}

.hume-evi3-connect-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hume-evi3-connect-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.hume-evi3-volume-indicator {
    margin: 20px auto 0;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 8px;
}

.hume-evi3-volume-indicator canvas {
    display: block;
    width: 100%;
    height: 50px;
    border-radius: 4px;
}

.hume-evi3-info {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.hume-evi3-info small {
    color: #666;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 640px) {
    .hume-evi3-widget {
        margin: 10px;
    }
    
    .hume-evi3-messages {
        height: 250px;
    }
    
    .hume-evi3-header {
        padding: 15px;
    }
    
    .hume-evi3-header h3 {
        font-size: 18px;
    }
    
    .hume-evi3-connect-btn {
        padding: 10px 20px;
        font-size: 15px;
    }
}

/* WordPress Admin Compatibility */
.wp-admin .hume-evi3-widget {
    font-size: 14px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .hume-evi3-container {
        background: #1e1e1e;
        border-color: #333;
    }
    
    .hume-evi3-messages {
        background: #2a2a2a;
        border-color: #333;
    }
    
    .hume-evi3-message-user {
        background: #1e3a5f;
    }
    
    .hume-evi3-message-assistant {
        background: #4a1e5f;
    }
    
    .hume-evi3-controls {
        background: #1e1e1e;
    }
    
    .hume-evi3-info {
        background: #2a2a2a;
        border-color: #333;
    }
    
    .hume-evi3-info small {
        color: #aaa;
    }
}