/* Boldcase Editorial Bento - Styles */

.halftone-overlay {
    background-image: radial-gradient(circle, #1c1b1b 1px, transparent 1px);
    background-size: 4px 4px;
    mix-blend-mode: multiply;
    opacity: 0.03;
    pointer-events: none;
}

.bento-border {
    border: 1px solid rgba(28, 27, 27, 0.15);
}

.paper-surface {
    background-color: #fcf9f8;
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c5c9b0;
    border-radius: 10px;
}

@keyframes subtle-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.float-anim {
    animation: subtle-float 4s ease-in-out infinite;
}

@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.source-card-anim {
    animation: cardSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Global Editorial Diagonal Highlighter */
.editorial-highlight {
    position: relative !important;
    display: inline-block !important;
    padding: 0 0.3rem !important;
    z-index: 1 !important;
}

.editorial-highlight::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0.12em !important;
    height: 55% !important;
    background-color: var(--highlight-color, #d9ff5f) !important;
    transform: rotate(-1.2deg) skewX(-10deg) !important;
    z-index: -1 !important;
    border-radius: 2px !important;
    pointer-events: none !important;
}


/* Chat Box 10% Scaled Down Typography */
#chat-box {
    font-size: 0.9rem;
}

#chat-box .font-headline-sm {
    font-size: 1.2rem;
}

#chat-box .font-body-lg {
    font-size: 0.95rem;
}

/* Markdown HTML Content Styling (10% smaller) */
.md-body h1, .md-body h2, .md-body h3, .md-body h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    color: #1c1b1b;
    margin-top: 1.1rem;
    margin-bottom: 0.45rem;
}

.md-body h1 { font-size: 1.55rem; }
.md-body h2 { font-size: 1.2rem; }
.md-body h3 { font-size: 1.03rem; }

.md-body p {
    margin-bottom: 0.65rem;
    line-height: 1.55;
    font-size: 0.9rem;
}

.md-body ul, .md-body ol {
    margin-left: 1.35rem;
    margin-bottom: 0.65rem;
    list-style-type: disc;
    font-size: 0.9rem;
}

.md-body li {
    margin-bottom: 0.2rem;
}

.md-body strong {
    font-weight: 700;
    color: #1c1b1b;
}

.md-body code {
    font-family: 'JetBrains Mono', monospace;
    background: #f0edec;
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.78rem;
    color: #516600;
}

.md-body pre {
    background: #1c1b1b;
    color: #fcf9f8;
    padding: 0.85rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

.md-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.85rem;
    font-size: 0.8rem;
}

.md-body th, .md-body td {
    border: 1px solid rgba(28, 27, 27, 0.15);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.md-body th {
    background-color: #f0edec;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.8em;
    text-transform: uppercase;
}
