/* =========================================
   Blog Post Content Typography
   ========================================= */

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    padding-bottom: 0.5rem;
    border-bottom: 2.5px solid rgba(26, 26, 26, 0.08);
}

.post-content h2:first-child {
    margin-top: 0;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #334155;
    font-size: 1rem;
}

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

.post-content strong {
    font-weight: 700;
    color: #1a1a1a;
}

.post-content em {
    font-style: italic;
}

.post-content blockquote {
    border-left: 4px solid #FBBF24;
    background: #FEF9C3;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #1a1a1a;
    font-style: italic;
    font-weight: 500;
}

.post-content blockquote p {
    margin-bottom: 0;
    color: #1a1a1a;
}

.post-content hr {
    border: none;
    border-top: 2.5px solid rgba(26, 26, 26, 0.08);
    margin: 2rem 0;
}

/* =========================================
   Lists
   ========================================= */

.post-content ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin: 0.75rem 0;
    color: #334155;
}

.post-content ol {
    list-style-type: decimal;
    padding-left: 1.25rem;
    margin: 0.75rem 0;
    color: #334155;
}

.post-content li {
    line-height: 1.7;
    margin-bottom: 0.25rem;
}

.post-content li p {
    margin-bottom: 0.25rem;
}

.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
    margin: 0.25rem 0;
}

/* =========================================
   Links
   ========================================= */

.post-content a {
    color: #0066FF;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.post-content a:hover {
    color: #0052cc;
    text-decoration: underline;
}

/* =========================================
   Media
   ========================================= */

.post-content img {
    border-radius: 0.75rem;
    margin: 1rem 0;
    max-width: 100%;
    height: auto;
    border: 2.5px solid #1a1a1a;
}

/* =========================================
   Code Blocks
   ========================================= */

.post-content pre {
    background: #282C34;
    color: #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 2.5px solid #1a1a1a;
}

.post-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.875rem;
    line-height: 1.7;
    border: none;
}

.post-content code {
    background: #f1f5f9;
    padding: 0.15rem 0.35rem;
    border-radius: 0.35rem;
    font-size: 0.875rem;
    border: 1.5px solid #1a1a1a20;
    color: #c7254e;
    font-weight: 500;
}

/* =========================================
   Tables
   ========================================= */

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    border: 2.5px solid #1a1a1a;
    border-radius: 0.5rem;
    overflow: hidden;
}

.post-content th {
    background: #1a1a1a;
    color: white;
    font-weight: 700;
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.post-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1.5px solid rgba(26, 26, 26, 0.1);
    font-size: 0.875rem;
    color: #334155;
}

.post-content tr:last-child td {
    border-bottom: none;
}

.post-content tr:nth-child(even) {
    background: #f8fafc;
}

/* =========================================
   Code Block Scrollbar
   ========================================= */

.code-block::-webkit-scrollbar {
    height: 8px;
}

.code-block::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 4px;
}

.code-block::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}