/**
 * Mamba Critical CSS - Generic Pages
 * 
 * Critical styles for non-WooCommerce pages.
 * Covers basic content, posts, and standard WordPress elements.
 * 
 * @package Mamba\Modules\CriticalCss
 * @since   1.1.0
 */

/* Content container */
.site-content,
.content-area,
.entry-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Entry header */
.entry-header {
    margin-bottom: 1.5em;
}

.entry-title {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 0.5em;
    line-height: 1.2;
}

.entry-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 1em;
}

.entry-meta a {
    color: inherit;
}

/* Entry content */
.entry-content {
    line-height: 1.7;
}

.entry-content p {
    margin-bottom: 1em;
}

.entry-content h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin: 1.5em 0 0.75em;
}

.entry-content h3 {
    font-size: 1.25em;
    font-weight: 700;
    margin: 1.25em 0 0.5em;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 1em 0 0.5em;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1em 1.5em;
    padding: 0;
}

.entry-content li {
    margin-bottom: 0.25em;
}

.entry-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #ddd;
    font-style: italic;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
}

.entry-content a {
    text-decoration: underline;
}

/* Featured image */
.post-thumbnail,
.wp-post-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5em;
}

/* Entry footer */
.entry-footer {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #666;
}

/* Post navigation */
.post-navigation,
.posts-navigation {
    margin: 2em 0;
    padding: 1em 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-navigation .nav-links,
.posts-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.post-navigation .nav-previous,
.post-navigation .nav-next,
.posts-navigation .nav-previous,
.posts-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-next,
.posts-navigation .nav-next {
    text-align: right;
}

/* Comments */
.comments-area {
    margin-top: 3em;
}

.comments-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 1em;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #eee;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.25em;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 0.5em;
    vertical-align: middle;
}

.comment-metadata {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0.5em;
}

.comment-content p {
    margin-bottom: 0.5em;
}

/* Comment form */
.comment-respond {
    margin-top: 2em;
}

.comment-reply-title {
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 1em;
}

.comment-form label {
    display: block;
    margin-bottom: 0.25em;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75em;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 1em;
}

.comment-form textarea {
    min-height: 150px;
}

.comment-form .form-submit input {
    padding: 0.75em 1.5em;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* Sidebar */
.widget-area {
    margin-top: 2em;
}

.widget {
    margin-bottom: 2em;
}

.widget-title {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #eee;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.5em 0;
    border-bottom: 1px solid #eee;
}

.widget ul li a {
    text-decoration: none;
    color: inherit;
}

.widget ul li a:hover {
    text-decoration: underline;
}

/* Search form */
.search-form {
    display: flex;
}

.search-form .search-field {
    flex: 1;
    padding: 0.75em;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 3px 0 0 3px;
}

.search-form .search-submit {
    padding: 0.75em 1em;
    border: 1px solid #ddd;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

/* Pagination */
.pagination,
.page-links {
    margin: 2em 0;
    text-align: center;
}

.pagination .page-numbers,
.page-links a,
.page-links span {
    display: inline-block;
    padding: 0.5em 0.75em;
    margin: 0 0.125em;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
}

.pagination .page-numbers.current,
.page-links > span {
    font-weight: 700;
}

/* 404 page */
.error-404 {
    text-align: center;
    padding: 3em 0;
}

.error-404 .page-title {
    font-size: 3em;
    margin-bottom: 0.5em;
}

/* Responsive */
@media (max-width: 768px) {
    .entry-title {
        font-size: 1.5em;
    }
    
    .entry-content h2 {
        font-size: 1.25em;
    }
    
    .entry-content h3 {
        font-size: 1.1em;
    }
}
