/* assets/css/style.css */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/inter.woff2') format('woff2');
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

/* HTMX Swap Transitions */
#content {
    transition: opacity 0.2s ease-out;
}
#content.htmx-swapping {
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

/* HTMX Loading Indicator */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: block;
}
.htmx-request.htmx-indicator {
    display: block;
}

/* Fallback Prose Styles for Editor and Frontend */
.prose ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.prose ol {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.prose li {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}
.prose h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3333333;
}
.prose p {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
    line-height: 1.6;
}
.prose a {
    text-decoration: underline;
    color: #2563eb;
}
.dark .prose a {
    color: #60a5fa;
}
