/* Enhanced AI Translation Styles for VulnX Django */

/* AI Content Marker Styles */
.ai-content-marker {
    position: relative;
}

.ai-content-marker::after {
    content: '🤖';
    position: absolute;
    top: -8px;
    right: -20px;
    font-size: 0.75rem;
    opacity: 0.6;
    animation: aiPulse 3s ease-in-out infinite;
}

/* Enhanced AI badges for lists and cards */
.card-ai-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(255,107,107,0.4);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.card-ai-badge i {
    font-size: 0.7rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Language selection dropdown enhancement */
.language-selector-enhanced {
    position: relative;
    display: inline-block;
}

.language-dropdown {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.language-dropdown:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

.language-dropdown.ai-active {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
}

.language-dropdown.ai-active::after {
    content: '🤖';
    margin-left: auto;
    animation: pulse 2s ease-in-out infinite;
}

/* Animations */
@keyframes aiPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

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

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

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .global-ai-indicator {
        top: 10px;
        right: 10px;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .card-ai-badge {
        top: 4px;
        right: 4px;
        padding: 0.1rem 0.3rem;
        font-size: 0.55rem;
    }
    
    .language-dropdown {
        min-width: 100px;
        padding: 0.4rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ai-translation-badge,
    .card-ai-badge,
    .global-ai-indicator {
        background: #d32f2f !important;
        border: 2px solid #000;
    }
    
    .language-dropdown.ai-active {
        background: #ffebee !important;
        border: 2px solid #d32f2f !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ai-content-marker::after,
    .card-ai-badge i,
    .global-ai-indicator i {
        animation: none !important;
    }
    
    .language-dropdown,
    .global-ai-indicator {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    .global-ai-indicator,
    .card-ai-badge,
    .ai-content-marker::after {
        display: none !important;
    }
    
    .ai-translation-badge::after {
        content: ' (AI Translated)';
        color: #666;
        font-weight: normal;
    }
}
