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

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

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

.animate-slideUp {
    animation: slideUp 0.3s ease-out;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prose {
    font-size: 1.125rem;
    line-height: 1.75;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose blockquote {
    font-style: italic;
    border-left: 4px solid #CC0000;
    padding-left: 1.5rem;
    margin: 2rem 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for dark mode */
.dark::-webkit-scrollbar {
    width: 10px;
}

.dark::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.dark::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 5px;
}

.dark::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* Article card hover effects */
article:hover img {
    transform: scale(1.05);
}

/* Breaking news pulse */
@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse {
    animation: pulse-red 1.5s ease-in-out infinite;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.dark .skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .prose {
        font-size: 1rem;
    }
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #CC0000;
    outline-offset: 2px;
}

/* Transition for dark mode */
* {
    transition-property: background-color, border-color;
    transition-duration: 200ms;
}