/* LetMeSEO Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

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

/* Focus ring */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Line clamp utility */
.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;
}

/* Animation delay utilities */
.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }
.animate-delay-400 { animation-delay: 400ms; }
.animate-delay-500 { animation-delay: 500ms; }

/* Prose styles for markdown content */
.prose h1 { font-size: 1.875rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; }
.prose h2 { font-size: 1.5rem; font-weight: 600; margin-top: 1.75rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1rem; line-height: 1.75; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.25rem; }
.prose a { color: #3b82f6; text-decoration: underline; }
.prose code { background: #f1f5f9; padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.875rem; }
.dark .prose code { background: #1e293b; }
.prose pre { background: #1e293b; color: #e2e8f0; padding: 1rem; border-radius: 0.5rem; overflow-x: auto; margin-bottom: 1rem; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { max-width: 100%; border-radius: 0.5rem; margin: 1.5rem 0; }
.prose blockquote { border-left: 3px solid #3b82f6; padding-left: 1rem; margin: 1rem 0; color: #64748b; }
.dark .prose blockquote { color: #94a3b8; }

/* Loading spinner animation */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spin-slow 2s linear infinite;
}

/* FAQ active state */
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

/* Smooth transitions for theme toggle */
html {
    transition: color-scheme 0.2s;
}

/* Form elements consistency */
input[type="checkbox"] {
    border-radius: 0.25rem;
    border-color: #d1d5db;
}
.dark input[type="checkbox"] {
    border-color: #4b5563;
}

/* Responsive table helpers */
@media (max-width: 640px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
