* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 3px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #6b7280;
}

/* Animations */
@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.animate-bounce {
    animation: bounce 1.4s infinite ease-in-out;
}

/* Focus styles */
input:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgb(107 114 128 / 0.5);
}

/* Prose styles for markdown content */
.prose {
    max-width: none;
}

.prose pre {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.dark .prose pre {
    background-color: #1f2937;
}

/* Line clamping utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* News card hover effects */
.news-card-hover {
    transition: all 0.2s ease-in-out;
}

.news-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark .news-card-hover:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}