:root {
    --primary-color: #0096ff;
    --background-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #333333;
    --header-height: 60px;
    --footer-height: 60px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.page-title {
    font-size: 28px;
    margin: 18px 0 8px;
    color: var(--text-color);
    text-align: left;
}

.game-card-article {
    display: block;
}

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

header {
    background-color: var(--card-bg);
    height: var(--header-height);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.search-bar input {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    outline: none;
    width: 200px;
    transition: width 0.3s;
}

.search-bar input:focus {
    width: 300px;
    border-color: var(--primary-color);
}

main {
    padding: 20px 0;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.game-thumb {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #eee;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-thumb img {
    transform: scale(1.1);
}

.game-info {
    padding: 10px;
    text-align: center;
}

.game-info h3 {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

footer {
    background-color: var(--card-bg);
    padding: 0;
    margin-top: 0;
    text-align: center;
    color: #666;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--footer-height);
    display: flex;
    align-items: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.06);
    z-index: 90;
}

@media (max-width: 600px) {
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .search-bar input {
        width: 150px;
    }
    
    .search-bar input:focus {
        width: 180px;
    }
}

/* Content pages (about, privacy, terms, articles) */
.container.content {
    max-width: 920px;
    padding: 40px 16px;
    padding-bottom: calc(40px + var(--footer-height));
    background: transparent;
}
.content h1 {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-color);
}
.content .section {
    margin-bottom: 18px;
}
.content p, .content li, .content dd {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
}
footer .container p a { color: #666; text-decoration: none; margin: 0 6px; }
footer .container p a:hover { color: var(--primary-color); }

