/* * FILE: style-blog.css
 * Description: Blog-specific styles for URLZY.IN blogs
 */

/* Blog Article Page */
.blog-article-wrap { background-color: #f8fafc; }
.dark .blog-article-wrap { background-color: #090d16; }
.article-content h2 { font-size: 1.75rem; font-weight: 800; margin-top: 2.5rem; margin-bottom: 1rem; color: #1e293b; }
.dark .article-content h2 { color: #f1f5f9; }
.article-content h3 { font-size: 1.35rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; color: #334155; }
.dark .article-content h3 { color: #e2e8f0; }
.article-content h4 { font-size: 1.1rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.5rem; color: #475569; }
.dark .article-content h4 { color: #cbd5e1; }
.article-content p { margin-bottom: 1.25rem; line-height: 1.8; color: #64748b; }
.dark .article-content p { color: #94a3b8; }
.article-content ul { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-content ul li { list-style: disc; margin-bottom: 0.5rem; color: #64748b; line-height: 1.7; }
.dark .article-content ul li { color: #94a3b8; }
.article-content ul li strong { color: #334155; }
.dark .article-content ul li strong { color: #e2e8f0; }
.article-content a { color: #6366f1; text-decoration: underline; }
.article-content a:hover { color: #4f46e5; }
.article-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.5rem 0; }
.article-content blockquote { border-left: 4px solid #6366f1; padding: 1rem 1.5rem; margin: 1.5rem 0; background: #f8fafc; border-radius: 0 12px 12px 0; }
.dark .article-content blockquote { background: rgba(99,102,241,0.05); border-left-color: #818cf8; }
.article-content code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 0.875rem; color: #6366f1; }
.dark .article-content code { background: #1e293b; color: #a5b4fc; }
.article-content pre { background: #1e293b; color: #e2e8f0; padding: 1.5rem; border-radius: 12px; overflow-x: auto; margin: 1.5rem 0; }
.article-content pre code { background: transparent; color: inherit; padding: 0; }

/* Table of Contents */
.toc-sidebar { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.toc-sidebar a { display: block; padding: 6px 12px; font-size: 0.8rem; color: #64748b; text-decoration: none; border-left: 2px solid transparent; transition: all 0.2s; border-radius: 0 6px 6px 0; }
.toc-sidebar a:hover { color: #6366f1; background: rgba(99,102,241,0.05); }
.toc-sidebar a.active { color: #6366f1; border-left-color: #6366f1; font-weight: 600; background: rgba(99,102,241,0.05); }
.toc-sidebar a.toc-h3 { padding-left: 24px; font-size: 0.75rem; }

/* Author Card */
.author-card { background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%); border: 1px solid #e2e8f0; }
.dark .author-card { background: linear-gradient(135deg, rgba(15,23,42,0.5) 0%, rgba(99,102,241,0.05) 100%); border-color: #334155; }

/* FAQ Section */
.faq-item { border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; transition: all 0.3s; background: #ffffff; }
.faq-item:hover { border-color: #c7d2fe; box-shadow: 0 2px 12px rgba(99,102,241,0.08); }
.dark .faq-item { border-color: #334155; background: rgba(15,23,42,0.5); }
.dark .faq-item:hover { border-color: #4f46e5; box-shadow: 0 2px 12px rgba(99,102,241,0.15); }
.faq-item .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; padding: 0 1.5rem; }
.faq-item.open .faq-answer { max-height: 600px; padding: 0 1.5rem 1rem 1.5rem; }
.faq-item button { outline: none; }
.faq-item button:focus-visible { box-shadow: 0 0 0 2px #6366f1; border-radius: 12px; }
.faq-item.open > button i.fa-chevron-down { transform: rotate(180deg); }

/* Comment Section */
.comment-item { border-bottom: 1px solid #f1f5f9; }
.dark .comment-item { border-bottom-color: #1e293b; }
.comment-reply { margin-left: 2rem; border-left: 2px solid #e2e8f0; padding-left: 1rem; }
.dark .comment-reply { border-left-color: #334155; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* Global Blog Page Styles */
body { background-color: #f8fafc !important; color: #1e293b !important; }
.dark body { background-color: #090d16 !important; color: #f1f5f9 !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #e2e8f0; }
.dark ::-webkit-scrollbar-track { background: #090d16; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
.dark ::-webkit-scrollbar-thumb { background: #1e293b; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }
.dark ::-webkit-scrollbar-thumb:hover { background: #334155; }

/* Blog Hub Page */
.blog-content-wrap { background-color: #f8fafc; }
.dark .blog-content-wrap { background-color: #090d16; }
.blog-card { background-color: #ffffff; border-color: #e2e8f0; transition: all 0.3s; }
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.dark .blog-card { background-color: rgba(15,23,42,0.4); border-color: rgba(51,65,85,0.8); }
.dark .blog-card:hover { border-color: rgba(99,102,241,0.5); }
.blog-card-text { color: #1e293b; }
.dark .blog-card-text { color: #f1f5f9; }
.blog-card-muted { color: #64748b; }
.dark .blog-card-muted { color: #94a3b8; }
.blog-section-bg { background-color: #ffffff; }
.dark .blog-section-bg { background-color: rgba(15,23,42,0.3); }
.blog-section-alt { background-color: #f8fafc; }
.dark .blog-section-alt { background-color: rgba(15,23,42,0.5); }
.blog-hero-bg { background-color: #f8fafc; }
.dark .blog-hero-bg { background-color: #090d16; }
.blog-tool-bg { background-color: #ffffff; }
.dark .blog-tool-bg { background-color: rgba(15,23,42,0.5); }
.card-preview-img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px 12px 0 0; }
.glow-effect { position: relative; }
.glow-effect::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(to bottom right, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.1), rgba(16, 185, 129, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}
.text-gradient {
    background: linear-gradient(to right, #8b5cf6, #6366f1, #10b981);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.youtube-card {
    transition: all 0.3s ease;
    background: var(--youtube-card-bg, linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)));
    backdrop-filter: blur(4px);
}
.youtube-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.3);
}
.shorts-card-bg { background-color: #f8fafc; border-color: #e2e8f0; }
.dark .shorts-card-bg { background: linear-gradient(135deg, #1e293b, #0f172a); border-color: #334155; }
.shorts-thumb {
    aspect-ratio: 9/16;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    position: relative;
    overflow: hidden;
}
.shorts-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 40%);
}
.play-button {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: rgba(239,68,68,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(239,68,68,0.3);
}
.youtube-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 50px rgba(239,68,68,0.5);
}
.play-button i {
    color: white;
    font-size: 20px;
    margin-left: 3px;
}
.pagination-btn { transition: all 0.2s ease; }
.pagination-btn:not(.active):hover { transform: translateY(-1px); }
.pagination-btn.active { cursor: default; }
.pagination-btn:disabled { cursor: not-allowed; opacity: 0.5; }
.category-tab.active { background: #4f46e5; color: white; border-color: #4f46e5; }

/* Social Share Bar */
.share-bar-card { background: #ffffff; border: 1px solid #e2e8f0; }
.dark .share-bar-card { background: rgba(15,23,42,0.6); border-color: #334155; }
.share-bar-card a, .share-bar-card button { transition: all 0.2s; }
.share-bar-card a:hover, .share-bar-card button:hover { transform: translateX(4px); }
.share-bar-card .share-btn-linkedin:hover { color: #0077B5; }
.share-bar-card .share-btn-x:hover { color: #000; }
.dark .share-bar-card .share-btn-x:hover { color: #fff; }
.share-bar-card .share-btn-facebook:hover { color: #1877F2; }
.share-bar-card .share-btn-threads:hover { color: #000; }
.dark .share-bar-card .share-btn-threads:hover { color: #fff; }
.share-bar-card .share-btn-copy.copied { color: #10b981; }

/* Enhanced Author Card */
.author-card-profile { background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #fdf2f8 100%); border: 1px solid #e2e8f0; }
.dark .author-card-profile { background: linear-gradient(135deg, rgba(15,23,42,0.5) 0%, rgba(99,102,241,0.05) 50%, rgba(236,72,153,0.03) 100%); border-color: #334155; }

/* Mobile TOC + Share Bottom Sheet */
#mobile-toc-sheet { transition: opacity 0.3s; }
#mobile-toc-panel { -webkit-overflow-scrolling: touch; }
#mobile-toc-btn { z-index: 51; }
