/**
 * Page Content Styles
 *
 * @package HomeProz
 */

.page-content {
    padding: 2rem 0 4rem;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.page-title {
    margin-bottom: 0;
}

.entry-content {
    max-width: 800px;

    > *:first-child {
        margin-top: 0;
    }

    > *:last-child {
        margin-bottom: 0;
    }

    // Headings within content
    h2, h3, h4, h5, h6 {
        margin-top: 2rem;
    }

    // Lists
    ul, ol {
        margin-bottom: 1rem;
        padding-left: 1.5rem;

        li {
            margin-bottom: 0.5rem;
        }
    }

    // Blockquotes
    blockquote {
        margin: 1.5rem 0;
        padding: 1rem 1.5rem;
        border-left: 4px solid var(--color-accent);
        background-color: var(--color-bg-card);

        p:last-child {
            margin-bottom: 0;
        }
    }

    // Tables
    table {
        width: 100%;
        margin-bottom: 1rem;
        border-collapse: collapse;

        th, td {
            padding: 0.75rem;
            border: 1px solid var(--color-border);
            text-align: left;
        }

        th {
            background-color: var(--color-bg-card);
            font-weight: 600;
            color: var(--color-text);
        }
    }

    // Images
    img {
        max-width: 100%;
        height: auto;
        border-radius: 0.25rem;
    }

    // Code
    code {
        padding: 0.125rem 0.375rem;
        background-color: var(--color-bg-card);
        border-radius: 0.25rem;
        font-size: 0.875em;
    }

    pre {
        margin-bottom: 1rem;
        padding: 1rem;
        background-color: var(--color-bg-card);
        border-radius: 0.25rem;
        overflow-x: auto;

        code {
            padding: 0;
            background: none;
        }
    }
}

// Page links (for paginated content)
.page-links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-weight: 500;

    .page-numbers {
        display: inline-block;
        padding: 0.25rem 0.5rem;
        margin: 0 0.25rem;
        background-color: var(--color-bg-card);
        border-radius: 0.25rem;
        color: var(--color-text-muted);
        text-decoration: none;

        &.current,
        &:hover {
            background-color: var(--color-accent);
            color: white;
        }
    }
}
