/**
 * Content Styles
 * Typography and content styling for pages and posts
 */

/* ==================== */
/* Content Container    */
/* ==================== */
.page-content,
.post-content,
.about-content,
.content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* ==================== */
/* Headings             */
/* ==================== */
.page-content h1,
.post-content h1,
.content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.page-content h2,
.post-content h2,
.content h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.page-content h3,
.post-content h3,
.content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.page-content h4,
.post-content h4,
.content h4 {
    font-size: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* ==================== */
/* Paragraphs           */
/* ==================== */
.page-content p,
.post-content p,
.content p {
    margin-bottom: 1.25rem;
}

/* ==================== */
/* Lists                */
/* ==================== */
.page-content ul,
.post-content ul,
.about-content ul,
.content ul {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.page-content ol,
.post-content ol,
.about-content ol,
.content ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
    list-style-type: decimal;
}

.page-content li,
.post-content li,
.content li {
    padding: 0.4rem 0;
    line-height: 1.7;
    color: var(--text-light);
}

.about-content li {
    line-height: 1.7;
    color: var(--text-light);
}

.page-content ul ul,
.post-content ul ul,
.content ul ul {
    margin: 0.5rem 0;
    list-style-type: circle;
}

.page-content ul ul ul,
.post-content ul ul ul,
.content ul ul ul {
    list-style-type: square;
}

/* No bullet lists */
.page-content ul.no-bullets,
.post-content ul.no-bullets,
.content ul.no-bullets {
    list-style: none;
    padding-left: 0;
}

/* Multi-column lists */
@media (min-width: 768px) {
    ul.twocols,
    ol.twocols {
        column-count: 2;
        column-gap: 2rem;
    }

    ul.threecols,
    ol.threecols {
        column-count: 2;
        column-gap: 2rem;
    }

    ul.twocols li,
    ol.twocols li,
    ul.threecols li,
    ol.threecols li {
        break-inside: avoid;
    }
}

@media (min-width: 1024px) {
    ul.threecols,
    ol.threecols {
        column-count: 3;
    }
}

/* ==================== */
/* Links                */
/* ==================== */
.page-content a,
.post-content a,
.content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(102, 126, 234, 0.3);
    text-underline-offset: 2px;
    transition: var(--transition);
}

.page-content a:hover,
.post-content a:hover,
.content a:hover {
    color: var(--primary-dark);
    text-decoration-color: var(--primary-dark);
}

/* ==================== */
/* Blockquotes          */
/* ==================== */
.page-content blockquote,
.post-content blockquote,
.content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-light);
    font-style: italic;
    color: var(--text-light);
}

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

/* ==================== */
/* Code                 */
/* ==================== */
.page-content code,
.post-content code,
.content code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    background: var(--bg-light);
    border-radius: 4px;
    color: var(--danger-color);
}

.page-content pre,
.post-content pre,
.content pre {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow-x: auto;
}

.page-content pre code,
.post-content pre code,
.content pre code {
    background: none;
    padding: 0;
    color: #f8f8f2;
}

/* ==================== */
/* Tables               */
/* ==================== */
.page-content table,
.post-content table,
.content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.page-content th,
.post-content th,
.content th {
    background: var(--bg-light);
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-content td,
.post-content td,
.content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.page-content tr:hover,
.post-content tr:hover,
.content tr:hover {
    background: var(--bg-light);
}

/* ==================== */
/* Images               */
/* ==================== */
.page-content img,
.post-content img,
.content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

/* ==================== */
/* Horizontal Rule      */
/* ==================== */
.page-content hr,
.post-content hr,
.content hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* ==================== */
/* Abbreviations        */
/* ==================== */
.page-content abbr,
.post-content abbr,
.content abbr,
.page-content acronym,
.post-content acronym,
.content acronym {
    border-bottom: 1px dotted var(--text-light);
    cursor: help;
}
