/* MaxiBots — Custom Styles */

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

/* Section fade-in animation */
.section-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hide scrollbar for horizontal scroll containers */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Blog/prose content styles */
.prose-content {
    color: #636e72;
    line-height: 1.75;
}

.prose-content h1 {
    color: #2d3436;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.prose-content h2 {
    color: #2d3436;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.prose-content h3 {
    color: #2d3436;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.prose-content p {
    margin-bottom: 1.25rem;
}

.prose-content a {
    color: #4a90d9;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.prose-content a:hover {
    color: #3672b3;
}

.prose-content ul,
.prose-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.prose-content ul {
    list-style-type: disc;
}

.prose-content ol {
    list-style-type: decimal;
}

.prose-content li {
    margin-bottom: 0.5rem;
}

.prose-content blockquote {
    border-left: 3px solid #4a90d9;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #636e72;
}

.prose-content code {
    background: #f1f2f6;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.prose-content pre {
    background: #2d3436;
    color: #dfe6e9;
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.prose-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

.prose-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.prose-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.prose-content th,
.prose-content td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    text-align: left;
}

.prose-content th {
    background: #f8f9fa;
    color: #2d3436;
    font-weight: 600;
}

.prose-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}

/* Line clamp utilities (fallback for older browsers) */
.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;
}

/* Sticky header shadow on scroll (controlled by JS) */
.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #4a90d9;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(74, 144, 217, 0.15);
    color: #2d3436;
}
