/* ==========================================================================
   QuickPlayHub - Blog & Article Viewer Styles
   ========================================================================== */

:root {
    --k4-bg-dark: #0e0d1f;
}

body {
    background-color: var(--k4-bg-dark) !important;
}

.k4-blog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 80px;
    box-sizing: border-box;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ffffff;
}

/* Breadcrumb */
.k4-blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.k4-blog-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}

.k4-blog-breadcrumb a:hover {
    color: #ffffff;
}

/* Main Layout Grid */
.k4-blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

/* Article Card */
.k4-blog-article-card {
    background: #181636;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 36px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.k4-blog-category-badge {
    display: inline-block;
    background: rgba(123, 104, 238, 0.18);
    color: #a796ff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.k4-blog-post-title {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.k4-blog-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #8f8ba8;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.k4-blog-featured-img {
    margin-bottom: 28px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.k4-blog-featured-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ─── RICH ARTICLE BODY TYPOGRAPHY ─── */
.post-body {
    color: #d1cef0;
    font-size: 15px;
    line-height: 1.8;
}

.post-body h2 {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-top: 36px;
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.post-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 28px;
    margin-bottom: 12px;
    line-height: 1.35;
}

.post-body p {
    margin-bottom: 18px;
    color: #d1cef0;
}

.post-body strong,
.post-body b {
    color: #ffffff;
    font-weight: 700;
}

.post-body em,
.post-body i {
    font-style: italic;
    color: #e5e2fa;
}

.post-body a {
    color: #a796ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s, text-decoration 0.15s;
}

.post-body a:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

.post-body ul,
.post-body ol {
    margin: 16px 0 24px 0;
    padding-left: 24px;
}

.post-body li {
    margin-bottom: 8px;
    color: #d1cef0;
    line-height: 1.75;
}

.post-body li::marker {
    color: #7b68ee;
}

.post-body blockquote {
    border-left: 4px solid #7b68ee;
    background: rgba(123, 104, 238, 0.1);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 10px 10px 0;
    color: #e5e2fa;
    font-style: italic;
}

.post-body code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono, monospace);
    font-size: 13.5px;
    color: #c4b5fd;
}

.post-body pre {
    background: #111024;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

/* Mini Game Callout Card within Article */
.post-game-callout {
    background: #141328;
    border: 1px solid rgba(123, 104, 238, 0.25);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.post-game-callout-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #7b68ee;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    transition: background 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.post-game-callout-btn:hover {
    background: #6854e4;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 960px) {
    .k4-blog-layout {
        grid-template-columns: 1fr;
    }
    .k4-blog-article-card {
        padding: 24px 20px;
        border-radius: 14px;
    }
    .k4-blog-post-title {
        font-size: 24px;
    }
}
