/* Blog list & detail — aligned with Arcadetop game pages */

.blog-page,
.blog-detail {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 0 56px;
}

/* ── Breadcrumb ── */
.blog-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 0 20px;
    font-size: 13px;
    color: var(--text-muted, #999);
}

.blog-breadcrumb a {
    color: var(--text-secondary, #666);
    text-decoration: none;
    transition: color 0.15s;
}

.blog-breadcrumb a:hover { color: var(--theme-color, #ff7f50); }
.blog-breadcrumb .sep { color: #ddd; user-select: none; }
.blog-breadcrumb .current {
    color: #222;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── List hero ── */
.blog-hero {
    position: relative;
    margin-bottom: 28px;
    padding: 28px 28px 26px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 48%, #f8fbff 100%);
    border: 1px solid rgba(255, 127, 80, 0.12);
    box-shadow: 0 4px 24px rgba(255, 127, 80, 0.08);
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 127, 80, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.blog-hero-inner {
    position: relative;
    z-index: 1;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-color, #ff7f50);
    background: rgba(255, 127, 80, 0.1);
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.blog-title {
    margin: 0 0 8px;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.blog-subtitle {
    margin: 0;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary, #666);
}

.blog-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.blog-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 13px;
    color: #444;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blog-stat-pill strong {
    color: var(--theme-color, #ff7f50);
    font-weight: 700;
}

.blog-stat-pill--muted {
    color: var(--text-muted, #999);
}

/* ── List rows (text-first, no large covers) ── */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    content-visibility: auto;
    contain-intrinsic-size: auto 480px;
}

.blog-row {
    min-width: 0;
}

.blog-row-link {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-row-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 127, 80, 0.1);
    border-color: rgba(255, 127, 80, 0.22);
}

.blog-row-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, #fff5f0, #f3f3f3);
    border: 1px solid rgba(255, 127, 80, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-row-icon img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.blog-row-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 20px;
    color: var(--theme-color, #ff7f50);
}

.blog-row-body {
    flex: 1;
    min-width: 0;
}

.blog-row-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.38;
    transition: color 0.15s;
}

.blog-row-link:hover .blog-row-title {
    color: var(--theme-color-dark, #e66a3d);
}

.blog-row-summary {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary, #666);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-row-meta time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted, #999);
}

.blog-row-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-color, #ff7f50);
    white-space: nowrap;
}

.blog-row-cta i {
    font-size: 12px;
    transition: transform 0.15s;
}

.blog-row-link:hover .blog-row-cta i {
    transform: translateX(3px);
}

/* ── Pagination ── */
.blog-pager {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.blog-pager .pagination {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.blog-pager .pagination > li { display: inline-block; }

.blog-pager .pagination > li > a,
.blog-pager .pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    color: #555;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-pager .pagination > li > a:hover {
    color: var(--theme-color, #ff7f50);
    border-color: rgba(255, 127, 80, 0.35);
    background: #fff8f4;
}

.blog-pager .pagination > .active > span,
.blog-pager .pagination > .active > a {
    color: #fff;
    background: var(--theme-color, #ff7f50);
    border-color: var(--theme-color, #ff7f50);
}

.blog-pager .pagination > .disabled > span,
.blog-pager .pagination > .disabled > a {
    color: #ccc;
    background: #f5f5f5;
    cursor: not-allowed;
}

/* ── Empty state ── */
.blog-empty {
    text-align: center;
    padding: 72px 32px;
    background: #fff;
    border-radius: 20px;
    border: 1px dashed rgba(0, 0, 0, 0.08);
}

.blog-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--theme-color, #ff7f50);
    background: #fff5f0;
    border-radius: 50%;
}

.blog-empty h2 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #333;
}

.blog-empty p {
    margin: 0 0 20px;
    color: var(--text-muted, #999);
    font-size: 14px;
}

.blog-empty-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--theme-color, #ff7f50);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.blog-empty-btn:hover {
    background: var(--theme-color-dark, #e66a3d);
    transform: translateY(-1px);
    color: #fff;
}

/* ══════════════════════════════════════
   Detail page
   ══════════════════════════════════════ */

.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

.blog-detail-main {
    min-width: 0;
}

.blog-detail-cover {
    margin: 0 0 0;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: #eee;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.blog-detail-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.blog-detail-head {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 24px 28px 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.blog-detail-head--solo {
    border-radius: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-detail-cover + .blog-detail-head {
    border-top: none;
}

.blog-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--theme-color, #ff7f50);
    background: rgba(255, 127, 80, 0.1);
    border-radius: 999px;
}

.blog-detail-head h1 {
    margin: 0 0 14px;
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.28;
    letter-spacing: -0.025em;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.blog-detail-meta time,
.blog-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted, #999);
}

.blog-updated {
    padding-left: 14px;
    border-left: 1px solid #eee;
}

.blog-detail-lead {
    margin: 0 0 20px;
    padding: 18px 22px;
    background: linear-gradient(90deg, #fff8f4 0%, #fff 100%);
    border-left: 4px solid var(--theme-color, #ff7f50);
    border-radius: 0 14px 14px 0;
    font-size: 16px;
    line-height: 1.75;
    color: #555;
}

.blog-detail-content {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 28px 32px;
    font-size: 16px;
    line-height: 1.85;
    color: #444;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.blog-detail-content p { margin: 0 0 1.1em; }

.blog-detail-content h2,
.blog-detail-content h3 {
    margin: 1.6em 0 0.65em;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    padding-bottom: 8px;
    border-bottom: 2px solid #fff5f0;
}

.blog-detail-content h3:first-child {
    margin-top: 0;
}

.blog-detail-content ul {
    margin: 0 0 1.1em;
    padding-left: 1.4em;
}

.blog-detail-content li {
    margin-bottom: 0.45em;
}

.blog-detail-content li::marker {
    color: var(--theme-color, #ff7f50);
}

.blog-detail-content a {
    color: var(--theme-color-dark, #e66a3d);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.blog-detail-content a:hover {
    color: var(--theme-color, #ff7f50);
}

.blog-detail-content strong {
    color: #222;
    font-weight: 600;
}

/* FAQ block inside content */
.blog-detail-content h3 + p strong {
    display: block;
    margin-bottom: 4px;
    color: #333;
}

.blog-detail-footer {
    margin-top: 24px;
    padding-top: 8px;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary, #666);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.15s;
}

.blog-back-link:hover {
    color: var(--theme-color, #ff7f50);
}

/* ── Sidebar ── */
.blog-detail-sidebar {
    position: sticky;
    top: 76px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-side-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 18px 18px 16px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}

.blog-side-card--game {
    background: linear-gradient(160deg, #fff8f4 0%, #ffffff 100%);
    border-color: rgba(255, 127, 80, 0.15);
}

.blog-side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.blog-side-title i {
    color: var(--theme-color, #ff7f50);
    font-size: 15px;
}

.blog-game-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 14px;
}

.blog-game-link img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 2px solid #fff;
}

.blog-game-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.blog-game-info strong {
    font-size: 14px;
    color: #222;
    line-height: 1.3;
}

.blog-game-info em {
    font-size: 12px;
    font-style: normal;
    color: var(--text-muted, #999);
}

.blog-game-cta {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--theme-color, #ff7f50);
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.blog-game-cta:hover {
    background: var(--theme-color-dark, #e66a3d);
    transform: translateY(-1px);
    color: #fff;
}

.blog-related-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-related-list li {
    border-bottom: 1px solid #f5f5f5;
}

.blog-related-list li:last-child {
    border-bottom: none;
}

.blog-related-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 4px;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.15s;
}

.blog-related-list a:hover {
    background: #fff8f4;
}

.blog-related-arrow {
    flex-shrink: 0;
    color: #ccc;
    font-size: 14px;
    transition: color 0.15s, transform 0.15s;
}

.blog-related-list a:hover .blog-related-arrow {
    color: var(--theme-color, #ff7f50);
    transform: translateX(2px);
}

.blog-related-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.blog-related-text strong {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-related-list a:hover .blog-related-text strong {
    color: var(--theme-color, #ff7f50);
}

.blog-related-text time {
    font-size: 11px;
    color: var(--text-muted, #999);
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-detail-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 680px) {
    .blog-row-link {
        padding: 14px 16px;
        gap: 12px;
    }

    .blog-row-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .blog-row-icon img {
        width: 40px;
        height: 40px;
    }

    .blog-row-title {
        font-size: 16px;
    }

    .blog-hero {
        padding: 22px 20px;
        border-radius: 16px;
    }

    .blog-detail-content {
        padding: 22px 18px;
        font-size: 15px;
        border-radius: 16px;
    }

    .blog-detail-head {
        padding: 20px 18px;
        border-radius: 0 0 16px 16px;
    }

    .blog-detail-cover {
        border-radius: 16px 16px 0 0;
    }

    .blog-detail-cover img {
        max-height: 220px;
    }

    .blog-updated {
        padding-left: 0;
        border-left: none;
        width: 100%;
    }

    .blog-breadcrumb .current {
        white-space: normal;
    }
}

@media (max-width: 1100px) {
    .blog-page,
    .blog-detail {
        max-width: 100%;
    }
}
