/* ============================================================
   Moban 8-10-24 — main.css
   Bảng điều khiển vàng hồng · grid-areas chữ Phẩm v2
   ============================================================ */

/* --- Guard chống tràn ngang --- */
html, body {
    overflow-x: hidden;
}

/* --- Biến màu --- */
:root {
    --rose: #B76E79;
    --rose-deep: #9C5663;
    --rose-soft: #E8C3C9;
    --slate: #607D8B;
    --slate-deep: #455A64;
    --cream: #FBF6F4;
    --paper: #FFFFFF;
    --ink: #3A2E33;
    --ink-soft: #7C6A70;
    --gold-line: linear-gradient(120deg, #F4D7C3 0%, #B76E79 38%, #E9BFAE 62%, #8E4B57 100%);
    --metal: linear-gradient(145deg, #FFFFFF 0%, #F7E9E6 30%, #EFD5D3 55%, #FBF6F4 100%);
    --radius: 18px;
    --shadow-soft: 0 14px 34px -18px rgba(183, 110, 121, 0.45);
    --shadow-slate: 0 14px 34px -18px rgba(96, 125, 139, 0.4);
    --font-display: "Bricolage Grotesque", "Be Vietnam Pro", sans-serif;
    --font-body: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

/* --- Reset cơ bản --- */
*, *::before, *::after { box-sizing: border-box; }

img { max-width: 100%; height: auto; }

body {
    margin: 0;
    background:
        radial-gradient(1100px 480px at 85% -120px, rgba(183, 110, 121, 0.14), transparent 65%),
        radial-gradient(900px 420px at -140px 340px, rgba(96, 125, 139, 0.12), transparent 60%),
        var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--slate-deep);
    line-height: 1.25;
    margin: 0 0 0.5em;
}

a { color: var(--rose); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--rose-deep); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* --- Nút --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 24px;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.5s ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary {
    color: #fff;
    background-image: linear-gradient(120deg, #C98690 0%, #B76E79 30%, #E9AFA4 55%, #B76E79 80%, #9C5663 100%);
    background-size: 220% 100%;
    box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background-position: 95% 0; color: #fff; transform: translateY(-2px); }
.btn-outline {
    color: var(--rose-deep);
    background: transparent;
    border: 2px solid var(--rose-soft);
}
.btn-outline:hover { border-color: var(--rose); background: rgba(183, 110, 121, 0.08); }
.btn-outline-light { color: #fff; border: 2px solid rgba(255, 255, 255, 0.65); background: transparent; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.btn-ghost {
    color: var(--rose-deep);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(4px);
}
.btn-login { color: var(--slate-deep); border: 2px solid rgba(96, 125, 139, 0.35); background: transparent; }
.btn-login:hover { border-color: var(--slate); color: var(--slate-deep); }
.btn-register { color: #fff; background-image: linear-gradient(120deg, #7E97A4, #607D8B 45%, #8FA6B1); background-size: 200% 100%; box-shadow: var(--shadow-slate); }
.btn-register:hover { background-position: 90% 0; color: #fff; }

/* ============================================================
   Header + điều hướng viên nang (capsule)
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(251, 246, 244, 0.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(183, 110, 121, 0.16);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 12px 0;
}
.site-logo { flex: 0 0 auto; }
.logo-img { max-height: 46px; display: block; }

.capsule-nav {
    background: var(--metal);
    border: 1px solid rgba(183, 110, 121, 0.25);
    border-radius: 999px;
    padding: 5px;
    box-shadow: inset 0 1px 0 #fff, 0 6px 18px -12px rgba(183, 110, 121, 0.5);
}
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-menu li a {
    display: block;
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--slate-deep);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
    background-image: linear-gradient(120deg, #C98690, #B76E79 60%, #9C5663);
    color: #fff;
    box-shadow: 0 6px 14px -8px rgba(183, 110, 121, 0.7);
}
.header-actions { margin-left: auto; display: flex; gap: 10px; flex: 0 0 auto; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(96, 125, 139, 0.3);
    background: var(--paper);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: var(--slate-deep);
    border-radius: 2px;
    position: relative;
    transition: transform 0.25s ease;
}
.nav-toggle-icon::before { position: absolute; top: -6px; }
.nav-toggle-icon::after { position: absolute; top: 6px; }

/* ============================================================
   Bảng điều khiển — grid-areas chữ Phẩm (hero + trái lớn phải nhỏ)
   ============================================================ */
.front-main { padding: 30px 0 60px; }

.dash-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-rows: auto 1fr;
    gap: 26px;
    grid-template-areas:
        "hero      hero"
        "mainpanel sidepanel";
}
.dash-board > * { min-width: 0; }
.dash-hero { grid-area: hero; }
.dash-mainpanel { grid-area: mainpanel; min-width: 0; }
.dash-sidepanel { grid-area: sidepanel; min-width: 0; }

/* --- Hero thống kê toàn rộng --- */
.dash-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--shadow-soft);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, rgba(58, 46, 51, 0.88) 8%, rgba(92, 60, 70, 0.72) 46%, rgba(69, 90, 100, 0.6) 100%);
}
.hero-inner { padding: 46px 44px; display: flex; flex-direction: column; gap: 30px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #3A2E33;
    background-image: linear-gradient(120deg, #F4D7C3, #E9BFAE 55%, #F6E3D6);
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.4);
}
.hero-heading { max-width: 640px; }
.hero-title {
    margin: 16px 0 10px;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    color: #FFF8F4;
    text-wrap: balance;
}
.hero-title em {
    font-style: normal;
    background-image: var(--gold-line);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-desc { margin: 0; color: rgba(255, 248, 244, 0.82); font-size: 15.5px; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.stat-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 20px;
    border-radius: 16px;
    background-image: var(--metal);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-top: 3px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.55);
    position: relative;
}
.stat-card::before {
    content: "";
    position: absolute;
    inset: -3px -1px auto -1px;
    height: 3px;
    border-radius: 16px 16px 0 0;
    background-image: var(--gold-line);
}
.stat-value {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--rose-deep);
}
.stat-label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

/* --- Thanh tab viên nang trong khu chính --- */
.capsule-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 6px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: var(--metal);
    border: 1px solid rgba(96, 125, 139, 0.28);
    box-shadow: inset 0 1px 0 #fff, 0 10px 24px -16px rgba(96, 125, 139, 0.6);
}
.tab-pill {
    border: 0;
    background: transparent;
    padding: 10px 26px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--slate-deep);
    cursor: pointer;
    transition: color 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
}
.tab-pill:hover { color: var(--rose-deep); }
.tab-pill.active {
    color: #fff;
    background-image: linear-gradient(120deg, #C98690, #B76E79 55%, #9C5663);
    box-shadow: 0 10px 20px -10px rgba(183, 110, 121, 0.75);
}

.tab-pane { display: none; animation: tabFade 0.45s ease both; }
.tab-pane.active { display: block; }
@keyframes tabFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.panel-title {
    font-size: 24px;
    position: relative;
    padding-left: 18px;
}
.panel-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 6px;
    border-radius: 4px;
    background-image: var(--gold-line);
}

/* --- Tab Tổng quan --- */
.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "omedia otext";
    gap: 22px;
    align-items: stretch;
    margin-bottom: 24px;
}
.overview-grid > * { min-width: 0; }
.overview-media { grid-area: omedia; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.overview-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.overview-text {
    grid-area: otext;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid rgba(183, 110, 121, 0.18);
    box-shadow: var(--shadow-soft);
}
.overview-text p { margin: 0; color: var(--ink-soft); }
.overview-text .btn { align-self: flex-start; }

/* --- Accordion thống kê --- */
.stat-accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item {
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid rgba(96, 125, 139, 0.22);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.acc-item.open { border-color: rgba(183, 110, 121, 0.5); box-shadow: var(--shadow-soft); }
.acc-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
}
.acc-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    background-image: var(--metal);
    border: 1px solid rgba(183, 110, 121, 0.3);
}
.acc-title { flex: 1; font-weight: 700; font-size: 15.5px; color: var(--slate-deep); }
.acc-arrow { color: var(--rose); font-size: 18px; transition: transform 0.35s ease; }
.acc-item.open .acc-arrow { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.45s ease; }
.acc-item.open .acc-body { max-height: 320px; }
.acc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 4px 20px 20px;
}
.acc-stat {
    min-width: 0;
    padding: 14px;
    border-radius: 14px;
    background: var(--cream);
    border: 1px dashed rgba(183, 110, 121, 0.4);
    display: flex;
    flex-direction: column;
}
.acc-stat strong { font-family: var(--font-display); font-size: 20px; color: var(--rose-deep); }
.acc-stat span { font-size: 12.5px; color: var(--ink-soft); }

/* --- Lưới game --- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}
.game-card {
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
    border: 1px solid rgba(183, 110, 121, 0.2);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -20px rgba(183, 110, 121, 0.6); }
.game-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.game-body { padding: 14px 16px 18px; }
.game-title { font-size: 16px; margin-bottom: 4px; }
.game-rating { font-size: 13px; color: #D99A2B; font-weight: 700; margin-bottom: 10px; }

/* --- Danh sách tin tức --- */
.news-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.news-item {
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid rgba(96, 125, 139, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-item:hover { transform: translateX(6px); box-shadow: var(--shadow-slate); }
.news-link { display: flex; gap: 16px; padding: 14px; align-items: center; }
.news-thumb { flex: 0 0 148px; border-radius: 14px; overflow: hidden; }
.news-thumb img { width: 148px; height: 96px; object-fit: cover; display: block; }
.news-content { flex: 1; min-width: 0; }
.news-title { font-size: 16px; margin-bottom: 6px; color: var(--slate-deep); }
.news-item:hover .news-title { color: var(--rose-deep); }
.news-excerpt { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-soft); }
.news-date { font-size: 12.5px; color: var(--rose); font-weight: 600; }
.no-posts { color: var(--ink-soft); }

/* --- Khu phụ bên phải --- */
.dash-sidepanel { display: flex; flex-direction: column; gap: 18px; }
.side-card {
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid rgba(183, 110, 121, 0.2);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}
.side-cta {
    background-image: linear-gradient(150deg, #FFFFFF 0%, #F9E9E7 45%, #EFD8D8 100%);
    border-top: 4px solid;
    border-image: var(--gold-line) 1;
}
.side-title {
    font-size: 16px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--slate-deep);
}
.side-cta p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 14px; }
.side-game-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.side-game-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-deep);
    padding: 6px;
    border-radius: 12px;
    transition: background 0.25s ease;
}
.side-game-list a:hover { background: var(--cream); color: var(--rose-deep); }
.side-game-list img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.side-game-list span {
    margin-left: auto;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--rose);
    background: rgba(183, 110, 121, 0.1);
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12.5px;
}
.side-poster { padding: 0; overflow: hidden; position: relative; }
.side-poster img { width: 100%; display: block; }
.side-poster .btn { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; }
.side-poster .btn:hover { transform: translateX(-50%) translateY(-2px); }
.side-cat-list { list-style: none; margin: 0; padding: 0; }
.side-cat-list li a {
    display: block;
    padding: 9px 4px;
    border-bottom: 1px dashed rgba(96, 125, 139, 0.25);
    color: var(--slate-deep);
    font-weight: 600;
    font-size: 14px;
}
.side-cat-list li:last-child a { border-bottom: 0; }
.side-cat-list li a:hover { color: var(--rose-deep); padding-left: 10px; }

/* --- Game đề xuất toàn rộng --- */
.recommend-section { margin-top: 44px; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-title { font-size: 30px; margin-bottom: 6px; }
.section-sub { color: var(--ink-soft); margin: 0 auto; max-width: 560px; }
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas: "r1 r2 r3 r4 r5 r6";
    gap: 16px;
}
.recommend-grid > * { min-width: 0; }
.recommend-grid .game-card:nth-child(1) { grid-area: r1; }
.recommend-grid .game-card:nth-child(2) { grid-area: r2; }
.recommend-grid .game-card:nth-child(3) { grid-area: r3; }
.recommend-grid .game-card:nth-child(4) { grid-area: r4; }
.recommend-grid .game-card:nth-child(5) { grid-area: r5; }
.recommend-grid .game-card:nth-child(6) { grid-area: r6; }
.recommend-grid .game-body { padding: 12px 14px 16px; }
.recommend-grid .game-title { font-size: 14.5px; }

/* --- Banner khám phá --- */
.explore-banner {
    margin-top: 46px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    grid-template-areas: "emedia ebody";
    border-radius: var(--radius);
    overflow: hidden;
    background-image: linear-gradient(120deg, #54464E 0%, #6E4E58 45%, #455A64 100%);
    box-shadow: var(--shadow-soft);
}
.explore-banner > * { min-width: 0; }
.explore-media { grid-area: emedia; }
.explore-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.explore-body {
    grid-area: ebody;
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.explore-body h2 { color: #FFF8F4; font-size: 30px; margin: 0; }
.explore-body p { color: rgba(255, 248, 244, 0.82); margin: 0; }
.explore-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* ============================================================
   Trang danh sách / lưu trữ / chi tiết
   ============================================================ */
.list-main, .archive-main, .single-main { padding: 34px 0 60px; }
.page-main { padding: 40px 0 70px; }

.list-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    grid-template-areas: "maincol sidecol";
}
.list-grid > * { min-width: 0; }
.list-maincol { grid-area: maincol; min-width: 0; }
.list-sidecol { grid-area: sidecol; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.page-heading { margin-bottom: 26px; }
.page-title { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 6px; }
.page-sub { color: var(--ink-soft); margin: 0; }

.post-list { display: flex; flex-direction: column; gap: 18px; }
.post-row {
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid rgba(96, 125, 139, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-slate); }
.post-row-link { display: flex; gap: 20px; padding: 18px; align-items: center; }
.post-row-thumb { flex: 0 0 220px; border-radius: 14px; overflow: hidden; }
.post-row-thumb img { width: 220px; height: 140px; object-fit: cover; display: block; }
.post-row-body { flex: 1; min-width: 0; }
.post-row-title { font-size: 20px; margin-bottom: 8px; }
.post-row:hover .post-row-title { color: var(--rose-deep); }
.post-row-excerpt { margin: 0 0 10px; color: var(--ink-soft); font-size: 14px; }
.post-row-meta { display: flex; gap: 18px; font-size: 13px; }
.meta-date { color: var(--slate); font-weight: 600; }
.meta-read { color: var(--rose); font-weight: 700; }

.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.archive-card {
    min-width: 0;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid rgba(183, 110, 121, 0.2);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.archive-card:hover { transform: translateY(-5px); }
.archive-card-link { display: block; }
.archive-card-thumb { aspect-ratio: 16 / 9; overflow: hidden; }
.archive-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.archive-card:hover .archive-card-thumb img { transform: scale(1.06); }
.archive-card-body { padding: 16px 18px 20px; }
.archive-card-title { font-size: 17px; margin-bottom: 8px; color: var(--slate-deep); }
.archive-card:hover .archive-card-title { color: var(--rose-deep); }
.archive-card-excerpt { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-soft); }
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pagination-nav { margin-top: 30px; text-align: center; }
.pagination-nav .nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination-nav .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid rgba(96, 125, 139, 0.28);
    color: var(--slate-deep);
    font-weight: 700;
    font-size: 14px;
}
.pagination-nav .page-numbers.current {
    background-image: linear-gradient(120deg, #C98690, #B76E79 60%, #9C5663);
    color: #fff;
    border-color: transparent;
}
.pagination-nav a.page-numbers:hover { border-color: var(--rose); color: var(--rose-deep); }

.empty-state {
    padding: 50px 30px;
    text-align: center;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px dashed rgba(96, 125, 139, 0.4);
}

/* --- Bài viết chi tiết --- */
.single-article {
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid rgba(183, 110, 121, 0.18);
    padding: 34px 38px;
    box-shadow: var(--shadow-soft);
}
.single-title { font-size: clamp(26px, 3.2vw, 38px); }
.single-meta { display: flex; gap: 18px; color: var(--ink-soft); font-size: 14px; margin-bottom: 20px; }
.single-thumb { margin: 0 0 24px; border-radius: 14px; overflow: hidden; }
.single-content { font-size: 16.5px; color: #4A3D42; }
.single-content h2, .single-content h3 { margin-top: 1.4em; }
.single-content a { text-decoration: underline; text-underline-offset: 3px; }
.single-content img { border-radius: 12px; }
.single-content blockquote {
    margin: 1.4em 0;
    padding: 16px 22px;
    border-left: 4px solid var(--rose);
    background: var(--cream);
    border-radius: 0 14px 14px 0;
    color: var(--slate-deep);
}
.single-download {
    margin-top: 30px;
    padding: 24px 26px;
    border-radius: var(--radius);
    background-image: linear-gradient(130deg, #F9E9E7, #EFE0E0 55%, #E9EDEF);
    border: 1px solid rgba(183, 110, 121, 0.3);
    text-align: center;
}
.single-download h3 { margin-bottom: 6px; }
.single-download p { margin: 0 0 14px; color: var(--ink-soft); }
.single-tags { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.single-tags a {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(96, 125, 139, 0.12);
    color: var(--slate-deep);
    font-size: 13px;
    font-weight: 600;
}
.single-tags a:hover { background: var(--rose); color: #fff; }
.related-section { margin-top: 40px; }
.related-section .section-title { font-size: 24px; margin-bottom: 18px; }

.page-article {
    max-width: 860px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid rgba(183, 110, 121, 0.18);
    border-radius: var(--radius);
    padding: 40px 46px;
    box-shadow: var(--shadow-soft);
}

/* --- Tìm kiếm sidebar --- */
.side-search { display: flex; gap: 8px; }
.search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(96, 125, 139, 0.35);
    background: var(--cream);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.search-input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.18); }
.search-btn {
    width: 44px;
    border: 0;
    border-radius: 999px;
    background-image: linear-gradient(120deg, #7E97A4, #607D8B);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
}

/* --- Widget mặc định --- */
.widget {
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid rgba(183, 110, 121, 0.2);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 18px;
    font-size: 14px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li a { display: block; padding: 6px 0; color: var(--slate-deep); font-weight: 600; }
.widget ul li a:hover { color: var(--rose-deep); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    margin-top: 20px;
    background-image: linear-gradient(160deg, #4E4148 0%, #3A2E33 55%, #37474F 100%);
    color: rgba(255, 248, 244, 0.8);
    padding: 46px 0 30px;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: "fw1 fw2 fw3";
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-widgets > * { min-width: 0; }
.footer-widgets .footer-widget:nth-child(1) { grid-area: fw1; }
.footer-widgets .footer-widget:nth-child(2) { grid-area: fw2; }
.footer-widgets .footer-widget:nth-child(3) { grid-area: fw3; }
.footer-widget .widget {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: inherit;
}
.footer-widget .widget-title { color: #F4D7C3; font-size: 16px; }
.footer-widget a { color: rgba(255, 248, 244, 0.8); }
.footer-widget a:hover { color: #E9BFAE; }
.footer-bottom { padding-top: 26px; text-align: center; }
.disclaimer-text { font-size: 13px; line-height: 1.8; color: rgba(255, 248, 244, 0.66); max-width: 760px; margin: 16px auto 0; }

/* --- Hiệu ứng xuất hiện khi cuộn --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.in-view { opacity: 1; transform: translateY(0); }
