/* WebSeasoning Blog - Complete Styling System */

/* Base Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Article Content Styling - Prose Classes */
.prose {
    color: #374151;
    line-height: 1.75;
    font-size: 1.125rem;
    max-width: 65ch;
}

.prose.prose-lg {
    font-size: 1.25rem;
    line-height: 1.8;
}

.prose.max-w-none {
    max-width: none;
}

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

.prose h2 {
    font-size: 1.875em;
    margin-top: 1.5em;
    margin-bottom: 0.8333333em;
    line-height: 1.3333333;
    font-weight: 700;
    color: #111827;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #e5e7eb;
}

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

.prose h4 {
    font-size: 1.25em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.5;
    font-weight: 600;
    color: #374151;
}

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

.prose p.lead-paragraph {
    font-size: 1.25em;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 2em;
}

/* Links */
.prose a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #c4b5fd;
}

.prose a:hover {
    color: #6d28d9;
    border-bottom-color: #7c3aed;
}

/* Lists */
.prose ul, .prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 0.375em;
}

.prose li::marker {
    color: #7c3aed;
}

.prose ul ul, .prose ul ol, .prose ol ul, .prose ol ol {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

/* Strong and Emphasis */
.prose strong {
    color: #111827;
    font-weight: 600;
}

.prose em {
    color: #374151;
    font-style: italic;
}

/* Code and Pre */
.prose code {
    color: #7c3aed;
    font-weight: 500;
    font-size: 0.875em;
    font-family: 'Monaco', 'Courier New', monospace;
}

.prose code::before,
.prose code::after {
    content: '`';
    color: #c4b5fd;
}

.prose pre {
    background-color: #1f2937;
    color: #e5e7eb;
    overflow-x: auto;
    font-size: 0.875em;
    line-height: 1.7142857;
    margin-top: 1.7142857em;
    margin-bottom: 1.7142857em;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.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 pre code::before,
.prose pre code::after {
    content: none;
}

/* Tables */
.prose table {
    width: 100%;
    table-layout: auto;
    text-align: left;
    margin-top: 2em;
    margin-bottom: 2em;
    font-size: 0.875em;
    line-height: 1.7142857;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.prose thead {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
}

.prose thead th {
    color: white;
    font-weight: 600;
    vertical-align: bottom;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #4c1d95;
}

.prose thead th:first-child {
    padding-left: 1rem;
}

.prose thead th:last-child {
    padding-right: 1rem;
}

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

.prose tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.prose tbody tr:hover {
    background-color: #f3f4f6;
}

.prose tbody td {
    vertical-align: top;
    padding: 0.75rem;
    color: #374151;
}

.prose tbody td:first-child {
    font-weight: 500;
    color: #111827;
    padding-left: 1rem;
}

.prose tbody td:last-child {
    padding-right: 1rem;
}

/* WordPress Block Table Specific */
.prose figure.wp-block-table {
    margin: 2em 0;
}

.prose .comparison-table table {
    background-color: white;
}

/* Blockquotes */
.prose blockquote {
    font-weight: 500;
    font-style: italic;
    color: #111827;
    border-left: 4px solid #7c3aed;
    quotes: "\201C""\201D""\2018""\2019";
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 1.5em;
    background-color: #faf5ff;
    padding: 1.5em;
    border-radius: 0.5rem;
}

.prose blockquote p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Images and Figures */
.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.prose figure {
    margin-top: 2em;
    margin-bottom: 2em;
}

.prose figcaption {
    color: #6b7280;
    font-size: 0.875em;
    line-height: 1.4285714;
    margin-top: 0.8571429em;
    text-align: center;
}

/* Horizontal Rules */
.prose hr {
    border-color: #e5e7eb;
    border-top-width: 1px;
    margin-top: 3em;
    margin-bottom: 3em;
}

/* Lead Paragraph */
.prose .lead-paragraph {
    font-size: 1.3em;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 2em;
    font-weight: 400;
}

/* WordPress Block Cleanup */
.prose .wp-block-code {
    background-color: #1f2937;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin: 1.5em 0;
}

.prose .wp-block-code code {
    color: #e5e7eb;
}

/* Smooth transitions */
a {
    transition: all 0.2s ease-in-out;
}

button {
    transition: all 0.2s ease-in-out;
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prose {
        font-size: 1rem;
    }

    .prose h2 {
        font-size: 1.5em;
    }

    .prose h3 {
        font-size: 1.25em;
    }

    .prose table {
        font-size: 0.75em;
    }

    .prose thead th,
    .prose tbody td {
        padding: 0.5rem 0.375rem;
    }
}

/* Print styles */
@media print {
    header, footer, .search-bar, nav {
        display: none;
    }

    .prose {
        font-size: 12pt;
        color: black;
    }

    .prose a {
        color: black;
        text-decoration: underline;
    }

    .prose pre {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}
