/* Custom styles for Sarah Chen's Blog */

/* Font families */
.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-crimson {
    font-family: 'Crimson Text', serif;
}

/* Custom prose styles for better readability */
.prose {
    line-height: 1.75;
}

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

.prose h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose ul, .prose ol {
    margin-bottom: 1.5rem;
}

.prose li {
    margin-bottom: 0.25rem;
}

/* Enhanced focus styles for accessibility */
input:focus, textarea:focus, select:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Custom animations for interactive elements */
.tag-filter.active {
    transform: scale(1.05);
}

.article-card:hover {
    transform: translateY(-2px);
}

/* Enhanced mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.show {
    max-height: 300px;
    opacity: 1;
}

/* Newsletter signup hover effect */
.newsletter-signup:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Sticky sidebar enhancement */
.sticky {
    position: sticky;
    top: 2rem;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Dark mode support for future implementation */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1f2937;
        --text-color: #f9fafb;
        --accent-color: #60a5fa;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: #ffffff;
    }
    
    .text-gray-600 {
        color: #000000;
    }
    
    .border-gray-200 {
        border-color: #000000;
    }
}

/* Focus visible for better keyboard navigation */
.focus-visible:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

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

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success states */
.success {
    border-color: #10b981;
    background-color: #ecfdf5;
}

/* Error states */
.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}