/* ETTA Module Store - Custom Styles */
/* Author: Biruk Ephrem */

/* htmx indicator */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Line clamp for module summaries */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Prose styling for markdown content */
.prose {
    max-width: none;
}
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #111827;
}
.prose h1 { font-size: 1.875rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose p {
    margin-bottom: 1em;
}
.prose ul, .prose ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li {
    margin-bottom: 0.25em;
}
.prose code {
    background-color: #f3f4f6;
    padding: 0.125em 0.25em;
    border-radius: 0.25em;
    font-size: 0.875em;
}
.prose pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1em;
    border-radius: 0.5em;
    overflow-x: auto;
    margin-bottom: 1em;
}
.prose pre code {
    background-color: transparent;
    padding: 0;
}
.prose img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 0.5em;
}
.prose a {
    color: #4f46e5;
    text-decoration: underline;
}
.prose a:hover {
    color: #4338ca;
}
.prose blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1em;
    font-style: italic;
    color: #6b7280;
    margin: 1em 0;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
.prose th, .prose td {
    border: 1px solid #e5e7eb;
    padding: 0.5em;
    text-align: left;
}
.prose th {
    background-color: #f9fafb;
    font-weight: 600;
}
