/* Custom styles for political news theme */
.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 */
@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);
    border-radius: 4px;
}

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

/* Enhanced focus styles for political theme */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* News item hover effects */
.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 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 */
.bias-meter {
    background: linear-gradient(to right, #10b981 0%, #f59e0b 50%, #ef4444 100%);
}

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

/* Political themed background */
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(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 */
.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 */
button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

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

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

.trending-topic:hover {
    transform: scale(1.02);
}

/* Political themed loading animation */
.loading-political::after {
    content: '🏛️';
    animation: spin 2s linear infinite;
}

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

/* Fact-check result styling */
.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);
}

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

.credibility-medium {
    color: #f59e0b;
}

.credibility-low {
    color: #ef4444;
}

/* Tab transition effects */
.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 */
.export-button {
    background: linear-gradient(45deg, #1f2937, #374151);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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