﻿/* TailwindCSS custom additions */
@layer utilities {
    .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; }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 30s linear infinite; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.animate-pulse-dot { animation: pulse-dot 1.5s ease-in-out infinite; }

/* Article Content Styles */
.article-content h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; color: #0f172a; }
.article-content h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.75rem; color: #0f172a; }
.article-content p { margin-bottom: 1.25rem; line-height: 1.8; color: #475569; }
.article-content ul, .article-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; color: #475569; }
.article-content blockquote { border-left: 4px solid #dc2626; padding-left: 1rem; margin: 1.5rem 0; font-style: italic; color: #64748b; background: #f8fafc; padding: 1rem 1.5rem; border-radius: 0 0.75rem 0.75rem 0; }
.article-content img { border-radius: 0.75rem; margin: 1.5rem 0; max-width: 100%; height: auto; }
.article-content pre { background: #0f172a; color: #e2e8f0; padding: 1.25rem; border-radius: 0.75rem; overflow-x: auto; margin: 1.5rem 0; }
.article-content code { font-size: 0.875rem; }
.article-content a { color: #dc2626; text-decoration: underline; }
.article-content a:hover { color: #b91c1c; }

/* Dark Mode */
.dark .article-content h2, .dark .article-content h3 { color: #f1f5f9; }
.dark .article-content p { color: #94a3b8; }
.dark .article-content li { color: #94a3b8; }
.dark .article-content blockquote { background: #1e293b; color: #94a3b8; border-color: #dc2626; }

/* Loading spinner */
.loading-spinner { width: 40px; height: 40px; border: 3px solid #e2e8f0; border-top-color: #dc2626; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.dark ::-webkit-scrollbar-track { background: #1e293b; }
.dark ::-webkit-scrollbar-thumb { background: #475569; }

/* Smooth transitions for dark mode */
html { transition: background-color 0.3s, color 0.3s; }

/* Frontend Dark Mode - elements not covered by Tailwind */
.dark .shadow-card { box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.dark .shadow-card-hover { box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.dark .shadow-nav { box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.dark .bg-white\/95 { background-color: rgba(15, 23, 42, 0.95); }
.dark .bg-dark-900\/95 { background-color: rgba(2, 6, 23, 0.95); }
.dark .text-dark-900 { color: #f1f5f9; }
.dark .text-dark-700 { color: #e2e8f0; }
.dark .border-gray-100 { border-color: #334155; }
.dark .border-gray-200 { border-color: #475569; }
.dark .bg-gray-50 { background: #1e293b; }
.dark .bg-gray-100 { background: #334155; }
.dark .hover\:bg-gray-50:hover { background: #1e293b; }
.dark .hover\:text-dark-900:hover { color: #f1f5f9; }
.dark .text-dark-700 { color: #e2e8f0; }
.dark .text-dark-900 { color: #f1f5f9; }
.dark .prose-sm :where(h1, h2, h3, h4) { color: #f1f5f9; }
.dark .prose-sm :where(p, li) { color: #94a3b8; }
.dark .prose-sm :where(strong) { color: #e2e8f0; }
.dark aside.bg-white { background: #1e293b; }
