/* assets/css/style.css */
:root {
    --steam-bg: #1b2838;
    --steam-bg-dark: #171a21;
    --steam-card: #202d39;
    --steam-card-hover: #2a475e;
    --steam-blue: #66c0f4;
    --steam-text: #c7d5e0;
    --steam-text-muted: #8f98a0;
    --steam-border: #323f4c;
    --radius-md: 8px;
    --radius-sm: 4px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { touch-action: manipulation; box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--steam-bg); color: var(--steam-text); min-height: 100vh; display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; }

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

.hero-section { background: radial-gradient(circle at 50% 0%, #2a475e 0%, var(--steam-bg) 70%); padding: 60px 0 40px; text-align: center; border-bottom: 1px solid var(--steam-border); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.site-title { font-size: 2.5rem; font-weight: 800; color: #ffffff; margin-bottom: 10px; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.site-title i { color: var(--steam-blue); }
.site-subtitle { font-size: 1.1rem; color: var(--steam-blue); margin-bottom: 30px; font-weight: 500; }

.search-wrap { display: flex; max-width: 600px; margin: 0 auto; background: rgba(0,0,0,0.2); border: 1px solid var(--steam-border); border-radius: 50px; padding: 5px; transition: var(--transition); }
.search-wrap:focus-within { border-color: var(--steam-blue); box-shadow: 0 0 15px rgba(102, 192, 244, 0.2); background: rgba(0,0,0,0.4); }
.search-input { flex: 1; border: none; background: transparent; padding: 12px 20px; color: #fff; font-size: 16px; outline: none; -webkit-appearance: none; }
.search-btn { background: linear-gradient(to right, #47bfff 0%, #1a44c2 100%); color: white; border: none; padding: 0 30px; border-radius: 50px; font-weight: bold; cursor: pointer; transition: var(--transition); }

.category-nav { background: var(--steam-bg-dark); padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,0.5); position: sticky; top: 0; z-index: 100; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.cat-scroll-box { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; -ms-overflow-style: none; align-items: center; }
.cat-scroll-box::-webkit-scrollbar { display: none; }
.cat-tag { white-space: nowrap; padding: 8px 16px; border-radius: 4px; font-size: 14px; font-weight: 600; color: var(--steam-blue); background: rgba(102, 192, 244, 0.1); border: 1px solid transparent; transition: var(--transition); cursor: pointer; }
.cat-tag:hover { background: rgba(102, 192, 244, 0.2); }
.cat-tag.active { background: var(--steam-blue); color: #fff; box-shadow: 0 0 10px rgba(102, 192, 244, 0.4); }

.main-content { padding: 40px 0 80px; flex: 1; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--steam-border); padding-bottom: 10px; }
.section-header h2 { font-size: 1.2rem; font-weight: normal; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.result-count { color: var(--steam-text-muted); font-size: 14px; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.game-card { background: var(--steam-card); border-radius: var(--radius-sm); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.2); border: 1px solid transparent; }
.game-card:hover { transform: scale(1.03); box-shadow: 0 15px 30px rgba(0,0,0,0.4); border-color: #417a9b; z-index: 2; }

.game-cover { height: 150px; background: linear-gradient(135deg, #2a475e 0%, #171a21 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border-bottom: 1px solid rgba(0,0,0,0.3); }
.game-cover::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 40px; background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%); pointer-events: none;}
.game-cover i { font-size: 50px; color: rgba(255,255,255,0.1); transition: var(--transition); z-index: 1;}
.game-card:hover .game-cover i { transform: scale(1.2); color: rgba(102,192,244,0.3); }

.access-badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.8); padding: 4px 8px; border-radius: 4px; font-size: 12px; z-index: 2;}
.access-badge.lock { color: #f59e0b; border: 1px solid #f59e0b; }
.access-badge.wx { color: #a3e635; border: 1px solid #a3e635; }

.game-info { padding: 15px; display: flex; flex-direction: column; flex: 1; }
.game-title { font-size: 16px; color: #fff; font-weight: 600; line-height: 1.3; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }

.game-meta { display: flex; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.meta-tag { background: rgba(255,255,255,0.05); padding: 3px 8px; border-radius: 3px; font-size: 11px; color: var(--steam-text-muted); }

.game-action { margin-top: auto; display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.2); margin: 15px -15px -15px; padding: 10px 15px; border-top: 1px solid rgba(255,255,255,0.05); }
.game-date { font-size: 12px; color: #5a6a7a; }
.btn-view { background: linear-gradient(to right, #75b022 5%, #588a1b 95%); color: #d2efa9; padding: 6px 12px; border-radius: 2px; font-size: 13px; font-weight: bold; border: none; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; gap: 5px; }
.game-card:hover .btn-view { background: linear-gradient(to right, #8ed629 5%, #6aa621 95%); color: #fff; }

.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 40px; }
.page-link { background: rgba(255,255,255,0.1); color: var(--steam-text); padding: 8px 16px; border-radius: 2px; font-size: 14px; transition: 0.2s; }
.page-link:hover:not(.disabled) { background: var(--steam-blue); color: #fff; }
.page-link.disabled { opacity: 0.3; pointer-events: none; }
.page-link.active { background: var(--steam-blue); color: #fff; }

.empty-state { text-align: center; padding: 60px 20px; background: rgba(0,0,0,0.2); border-radius: 8px; border: 1px dashed var(--steam-border); }
.empty-state i { font-size: 48px; color: #323f4c; margin-bottom: 15px; }
footer { background: var(--steam-bg-dark); border-top: 1px solid #000; padding: 40px 0; text-align: center; font-size: 13px; color: #8f98a0; }

@media (max-width: 768px) {
    .hero-section { padding: 40px 0 30px; }
    .site-title { font-size: 2rem; }
    .game-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .game-cover { height: 110px; }
    .game-title { font-size: 14px; }
    .btn-view { padding: 5px 10px; font-size: 12px; }
}