/* Grok Renderer Styles */
.grok-js-content {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

.grok-content-wrapper {
    font-family: inherit;
    line-height: inherit;
    color: inherit;
}

.grok-js-content p {
    margin-bottom: 1em;
}

.grok-js-content h1,
.grok-js-content h2,
.grok-js-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #111827;
}

.grok-js-content h1 {
    font-size: 2em;
}

.grok-js-content h2 {
    font-size: 1.5em;
}

.grok-js-content h3 {
    font-size: 1.25em;
}

.grok-js-content .citation-link {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
}

.grok-js-content .citation-link:hover {
    text-decoration: underline;
    color: #7c3aed;
}

.grok-js-content code {
    background-color: #e0e7ff;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #4338ca;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.grok-js-content pre {
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1em 0;
    position: relative;
}

.grok-js-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.875em;
}

.grok-js-content .grok-code-block {
    display: block;
    white-space: pre;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.grok-js-content strong {
    color: #111827;
    font-weight: 600;
}

.grok-js-content em {
    font-style: italic;
}

.grok-js-content ul,
.grok-js-content ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.grok-js-content li {
    margin-bottom: 0.25em;
}

/* Copy button styling */
.grok-js-content .copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #6366f1;
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.grok-js-content .copy-button:hover {
    opacity: 1;
}

/* Loading placeholder */
.grok-js-content .loading-placeholder {
    color: #6b7280;
    font-style: italic;
    padding: 1rem;
}

/* Blockquote styling */
.grok-js-content blockquote {
    border-left: 4px solid #8b5cf6;
    padding-left: 1rem;
    margin: 1em 0;
    color: #4b5563;
    font-style: italic;
}

/* Table styling */
.grok-js-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.grok-js-content th,
.grok-js-content td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    text-align: left;
}

.grok-js-content th {
    background-color: #f3f4f6;
    font-weight: 600;
}

/* Link styling */
.grok-js-content a {
    color: #6366f1;
    text-decoration: none;
}

.grok-js-content a:hover {
    text-decoration: underline;
    color: #4f46e5;
}