/* Assetsly Blog — Dark Blue Theme */

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0e1a; }
::-webkit-scrollbar-thumb { background: #1e2a45; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2d3f63; }

/* Selection */
::selection { background: #3b82f6; color: white; }

/* Blog card hover */
.blog-card { transition: all 0.4s cubic-bezier(.22,1,.36,1); }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.blog-card:hover .blog-thumb { transform: scale(1.05); }
.blog-thumb { transition: transform 0.4s ease; }

/* Line clamp */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.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; }
.line-clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Article body typography */
.article-body h1 { font-size: 1.75rem; font-weight: 800; color: #e2e8f0; margin: 2.5rem 0 1rem; line-height: 1.4; }
.article-body h2 { font-size: 1.5rem; font-weight: 700; color: #e2e8f0; margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #1e2a45; }
.article-body h3 { font-size: 1.25rem; font-weight: 600; color: #e2e8f0; margin: 1.5rem 0 0.75rem; }
.article-body h4 { font-size: 1.1rem; font-weight: 600; color: #e2e8f0; margin: 1.25rem 0 0.5rem; }
.article-body p { line-height: 1.9; margin-bottom: 1.25rem; color: #94a3b8; }
.article-body img { border-radius: 0.75rem; margin: 1.5rem 0; max-width: 100%; box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.article-body ul, .article-body ol { padding-right: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.5rem; line-height: 1.8; color: #94a3b8; }
.article-body a { color: #60a5fa; text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.article-body a:hover { color: #93bbfd; }
.article-body blockquote { border-right: 4px solid #3b82f6; padding: 1rem 1.5rem; background: #141c2e; border-radius: 0 0.75rem 0.75rem 0; margin: 1.5rem 0; }
.article-body blockquote p { color: #94a3b8; }
.article-body code { background: #141c2e; padding: 0.2rem 0.5rem; border-radius: 0.25rem; font-size: 0.85rem; color: #60a5fa; }
.article-body pre { background: #141c2e; padding: 1.25rem; border-radius: 0.75rem; overflow-x: auto; margin: 1.5rem 0; border: 1px solid #1e2a45; }
.article-body pre code { background: none; padding: 0; color: #94a3b8; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.article-body th { background: #141c2e; color: #e2e8f0; padding: 0.75rem; text-align: right; font-weight: 600; font-size: 0.85rem; border-bottom: 2px solid #1e2a45; }
.article-body td { padding: 0.75rem; border-bottom: 1px solid #1e2a45; font-size: 0.85rem; color: #94a3b8; }
.article-body tr:hover td { background: #141c2e80; }
.article-body hr { border: none; border-top: 1px solid #1e2a45; margin: 2rem 0; }
.article-body strong { color: #e2e8f0; font-weight: 600; }
.article-body em { color: #60a5fa; }

/* TOC */
.toc-link { transition: all 0.2s; display: block; padding: 0.35rem 0.75rem; border-radius: 0.375rem; }
.toc-link:hover, .toc-link.active { color: #60a5fa; background: rgba(59,130,246,0.08); padding-right: 1rem; }

/* Hero section gradient overlay */
.hero-gradient { background: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(59,130,246,0.08) 50%, transparent 100%); }

/* Featured card glow */
.featured-glow { box-shadow: 0 0 40px rgba(59,130,246,0.08); }
.featured-glow:hover { box-shadow: 0 0 60px rgba(59,130,246,0.15); }

/* Newsletter CTA gradient */
.cta-gradient { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%); }

/* Pagination active */
.page-active { background: #3b82f6; color: white; border-color: #3b82f6; }

/* Comment reply border */
.reply-border { border-right: 2px solid #1e2a45; }

/* Sidebar section header */
.sidebar-heading { color: #60a5fa; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton { background: linear-gradient(90deg, #141c2e 25%, #1e2a45 50%, #141c2e 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }

/* Article share buttons */
.share-btn { transition: all 0.2s; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

/* Rating stars */
.star-btn { transition: transform 0.15s, color 0.15s; }
.star-btn:hover { transform: scale(1.2); }

/* Category badge */
.cat-badge { background: rgba(59,130,246,0.1); color: #60a5fa; }
.cat-badge:hover { background: rgba(59,130,246,0.18); }

/* Post body content wrapper max-width */
.article-body { max-width: 100%; overflow-wrap: break-word; }
.article-body img { height: auto; }

/* Toast notification */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 100; }

/* Responsive table */
@media (max-width: 640px) {
    .article-body table { display: block; overflow-x: auto; }
}

/* Smooth page transitions */
main { animation: fadeInUp 0.3s ease-out; }

/* Theme toggle button */
.theme-toggle { transition: all 0.25s ease; }
.theme-toggle:hover { transform: rotate(30deg); }
