/* MeraLoot Blog Theme Styles */

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #333;
}

/* ===== Blog Content Wrapper ===== */
.blog-wrapper {
    max-width: 860px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ===== Post List (Homepage) ===== */
.post-list {
    display: grid;
    gap: 24px;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.post-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card-content {
    padding: 24px;
}

.post-card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e52d27;
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.post-card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-card-title a:hover { color: #e52d27; }

.post-card-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.post-card-meta {
    font-size: 0.82rem;
    color: #999;
}

/* ===== Single Post ===== */
.post-header {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.post-header-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e52d27;
    margin-bottom: 12px;
}

.post-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px;
    color: #1a1a1a;
}

.post-meta {
    font-size: 0.85rem;
    color: #999;
}

.post-feature-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}

.post-body {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
    font-size: 1.05rem;
}

.post-body h2 { font-size: 1.5rem; margin-top: 2em; color: #1a1a1a; }
.post-body h3 { font-size: 1.2rem; margin-top: 1.6em; color: #1a1a1a; }
.post-body a { color: #e52d27; text-decoration: none; }
.post-body a:hover { text-decoration: underline; }
.post-body img { max-width: 100%; border-radius: 8px; }
.post-body blockquote {
    border-left: 4px solid #e52d27;
    margin: 1.5em 0;
    padding: 0.5em 1.2em;
    background: #fff5f5;
    border-radius: 0 8px 8px 0;
    color: #555;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    background: #fff;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
}

.pagination a:hover { background: #e52d27; color: #fff; }

/* ===== Ghost Card Width Classes (required) ===== */
.kg-width-wide {
    width: 85vw;
    max-width: 1100px;
    margin-left: calc(50% - 42.5vw);
}

.kg-width-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.kg-image { max-width: 100%; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .blog-wrapper { margin: 40px auto; }
    .post-header, .post-body { padding: 24px; }
    .post-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .blog-wrapper { margin: 20px auto; }
    .post-card-content { padding: 16px; }
}
