/* Minty Assets - Custom Styles */

:root {
    --color-primary: #059669;
    --color-primary-light: #10b981;
    --color-primary-bg: rgb(16 185 129 / 0.1);
}

/* Sidebar active state */
.sidebar-link.active {
    background-color: var(--color-primary-bg);
    color: var(--color-primary);
    border-right: 3px solid var(--color-primary);
}

/* Toast notifications */
.toast {
    animation: slideInRight 0.3s ease-out;
}

.toast.toast-dismissing {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
    from { transform: translateX(calc(100% + 1.5rem)); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(calc(100% + 1.5rem)); opacity: 0; }
}

.toast-progress {
    animation: shrink linear forwards;
}

@keyframes shrink {
    from { width: 100%; }
    to { width: 0%; }
}

/* Confirm modal */
.confirm-backdrop {
    animation: fadeIn 0.15s ease-out;
}

.confirm-dialog {
    animation: scaleIn 0.15s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: translate(-50%, -50%) scale(0.95); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

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

/* Table sorting */
th[data-sort] {
    cursor: pointer;
    user-select: none;
}
th[data-sort]:hover {
    background-color: rgb(243 244 246);
}

/* Print styles are in /css/print.css (loaded with media="print") */

.print-header {
    display: none;
}

/* Loading spinner */
.spinner {
    border: 3px solid #e5e7eb;
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tab active state */
.tab-link.active {
    border-bottom-color: var(--color-primary);
    color: var(--color-primary);
}

/* Blog prose styles */
.blog-prose h2,
.blog-prose h3 { font-family: 'Newsreader', Georgia, serif; }
.blog-prose h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; font-weight: 600; color: #111827; scroll-margin-top: 5rem; }
.blog-prose h3 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; font-weight: 600; color: #111827; }
.blog-prose p { line-height: 1.75; color: #4b5563; margin-bottom: 1.25rem; }
.blog-prose ul, .blog-prose ol { color: #4b5563; margin-bottom: 1.25rem; padding-left: 1.5rem; }
.blog-prose li { margin-bottom: 0.5rem; line-height: 1.75; }
.blog-prose ul { list-style-type: disc; }
.blog-prose ol { list-style-type: decimal; }
.blog-prose strong { color: #111827; font-weight: 600; }
.blog-prose a { color: #059669; text-decoration: none; }
.blog-prose a:hover { text-decoration: underline; }
.blog-prose figure { margin: 2rem 0; }
.blog-prose figure img { border-radius: 0.75rem; cursor: zoom-in; }
.blog-prose figure figcaption { margin-top: 0.5rem; font-size: 0.8125rem; color: #9ca3af; text-align: center; }
.blog-prose img { border-radius: 0.75rem; margin: 2rem 0; }
.blog-prose table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-bottom: 1.5rem; }

/* Blog image lightbox */
.blog-lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.85); align-items: center; justify-content: center; cursor: zoom-out; }
.blog-lightbox.active { display: flex; }
.blog-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 0.5rem; box-shadow: 0 25px 50px rgba(0,0,0,0.4); }
.blog-prose thead th { background-color: #f9fafb; text-align: left; font-weight: 600; color: #374151; padding: 0.625rem 1rem; border-bottom: 2px solid #e5e7eb; }
.blog-prose tbody td { padding: 0.5rem 1rem; border-bottom: 1px solid #f3f4f6; color: #4b5563; }
.blog-prose em { font-style: italic; }
.blog-prose code { font-size: 0.875em; background: #f3f4f6; padding: 0.125rem 0.375rem; border-radius: 0.25rem; }

/* AEO: Definition terms and blocks */
.blog-prose dfn { font-style: normal; font-weight: 600; color: #111827; }
.blog-prose .definition-block { background: #f0fdf4; border-left: 3px solid #059669; padding: 0.875rem 1rem; margin-bottom: 1.25rem; border-radius: 0 0.5rem 0.5rem 0; font-size: 0.9375rem; line-height: 1.6; color: #374151; }

/* AEO: FAQ section */
.blog-prose.faq-section h3 { font-size: 1.125rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.blog-prose.faq-section p { margin-bottom: 1rem; }
