/* Main CSS for Moban 8-2-68 - J-class Experimental */
:root {
    --primary: #5D4037;
    --secondary: #A1887F;
    --bg: #FFF8E1;
    --text: #333;
    --text-muted: #666;
    --card-bg: #fff;
    --card-border: rgba(0,0,0,0.08);
    --radius: 4px;
    --gap: 10px;
    --section-padding: 20px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --font1: 'Space Grotesk', sans-serif;
    --font2: 'Inter', sans-serif;
}

body { font-family: var(--font2); background: var(--bg); color: var(--text); line-height: 1.7; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font1); font-weight: 700; }
a { color: var(--primary); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--secondary); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--card-bg); border-bottom: 1px solid var(--card-border); position: sticky; top: 0; z-index: 100; padding: 12px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-logo .logo-img { height: 40px; width: auto; }
.header-actions { display: flex; gap: 10px; }
.btn { display: inline-block; padding: 10px 24px; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; transition: all 0.3s; border: none; cursor: pointer; text-align: center; }
.btn-login { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-login:hover { background: var(--primary); color: var(--bg); }
.btn-register, .btn-download { background: var(--primary); color: #fff; }
.btn-register:hover, .btn-download:hover { background: var(--secondary); color: var(--bg); }
.btn-secondary { background: transparent; color: var(--secondary); border: 2px solid var(--secondary); }
.btn-secondary:hover { background: var(--secondary); color: var(--bg); }
.btn-sm { padding: 6px 16px; font-size: 0.8rem; }
.btn-view-all { display: block; text-align: center; margin-top: 30px; background: var(--primary); color: #fff; padding: 14px 40px; }

/* Float Dots Nav */
.float-dots-nav { display: flex; gap: 12px; align-items: center; }
.dot-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.dot-nav-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); transition: all 0.3s; }
.dot-nav-item:hover .dot, .dot-nav-item.active .dot { background: var(--primary); transform: scale(1.5); box-shadow: 0 0 12px var(--primary); }

/* Breadcrumb Nav */
.breadcrumb-nav { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.breadcrumb-nav a { color: var(--text-muted); }
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-nav .sep { color: var(--text-muted); }

/* Fullscreen Nav */
.fullscreen-nav-toggle { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 8px; z-index: 200; }
.fullscreen-nav-toggle span { display: block; width: 28px; height: 3px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.fullscreen-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 999; display: none; align-items: center; justify-content: center; }
.fullscreen-nav-overlay.active { display: flex; }
.fullscreen-nav-content { text-align: center; }
.fullscreen-nav-close { position: absolute; top: 20px; right: 30px; font-size: 2.5rem; color: #fff; background: none; border: none; cursor: pointer; }
.fullscreen-nav-menu { list-style: none; }
.fullscreen-nav-menu li { margin: 20px 0; }
.fullscreen-nav-menu a { color: #fff; font-size: 1.8rem; font-family: var(--font1); font-weight: 700; }
.fullscreen-nav-menu a:hover { color: var(--primary); }

/* Hero */
.hero { padding: 80px 0 60px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); text-align: center; color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1), transparent 50%); }
.hero-title { font-size: 3rem; margin-bottom: 16px; position: relative; }
.hero-subtitle { font-size: 1.2rem; opacity: 0.9; margin-bottom: 20px; position: relative; }
.hero-rating { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; position: relative; }
.rating-stars { color: #FFD700; font-size: 1.3rem; }
.hero-actions { display: flex; gap: 16px; justify-content: center; position: relative; }

/* Theme Toggle */
.theme-toggle { position: fixed; bottom: 30px; right: 30px; z-index: 500; background: var(--card-bg); border: 2px solid var(--card-border); border-radius: 50px; padding: 12px 20px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text); box-shadow: var(--shadow); transition: all 0.3s; }
.theme-toggle:hover { transform: scale(1.05); }

/* Sections */
section { padding: var(--section-padding) 0; }
.section-title { font-size: 2rem; margin-bottom: 30px; text-align: center; color: var(--text); position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary); margin: 12px auto 0; border-radius: 2px; }

/* Slides Carousel */
.slides-carousel { position: relative; overflow: hidden; border-radius: var(--radius); }
.slide-item { display: none; }
.slide-item.active, .slide-item:first-child { display: block; }
.slide-item img { width: 100%; height: auto; border-radius: var(--radius); }
.slide-prev, .slide-next { position: absolute; top: 50%; transform: translateY(-50%); background: var(--primary); color: #fff; border: none; font-size: 2rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; opacity: 0.8; }
.slide-prev { left: 10px; }
.slide-next { right: 10px; }

/* Card Grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--gap); }
.grid-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--shadow); transition: transform 0.3s; }
.grid-card:hover { transform: translateY(-6px); }
.grid-card .game-img { width: 100%; height: 180px; object-fit: cover; }
.grid-card .game-info { padding: 16px; }
.grid-card .game-info h3 { font-size: 1rem; margin-bottom: 10px; }

/* Waterfall */
.waterfall-grid { column-count: 3; column-gap: var(--gap); }
.waterfall-item { break-inside: avoid; margin-bottom: var(--gap); background: var(--card-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--shadow); }
.waterfall-item .game-img { width: 100%; height: auto; }
.waterfall-item .game-info { padding: 14px; }
.waterfall-item .game-info h3 { font-size: 0.95rem; margin-bottom: 8px; }

/* Size Cards */
.size-cards-grid { display: flex; flex-direction: column; gap: var(--gap); }
.big-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.small-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.size-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--shadow); transition: transform 0.3s; }
.size-card:hover { transform: scale(1.03); }
.size-card .game-img { width: 100%; height: 200px; object-fit: cover; }
.small-cards .size-card .game-img { height: 120px; }
.size-card .game-info { padding: 14px; }
.size-card .game-info h3 { font-size: 0.95rem; margin-bottom: 8px; }

/* Horizontal Scroll */
.hscroll-track { display: flex; gap: var(--gap); overflow-x: auto; padding: 10px 0 20px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.hscroll-track::-webkit-scrollbar { height: 6px; }
.hscroll-track::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
.hscroll-item { flex: 0 0 200px; scroll-snap-align: start; background: var(--card-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--shadow); text-align: center; }
.hscroll-item .game-img { width: 100%; height: 150px; object-fit: cover; }
.hscroll-item h4 { padding: 10px; font-size: 0.85rem; }

/* Hover Overlay */
.hover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--gap); }
.hover-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hover-card .game-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.hover-overlay-content { position: absolute; inset: 0; background: rgba(0,0,0,0.75); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; color: #fff; }
.hover-card:hover .hover-overlay-content { opacity: 1; }
.hover-overlay-content h3 { margin-bottom: 12px; font-size: 1.1rem; }

/* Compare Table */
.table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th { background: var(--primary); color: #fff; padding: 14px 16px; text-align: left; font-family: var(--font1); }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--card-border); vertical-align: middle; }
.compare-table tr:hover { background: rgba(255,255,255,0.05); }
.table-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.rank { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.rating { color: #FFD700; }

/* Image List */
.img-list { list-style: none; }
.img-list-item { display: flex; align-items: center; gap: 16px; padding: 14px; background: var(--card-bg); border-radius: var(--radius); margin-bottom: 10px; border: 1px solid var(--card-border); box-shadow: var(--shadow); transition: transform 0.2s; }
.img-list-item:hover { transform: translateX(6px); }
.list-thumb { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; }
.list-info { flex: 1; display: flex; align-items: center; justify-content: space-between; }
.list-info h4 { font-size: 0.95rem; }
.list-badge { background: var(--primary); color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }

/* Circle Icons */
.circle-icons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: center; }
.circle-icon-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.circle-icon-wrap { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 3px solid var(--primary); box-shadow: var(--shadow); }
.circle-img { width: 100%; height: 100%; object-fit: cover; }
.circle-icon-item span { font-size: 0.85rem; font-weight: 600; }

/* Tag Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: baseline; }
.tag-item { display: inline-block; padding: 8px 18px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 50px; color: var(--text); font-weight: 600; transition: all 0.3s; }
.tag-item:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.1); }

/* Two Column Layout */
.two-col-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 20px 0; }
.col-left, .col-right { display: flex; flex-direction: column; gap: 30px; }

/* Tab Container */
.tab-container { padding: 20px 0; }
.tab-bar { display: flex; gap: 0; border-bottom: 3px solid var(--card-border); margin-bottom: 30px; justify-content: center; }
.tab-btn { padding: 14px 32px; background: none; border: none; color: var(--text-muted); font-size: 1rem; font-weight: 600; font-family: var(--font1); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -3px; transition: all 0.3s; }
.tab-btn.active, .tab-btn:hover { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s; }

/* Dashboard Layout */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
.dash-sidebar { background: var(--card-bg); border-radius: var(--radius); padding: 24px; border: 1px solid var(--card-border); box-shadow: var(--shadow); }
.dash-sidebar h3 { margin-bottom: 20px; font-size: 1.1rem; color: var(--primary); }
.dash-stat { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--card-border); }
.stat-num { font-size: 1.5rem; font-weight: 900; color: var(--primary); font-family: var(--font1); min-width: 30px; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }
.dash-main { display: flex; flex-direction: column; gap: 30px; }

/* Posters */
.posters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.poster-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.poster-img { width: 100%; height: 280px; object-fit: cover; display: block; }
.poster-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.poster-card:hover .poster-overlay { opacity: 1; }

/* About */
.about-content { max-width: 800px; margin: 0 auto; }
.about-content p { margin-bottom: 16px; line-height: 1.8; }
.about-content h3 { margin: 24px 0 12px; color: var(--primary); }
.features-list, .rules-list { list-style: none; padding: 0; }
.features-list li, .rules-list li { padding: 10px 0 10px 30px; position: relative; }
.features-list li::before { content: '✦'; position: absolute; left: 0; color: var(--primary); }

/* Posts */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
.post-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--shadow); transition: transform 0.3s; }
.post-card:hover { transform: translateY(-4px); }
.post-card .post-thumb img { width: 100%; height: 180px; object-fit: cover; }
.post-card .post-title { padding: 16px 16px 8px; font-size: 1rem; }
.post-card .post-meta { padding: 0 16px 16px; font-size: 0.8rem; color: var(--text-muted); }
.post-link { color: inherit; }

/* Single Post */
.single-post { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.single-post .post-title { font-size: 2.2rem; margin-bottom: 16px; }
.single-post .post-meta { display: flex; gap: 16px; margin-bottom: 24px; color: var(--text-muted); font-size: 0.85rem; }
.single-post .post-thumb img { width: 100%; border-radius: var(--radius); margin-bottom: 30px; }
.single-post .post-content { line-height: 1.9; }
.single-post .post-content p { margin-bottom: 18px; }
.related-posts { padding: 60px 0; }

/* Archive */
.archive-header { padding: 60px 0 30px; text-align: center; }
.archive-title { font-size: 2rem; color: var(--primary); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { padding: 10px 16px; border-radius: var(--radius); background: var(--card-bg); color: var(--text); border: 1px solid var(--card-border); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Footer */
.site-footer { background: var(--card-bg); border-top: 1px solid var(--card-border); padding: 40px 0 30px; margin-top: 60px; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--card-border); }
.disclaimer-text { margin-top: 16px; font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }

/* Scroll Reveal Animation */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* Parallax */
[data-parallax] .hero { background-attachment: fixed; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* No Posts */
.no-posts { text-align: center; padding: 40px; color: var(--text-muted); }
.page-content { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.page-title { font-size: 2rem; margin-bottom: 24px; color: var(--primary); }
