:root {
    --bg-main: #121212;       /* Nền đen xám chuẩn Epic */
    --bg-card: #202020;       /* Nền thẻ khi hover */
    --text-primary: #f5f5f5;  /* Trắng ngà */
    --text-secondary: #a0a0a0;/* Xám nhạt cho text phụ */
    --accent-blue: #0074e4;   /* Màu xanh đặc trưng của nút bấm Epic */
    --hover-overlay: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif; /* Font sạch sẽ */
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-size: 14px;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 52px;
    background-color: #18181c; /* Navbar đậm hơn nền 1 chút */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo { font-size: 28px; color: var(--text-primary); cursor: pointer; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links .highlight { color: var(--accent-blue); font-weight: 600; }
.separator { color: #404040; }

.search-wrapper {
    background: #202020;
    padding: 6px 12px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-wrapper input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    width: 150px;
    font-size: 13px;
}
.search-wrapper i { color: var(--text-secondary); font-size: 12px; }

.icon-link { color: var(--text-secondary); font-size: 16px; text-decoration: none; }
.btn-download {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s;
}
.btn-download:hover { background: #0086ff; }

/* --- MAIN LAYOUT --- */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* --- HERO SECTION --- */
.hero-section {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 400px;
}

.hero-slide { width: 100%; height: 100%; position: relative; }

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0)); /* Fade ảnh */
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    max-width: 400px;
    z-index: 2;
}

.tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.hero-content h1 { font-size: 40px; margin-bottom: 15px; line-height: 1.1; }
.hero-content p { font-size: 15px; color: var(--text-secondary); margin-bottom: 25px; line-height: 1.5; }

.hero-actions { display: flex; gap: 15px; }
.btn-white {
    background: white;
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}
.btn-outline {
    background: transparent;
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* --- FILTERS --- */
.marketplace-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 13px;
}
.marketplace-controls strong { color: var(--text-primary); margin-left: 5px; }

/* --- PRODUCT GRID (EPIC CARD STYLE) --- */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Card nhỏ gọn hơn */
    gap: 24px;
}

.game-card {
    cursor: pointer;
    background: transparent;
    transition: transform 0.2s;
}

.game-card:hover .card-media {
    transform: translateY(-5px); /* Nhấc nhẹ ảnh lên */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.game-card:hover .overlay-add { opacity: 1; }

.card-media {
    width: 100%;
    aspect-ratio: 3/4; /* Tỉ lệ dọc chuẩn Game Cover */
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.2s;
}
.game-card:hover .card-media img { filter: brightness(1.2); } /* Sáng lên khi hover */

.overlay-add {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Ẩn mặc định */
    transition: opacity 0.2s;
}

.card-details { padding: 0 4px; }

.base-game {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.card-details h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.discount {
    background: var(--accent-blue);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
}
.old-price { text-decoration: line-through; color: var(--text-secondary); }
.final-price { font-weight: 500; color: var(--text-primary); }