/* Tailwind CSS v3 */
/* Font Awesome */
/* AOS - Animate On Scroll */

@layer utilities {
    .text-shadow {
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }
    .transition-all-300 {
        transition: all 300ms ease-in-out;
    }
    .glass-effect {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Custom styles */
body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
}

.article-card {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

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

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Mobile menu animation */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Search results highlight */
.highlight {
    background-color: rgba(245, 158, 11, 0.2);
    padding: 0 2px;
    border-radius: 2px;
}

/* Article page styles */
.article-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-meta {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.article-body {
    color: #1f2937;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-body ul, .article-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-body ul {
    list-style-type: disc;
}

.article-body ol {
    list-style-type: decimal;
}

.article-body a {
    color: #3b82f6;
    text-decoration: underline;
}

.article-body blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    font-style: italic;
    color: #6b7280;
    margin: 1.5rem 0;
}

/* Related articles section */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.related-articles h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.related-articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Back to home button */
.back-to-home {
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
    text-decoration: none;
    margin-bottom: 1rem;
}

.back-to-home:hover {
    color: #2563eb;
}

.back-to-home i {
    margin-right: 0.5rem;
}
