:root {
    --primary-color: #00a8ff;
    --secondary-color: #fbc531;
    --bg-color: #48dbfb;
    --text-color: #2f3640;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.header {
    background-color: var(--secondary-color);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.btn-nav {
    text-decoration: none;
    color: var(--white);
    background-color: var(--primary-color);
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.btn-nav:hover {
    background-color: #0097e6;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 0;
    color: var(--white);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Game Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.game-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.game-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.game-card h3 {
    padding: 10px;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.page-link {
    text-decoration: none;
    background: var(--white);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
}

.page-link.active, .page-link:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Adsense Placeholder */
.adsense-container {
    margin: 40px auto;
    text-align: center;
}

.ad-placeholder {
    background: #f1f2f6;
    border: 2px dashed #ccc;
    padding: 20px;
    color: #777;
    border-radius: 10px;
}

/* Articles */
.articles {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.articles h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.article-item {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item h3 {
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-content p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .btn-nav {
        margin: 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}
