/* Additional utilities for blog and pages */

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

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

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

/* Smooth animations */
.transition-all {
    transition: all 0.3s ease;
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Hover effects for cards */
.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
}

/* Focus styles for accessibility */
.focus-visible\:ring-2:focus-visible {
    outline: none;
    ring-width: 2px;
    ring-color: #3b82f6;
    ring-offset-width: 2px;
}

/* Custom scrollbar for webkit browsers */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Typography enhancements */
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    scroll-margin-top: 2rem;
}

.prose a {
    position: relative;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: #1d4ed8;
}

.prose blockquote {
    border-left: 4px solid #3b82f6;
    background: #f8fafc;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.prose code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875em;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .blog-card:hover {
        transform: none;
    }
    
    .prose {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .prose a:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}