/* ============================================
   Moban 8-10-25 — Bảng điều khiển hai cột lệch
   Emerald #00695C / Amber #FFB300 / Mint #E8F5E9
   ============================================ */

html, body {
    overflow-x: hidden;
}

:root {
    --c-primary: #00695C;
    --c-primary-dark: #004D40;
    --c-primary-light: #26A69A;
    --c-amber: #FFB300;
    --c-amber-dark: #FF8F00;
    --c-mint: #E8F5E9;
    --c-white: #FFFFFF;
    --c-ink: #1B3A34;
    --c-muted: #5F7A73;
    --r: 10px;
    --shadow: 0 6px 18px rgba(0, 77, 64, 0.10);
    --shadow-lg: 0 14px 34px rgba(0, 77, 64, 0.16);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(38, 166, 154, 0.14), transparent 34%),
        radial-gradient(circle at 88% 22%, rgba(255, 179, 0, 0.12), transparent 30%),
        var(--c-mint);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------------- Header ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--c-mint);
    box-shadow: 0 2px 12px rgba(0, 77, 64, 0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 68px;
}
.site-logo { flex: 0 0 auto; min-width: 0; }
.logo-img { max-height: 46px; width: auto; }
.main-nav { flex: 1 1 auto; min-width: 0; }
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}
.nav-menu a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--r);
    font-weight: 500;
    color: var(--c-ink);
    transition: background .2s ease, color .2s ease;
}
.nav-menu a:hover,
.nav-menu .current-menu-item a {
    background: var(--c-primary);
    color: #fff;
}
.header-actions { flex: 0 0 auto; display: flex; gap: 10px; }

.btn {
    display: inline-block;
    padding: 10px 22px;
    border: none;
    border-radius: var(--r);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-amber { background: var(--c-amber); color: #4A2E00; }
.btn-amber:hover { background: var(--c-amber-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.75); }
.btn-login { background: transparent; color: var(--c-primary); border: 2px solid var(--c-primary); }
.btn-register { background: var(--c-primary); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 34px; font-size: 17px; }
.btn-block { display: block; width: 100%; }
.btn-view-all { background: var(--c-white); color: var(--c-primary); border: 2px solid var(--c-primary); margin-top: 18px; }

.nav-toggle { display: none; }

/* ---------------- Điều hướng chấm tròn nổi ---------------- */
.dot-nav {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 95;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 8px;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.dot-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}
.dot-link .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--c-primary-light);
    box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.22);
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.dot-link:hover .dot,
.dot-link.active .dot {
    background: var(--c-amber);
    transform: scale(1.35);
    box-shadow: 0 0 0 4px rgba(255, 179, 0, 0.30);
}
.dot-label {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    padding: 5px 12px;
    background: var(--c-primary-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: var(--r);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.dot-link:hover .dot-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ---------------- Hero ---------------- */
.hero-section { padding: 34px 0 10px; }
.hero-panel {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-img { width: 100%; max-height: 380px; object-fit: cover; }
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    padding: 34px 44px;
    background: linear-gradient(90deg, rgba(0, 77, 64, 0.88) 0%, rgba(0, 77, 64, 0.55) 48%, rgba(0, 77, 64, 0.05) 100%);
}
.hero-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255, 179, 0, 0.92);
    color: #4A2E00;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--r);
}
.hero-title { margin: 0; font-size: 42px; font-weight: 900; color: #fff; line-height: 1.15; }
.hero-title span { color: var(--c-amber); }
.hero-desc { margin: 0; max-width: 480px; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* ---------------- Lưới bảng điều khiển (grid-areas v2) ---------------- */
.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
    gap: 26px;
    padding: 34px 0 10px;
    grid-template-areas:
        "feed   ."
        "game   data"
        "news   data"
        "cta    cta";
}
.dash-grid > * { min-width: 0; }
.area-feed { grid-area: feed; }
.area-data { grid-area: data; display: flex; flex-direction: column; gap: 22px; }
.area-game { grid-area: game; }
.area-news { grid-area: news; }
.area-cta  { grid-area: cta; }

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 900;
    color: var(--c-primary-dark);
}
.title-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c-amber);
    box-shadow: 0 0 0 4px rgba(255, 179, 0, 0.25);
    flex: 0 0 auto;
}

/* ---------------- Thẻ game / nổi bật ---------------- */
.featured-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.featured-row > * { min-width: 0; }
.game-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.game-grid > * { min-width: 0; }
.card-item {
    background: var(--c-white);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 105, 92, 0.08);
    transition: transform .22s ease, box-shadow .22s ease;
}
.card-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.card-body { padding: 12px 14px 16px; text-align: center; }
.card-title { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-rating { color: var(--c-amber-dark); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.game-card.is-hidden { display: none; }

/* ---------------- Tab phân loại ---------------- */
.game-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--r);
    border: 1px dashed rgba(0, 105, 92, 0.25);
}
.tab-btn {
    padding: 9px 22px;
    border: none;
    border-radius: var(--r);
    background: transparent;
    color: var(--c-primary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.tab-btn:hover { background: rgba(0, 105, 92, 0.1); }
.tab-btn.active { background: var(--c-primary); color: #fff; box-shadow: var(--shadow); }

/* ---------------- Cột dữ liệu bên phải ---------------- */
.data-card {
    background: var(--c-white);
    border-radius: var(--r);
    padding: 20px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--c-primary);
}
.data-card-amber { border-top-color: var(--c-amber); background: linear-gradient(160deg, #FFF8E1 0%, #FFFFFF 62%); }
.data-card-title { margin: 0 0 14px; font-size: 17px; font-weight: 900; color: var(--c-primary-dark); }
.data-card-text { margin: 0 0 14px; color: var(--c-muted); font-size: 14px; }
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.stat-grid > * { min-width: 0; }
.stat-cell {
    background: var(--c-mint);
    border-radius: var(--r);
    padding: 14px 10px;
    text-align: center;
}
.stat-num { display: block; font-size: 28px; font-weight: 900; color: var(--c-primary); line-height: 1.1; }
.stat-label { display: block; font-size: 12px; color: var(--c-muted); margin-top: 4px; }
.top-list { display: flex; flex-direction: column; gap: 10px; }
.top-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--r);
    background: var(--c-mint);
    transition: transform .2s ease, background .2s ease;
}
.top-item:hover { transform: translateX(4px); background: #DCEFDD; }
.top-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.top-info { display: flex; flex-direction: column; min-width: 0; }
.top-info strong { font-size: 14px; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-info span { font-size: 12px; font-weight: 700; color: var(--c-amber-dark); }

/* ---------------- Tin tức ---------------- */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-list-item {
    background: var(--c-white);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}
.article-list-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-list-link { display: flex; gap: 16px; padding: 14px; align-items: center; }
.article-list-thumb { flex: 0 0 150px; min-width: 0; }
.article-list-thumb img { width: 150px; height: 96px; object-fit: cover; border-radius: var(--r); background: var(--c-mint); }
.article-list-content { min-width: 0; }
.article-list-title { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--c-ink); }
.article-list-excerpt { margin: 0 0 6px; font-size: 14px; color: var(--c-muted); }
.article-list-date { font-size: 12px; color: var(--c-primary-light); font-weight: 600; }

/* ---------------- CTA ---------------- */
.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 36px;
    border-radius: var(--r);
    background: linear-gradient(100deg, var(--c-primary-dark) 0%, var(--c-primary) 55%, var(--c-primary-light) 100%);
    box-shadow: var(--shadow-lg);
}
.cta-title { margin: 0 0 6px; font-size: 26px; font-weight: 900; color: #fff; }
.cta-desc { margin: 0; color: rgba(255,255,255,.9); }

/* ---------------- Giới thiệu ---------------- */
.about-section { padding: 40px 0 50px; }
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}
.about-grid > * { min-width: 0; }
.about-text p { color: var(--c-ink); margin-top: 0; }
.about-posters { display: flex; gap: 12px; }
.about-posters img {
    flex: 1 1 0;
    min-width: 0;
    height: 210px;
    object-fit: cover;
    border-radius: var(--r);
    box-shadow: var(--shadow);
    transition: transform .25s ease;
}
.about-posters img:hover { transform: translateY(-6px); }

/* ---------------- Trang danh sách / chi tiết ---------------- */
.page-band {
    margin: 30px 0 26px;
    padding: 28px 32px;
    border-radius: var(--r);
    background: linear-gradient(100deg, var(--c-primary-dark), var(--c-primary));
    color: #fff;
    box-shadow: var(--shadow);
}
.page-title { margin: 0 0 6px; font-size: 30px; font-weight: 900; }
.page-sub { margin: 0; opacity: .88; }

.list-layout,
.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas: "main side";
    gap: 28px;
    padding-bottom: 50px;
}
.list-layout > *, .single-layout > * { min-width: 0; }
.list-main { grid-area: main; }
.list-side { grid-area: side; display: flex; flex-direction: column; gap: 20px; }
.single-main { grid-area: main; }
.single-side { grid-area: side; display: flex; flex-direction: column; gap: 20px; }

.single-article {
    background: var(--c-white);
    border-radius: var(--r);
    padding: 30px;
    box-shadow: var(--shadow);
}
.single-title { margin: 0 0 12px; font-size: 30px; font-weight: 900; color: var(--c-primary-dark); }
.single-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--c-muted); margin-bottom: 18px; }
.single-thumb img { border-radius: var(--r); margin-bottom: 20px; }
.single-content { font-size: 16px; }
.single-content img { border-radius: var(--r); }
.single-download {
    margin-top: 28px;
    padding: 24px;
    border-radius: var(--r);
    background: linear-gradient(160deg, #FFF8E1, #FFFFFF);
    border: 2px dashed var(--c-amber);
    text-align: center;
}
.single-download-title { margin: 0 0 8px; font-size: 20px; font-weight: 900; color: var(--c-amber-dark); }

.related-section { margin-top: 34px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.related-grid > * { min-width: 0; }

.sidebar-search { display: flex; gap: 8px; }
.search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    border: 2px solid var(--c-mint);
    border-radius: var(--r);
    font-size: 14px;
}
.search-input:focus { outline: none; border-color: var(--c-primary-light); }
.search-btn {
    padding: 10px 14px;
    border: none;
    border-radius: var(--r);
    background: var(--c-primary);
    color: #fff;
    cursor: pointer;
}
.sidebar-cat-list li a {
    display: flex;
    justify-content: space-between;
    padding: 9px 4px;
    border-bottom: 1px solid var(--c-mint);
    color: var(--c-ink);
    font-size: 14px;
}
.sidebar-cat-list li a:hover { color: var(--c-primary); }

.page-article {
    background: var(--c-white);
    border-radius: var(--r);
    padding: 34px;
    box-shadow: var(--shadow);
    margin-bottom: 50px;
}

.pagination { margin-top: 28px; text-align: center; }
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: var(--r);
    background: var(--c-white);
    color: var(--c-primary);
    font-weight: 700;
    box-shadow: var(--shadow);
}
.pagination .page-numbers.current { background: var(--c-primary); color: #fff; }

.empty-note { padding: 30px; text-align: center; color: var(--c-muted); background: var(--c-white); border-radius: var(--r); }

/* ---------------- Footer ---------------- */
.site-footer {
    margin-top: 20px;
    padding: 40px 0 26px;
    background: var(--c-primary-dark);
    color: rgba(255,255,255,.85);
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-bottom: 26px;
}
.footer-widgets > * { min-width: 0; }
.footer-widget .widget-title { color: var(--c-amber); font-size: 16px; }
.footer-widget a { color: rgba(255,255,255,.8); }
.footer-widget a:hover { color: var(--c-amber); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; }
.disclaimer-text { font-size: 13px; max-width: 760px; margin: 14px auto; line-height: 1.7; }
.footer-copy { font-size: 12px; opacity: .6; }

/* ---------------- Hiệu ứng ---------------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s ease;
}
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }
