/* Knowledge Hub Custom Styles */

/* Typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn-primary {
    @apply bg-blue-600 text-white px-6 py-3 rounded-lg font-medium transition-all duration-200;
}

.btn-primary:hover {
    @apply bg-blue-700 shadow-lg;
}

.btn-outline {
    @apply border-2 border-blue-600 text-blue-600 px-6 py-3 rounded-lg font-medium transition-all duration-200;
}

.btn-outline:hover {
    @apply bg-blue-600 text-white;
}

/* Form Styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200;
}

.form-input:focus {
    @apply outline-none;
}

/* Badge Styles */
.badge {
    @apply inline-flex items-center px-3 py-1 rounded-full text-xs font-medium;
}

.badge-blue {
    @apply bg-blue-100 text-blue-700;
}

.badge-green {
    @apply bg-green-100 text-green-700;
}

.badge-orange {
    @apply bg-orange-100 text-orange-700;
}

/* Prose Content Styling */
.prose h2 {
    @apply text-2xl font-bold text-gray-900 mt-8 mb-4;
}

.prose h3 {
    @apply text-xl font-semibold text-gray-800 mt-6 mb-3;
}

.prose p {
    @apply text-gray-600 leading-relaxed mb-4;
}

.prose ul {
    @apply list-disc list-inside text-gray-600 mb-4 space-y-2;
}

.prose ol {
    @apply list-decimal list-inside text-gray-600 mb-4 space-y-2;
}

.prose a {
    @apply text-blue-600 hover:text-blue-700 underline;
}

.prose img {
    @apply rounded-lg shadow-md my-6;
}

.prose blockquote {
    @apply border-l-4 border-blue-500 pl-4 italic text-gray-700 my-6;
}

.prose table {
    @apply w-full border-collapse my-6;
}

.prose th {
    @apply bg-gray-100 px-4 py-2 text-left font-semibold text-gray-700 border border-gray-200;
}

.prose td {
    @apply px-4 py-2 border border-gray-200;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Toast Notifications */
.toast {
    @apply px-6 py-3 rounded-lg shadow-lg text-white;
    animation: slideIn 0.3s ease-out;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        @apply text-3xl;
    }
    
    .section-title {
        @apply text-2xl;
    }
}

/* Line Clamp Utility */
.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;
}
