/* Custom styles for political news theme with visual intelligence */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Floating particles animation with visual elements */
@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Political color scheme scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #dc2626, #2563eb, #9333ea);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ef4444, #3b82f6, #a855f7);
}

/* Enhanced focus styles for political theme with visual accents */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2), 0 0 0 6px rgba(147, 51, 234, 0.1);
}

/* News item hover effects with visual indicators */
.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 4px 15px rgba(147, 51, 234, 0.2);
}

/* Political sentiment indicators */
.sentiment-positive {
    background: linear-gradient(45deg, #10b981, #34d399);
}

.sentiment-negative {
    background: linear-gradient(45deg, #ef4444, #f87171);
}

.sentiment-neutral {
    background: linear-gradient(45deg, #6b7280, #9ca3af);
}

/* Bias meter styling with visual enhancements */
.bias-meter {
    background: linear-gradient(to right, #10b981 0%, #f59e0b 50%, #ef4444 100%);
}

/* Enhanced glassmorphism for political theme with visual AI accents */
.backdrop-blur-sm {
    backdrop-filter: blur(16px);
    background: rgba(0, 0, 0, 0.1);
}

/* Political themed background with visual AI elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 85%, rgba(239, 68, 68, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(147, 51, 234, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 25% 25%, rgba(75, 85, 99, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* News feed animation */
.news-feed {
    animation: slideInLeft 0.5s ease-out;
}

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

/* Message bubble animations with visual integration */
.message-bubble {
    animation: fadeInUp 0.3s ease-out;
}

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

/* Button hover effects for political theme with visual AI accents */
button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2), 0 2px 8px rgba(147, 51, 234, 0.1);
}

button:not(:disabled):active {
    transform: translateY(0);
}

/* Trending topic animations with visual indicators */
.trending-topic {
    transition: all 0.3s ease;
}

.trending-topic:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

/* Political themed loading animation with visual AI */
.loading-political::after {
    content: '🎨';
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Fact-check result styling with visual verification */
.fact-check-result {
    border-left: 4px solid #10b981;
    background: linear-gradient(to right, rgba(16, 185, 129, 0.1), transparent);
}

.fact-check-false {
    border-left: 4px solid #ef4444;
    background: linear-gradient(to right, rgba(239, 68, 68, 0.1), transparent);
}

.fact-check-visual {
    border-left: 4px solid #9333ea;
    background: linear-gradient(to right, rgba(147, 51, 234, 0.1), transparent);
}

/* News credibility indicator with visual AI enhancement */
.credibility-high {
    color: #10b981;
}

.credibility-medium {
    color: #f59e0b;
}

.credibility-low {
    color: #ef4444;
}

/* Tab transition effects with visual elements */
.tab-content {
    animation: fadeIn 0.4s ease-in-out;
}

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

/* Political analysis export styling with visual integration */
.export-button {
    background: linear-gradient(45deg, #1f2937, #374151, #581c87);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.export-button:hover {
    background: linear-gradient(45deg, #374151, #4b5563, #6b21a8);
}

/* Image generation status indicators */
.image-generating {
    position: relative;
    overflow: hidden;
}

.image-generating::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Visual report gallery styling */
.visual-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.visual-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.visual-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3);
}

/* Enhanced message styling with visual integration */
.message-with-visual {
    border: 1px solid rgba(147, 51, 234, 0.3);
    background: linear-gradient(to right, rgba(147, 51, 234, 0.1), transparent);
}

/* Political portrait styling */
.political-portrait {
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.political-portrait:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(1.1);
}

/* Infographic styling */
.infographic-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Editorial cartoon styling */
.editorial-cartoon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.3);
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.editorial-cartoon:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Campaign poster styling */
.campaign-poster {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(59, 130, 246, 0.2));
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.campaign-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    pointer-events: none;
}

/* Visual theme indicator */
.visual-theme-professional {
    border-left: 4px solid #059669;
}

.visual-theme-creative {
    border-left: 4px solid #7c3aed;
}

.visual-theme-editorial {
    border-left: 4px solid #dc2626;
}

/* Image loading placeholder */
.image-placeholder {
    background: linear-gradient(45deg, #374151, #4b5563);
    animation: pulse 2s infinite;
}

/* Political timeline styling */
.political-timeline {
    position: relative;
    border-left: 3px solid rgba(147, 51, 234, 0.5);
    padding-left: 2rem;
}

.political-timeline::before {
    content: '🏛️';
    position: absolute;
    left: -12px;
    top: 0;
    background: rgba(147, 51, 234, 0.2);
    border-radius: 50%;
    padding: 4px;
}

/* Visual AI status indicator */
.visual-ai-status {
    position: relative;
    display: inline-block;
}

.visual-ai-status::after {
    content: '🎨';
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 12px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-8px,0);
    }
    70% {
        transform: translate3d(0,-4px,0);
    }
    90% {
        transform: translate3d(0,-2px,0);
    }
}