/* Blog-specific styles */

/* Blog content formatting */
.prose {
    color: #374151;
    max-width: 65ch;
    line-height: 1.75;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose h1 {
    font-size: 2.25em;
    margin-top: 0;
    margin-bottom: 0.8888889em;
    line-height: 1.1111111;
    font-weight: 700;
    color: #111827;
}

.prose h2 {
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3333333;
    font-weight: 700;
    color: #111827;
}

.prose h3 {
    font-size: 1.25em;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    line-height: 1.6;
    font-weight: 600;
    color: #111827;
}

.prose a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

.prose a:hover {
    color: #1d4ed8;
}

.prose strong {
    font-weight: 600;
    color: #111827;
}

.prose ol {
    counter-reset: list-counter;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    list-style-type: none;
    padding-left: 1.625em;
}

.prose ol > li {
    position: relative;
    counter-increment: list-counter;
    padding-left: 1.75em;
}

.prose ol > li::before {
    content: counter(list-counter) ".";
    position: absolute;
    font-weight: 400;
    color: #6b7280;
    left: 0;
}

.prose ul {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    list-style-type: disc;
    padding-left: 1.625em;
}

.prose ul > li {
    position: relative;
    padding-left: 0.375em;
}

.prose blockquote {
    font-weight: 500;
    font-style: italic;
    color: #111827;
    border-left-width: 0.25rem;
    border-left-color: #e5e7eb;
    quotes: "\201C""\201D""\2018""\2019";
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 1em;
}

.prose code {
    color: #111827;
    font-weight: 600;
    font-size: 0.875em;
    background-color: #f3f4f6;
    padding: 0.25em;
    border-radius: 0.25rem;
}

.prose pre {
    color: #e5e7eb;
    background-color: #1f2937;
    overflow-x: auto;
    font-size: 0.875em;
    line-height: 1.7142857;
    margin-top: 1.7142857em;
    margin-bottom: 1.7142857em;
    border-radius: 0.375rem;
    padding: 0.8571429em 1.1428571em;
}

.prose pre code {
    background-color: transparent;
    border-width: 0;
    border-radius: 0;
    padding: 0;
    font-weight: 400;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
}

.prose table {
    width: 100%;
    table-layout: auto;
    text-align: left;
    margin-top: 2em;
    margin-bottom: 2em;
    font-size: 0.875em;
    line-height: 1.7142857;
}

.prose thead {
    color: #111827;
    font-weight: 600;
    border-bottom-width: 1px;
    border-bottom-color: #d1d5db;
}

.prose thead th {
    vertical-align: bottom;
    padding-right: 0.5714286em;
    padding-bottom: 0.5714286em;
    padding-left: 0.5714286em;
}

.prose tbody tr {
    border-bottom-width: 1px;
    border-bottom-color: #e5e7eb;
}

.prose tbody tr:last-child {
    border-bottom-width: 0;
}

.prose tbody td {
    vertical-align: top;
    padding-top: 0.5714286em;
    padding-right: 0.5714286em;
    padding-bottom: 0.5714286em;
    padding-left: 0.5714286em;
}

/* AI Insights Table Styling */
.ai-insights-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.ai-insights-table th,
.ai-insights-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb; /* light-gray-200 */
}

.dark .ai-insights-table th,
.dark .ai-insights-table td {
    border-bottom: 1px solid #374151; /* dark-gray-700 */
}

.ai-insights-table th {
    background-color: #f9fafb; /* light-gray-50 */
    font-weight: 600;
    color: #374151; /* light-gray-700 */
}

.dark .ai-insights-table th {
    background-color: #1e40af; /* blue-700 */
    color: #ffffff;
}

.ai-insights-table tbody tr:hover {
    background-color: #f3f4f6; /* light-gray-100 */
}

.dark .ai-insights-table tbody tr:hover {
    background-color: #374151; /* dark-gray-700 */
}

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

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* Dark mode adjustments */
.dark .prose {
    color: #d1d5db;
}

.dark .prose h1,
.dark .prose h2,
.dark .prose h3,
.dark .prose strong {
    color: #f3f4f6;
}

.dark .prose a {
    color: #93c5fd;
}

.dark .prose a:hover {
    color: #bfdbfe;
}

.dark .prose blockquote {
    color: #f3f4f6;
    border-left-color: #374151;
}

.dark .prose code {
    color: #f3f4f6;
    background-color: #374151;
}

.dark .prose pre {
    color: #d1d5db;
    background-color: #1f2937;
}

.dark .prose thead {
    color: #f3f4f6;
    border-bottom-color: #4b5563;
}

.dark .prose tbody tr {
    border-bottom-color: #374151;
}

/* Agent-style Reasoning Section for Blog */
.blog-reasoning-section .reasoning-content {
  background-color: #1e40af;
  border: 1px solid rgba(30, 64, 175, 0.5);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
}

.blog-reasoning-section .reasoning-content p {
  font-style: italic;
  color: white;
}
