/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@keyframes fade-out {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.animate-fade-out {
    animation: fade-out 0.4s ease-out forwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Delay utilities for staggered animations */
.delay-75 {
    animation-delay: 75ms;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-150 {
    animation-delay: 150ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-700 {
    animation-delay: 700ms;
}

/* Chat Message Prose Styling */
.prose p {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

.prose p:first-child {
    margin-top: 0;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    text-decoration: none !important;
    border-bottom: none !important;
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.prose ul,
.prose ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 1.25em;
}

.prose li {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

.prose a {
    text-decoration: none !important;
}

.prose a:hover {
    text-decoration: underline !important;
}

/* Blog post content typography */
.blog-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-content p {
    margin-top: 0;
    margin-bottom: 1.35rem;
    color: #475569;
    line-height: 1.85;
}

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

.blog-content ul {
    list-style-type: none;
    padding-left: 0;
}

.blog-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: #475569;
    line-height: 1.75;
}

.blog-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7c3aed;
}

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

.blog-content ol li {
    margin-bottom: 0.6rem;
    color: #475569;
    line-height: 1.75;
    padding-left: 0.25rem;
}

.blog-content strong {
    font-weight: 700;
    color: #1e293b;
}

.blog-content a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}

.blog-content a:hover {
    text-decoration: underline;
}

.blog-content blockquote {
    border-left: 3px solid #7c3aed;
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: #f5f3ff;
    border-radius: 0 8px 8px 0;
    color: #4c1d95;
    font-style: italic;
}