* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
}

/* Navigation Styles */
nav {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-center .logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateY(-2px);
}

.search-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #ee5a24, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Main Content */
.main-content {
    padding: 50px 20px;
}

.hero-section {
    text-align: center;
    margin-bottom: 80px;
    padding: 60px 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Game Grid - Made Rectangular */
/* Gia cố grid để không dính chùm */
.game-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 40px;
    padding: 30px 0;
    align-items: stretch;
}
.game-grid > * {
    box-sizing: border-box;
}
.game-grid ul,
.game-grid li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.game-card {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 15px;
    display: block;
}
/* tránh hiệu ứng bóng đổ nhìn như dính nhau bằng cách tăng blur và giảm spread */
.game-card {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.game-image {
    display: block;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.game-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: all 0.3s ease;
    image-rendering: auto;
}

.game-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    transition: all 0.3s ease;
}

.game-card:hover .game-image::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        transparent 100%
    );
}

.game-card:hover .game-overlay {
    transform: translateY(0);
}

.game-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.game-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 28px;
        row-gap: 28px;
        padding: 24px 0;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .game-card {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
        row-gap: 16px;
        padding: 20px 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-left, .nav-right {
        gap: 15px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .game-card {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 12px;
    }
    
    .nav-left, .nav-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .hero-section {
        padding: 30px 0;
        margin-bottom: 50px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .game-card {
        height: 120px;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeIn 0.6s ease forwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }
.game-card:nth-child(7) { animation-delay: 0.7s; }
.game-card:nth-child(8) { animation-delay: 0.8s; }

/* Hover glow effect */
.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    opacity: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-card:hover::after {
    opacity: 1;
}

.footer-social {
    text-align: center;
    margin: 40px 0 10px 0;
    color: #ccc;
}
.footer-social-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.footer-social-icons {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 18px;
}
.footer-icon img {
    height: 28px;
    width: 28px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid #eee;
}
.footer-icon:hover img {
    transform: scale(1.18) rotate(-6deg);
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    border-color: #764ba2;
}
.footer-social p {
    color: #eee;
    font-size: 1.1rem;
    margin-top: 0;
}
.footer-social a {
    color: #ffb86c;
    text-decoration: underline;
    transition: color 0.2s;
}
.footer-social a:hover {
    color: #ff6b6b;
}

/* Carousel kiểu có preview hai bên */
.slider-container {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 40px auto;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}
.slider-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transition: transform 0.35s ease;
    will-change: transform;
}
.slider-item {
    flex: 0 0 65%;                 /* kích thước mặc định */
    transform: scale(0.9);
    opacity: 0.6;
    transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
}
.slider-item .slider-img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    border: 2px solid rgba(255,255,255,0.08);
}
.slider-item.is-center {
    flex-basis: 85%;               /* trung tâm lớn hơn */
    transform: scale(1);
    opacity: 1;
}
.slider-item.is-prev,
.slider-item.is-next {
    flex-basis: 38%;               /* preview 2 bên nhỏ hơn */
    transform: scale(0.88);
    opacity: 0.85;
}
/* Viền nhấn mạnh hai ảnh bên */
.slider-item.is-prev .slider-img,
.slider-item.is-next .slider-img {
    border-color: rgba(255,255,255,0.22);
}
/* Hover lướt qua tăng scale nhẹ */
.slider-item:hover { transform: scale(0.93); }
.slider-item.is-center:hover { transform: scale(1.02); }
@media (max-width: 768px) {
    .slider-item { flex-basis: 85%; }
    .slider-item.is-center { flex-basis: 95%; }
    .slider-item.is-prev,
    .slider-item.is-next { flex-basis: 55%; }
}
