/* Global Styles */
:root {
    --primary-color: #2c4489;
    /* WapNepal Brand Color */
    --primary-dark: #1a2b5e;
    --accent-color: #f1c40f;
    /* Yellow for contrast */
    --background-color: #f4f6f7;
    --card-background: #ffffff;
    --text-color: #2c3e50;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 1.8em;
    color: white;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo p {
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content Styles */
main {
    padding: 40px 0;
}

.category-section {
    margin-bottom: 60px;
}

.category-title {
    font-size: 1.8em;
    color: var(--primary-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Game Grid Layout */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Game Card Styles */
.game-card {
    background-color: var(--card-background);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(45, 67, 138, 0.15);
}

.game-card-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #eee;
    position: relative;
}

.game-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.game-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-card-content h3 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 700;
}

.game-card-content p {
    font-size: 0.9em;
    color: #636e72;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.play-button {
    display: block;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s;
    border: none;
    cursor: pointer;
}

.play-button:hover {
    background-color: var(--primary-dark);
}

.play-button:active {
    transform: scale(0.98);
}

/* Footer Styles */
footer {
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

footer p {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.5em;
    }

    .category-title {
        font-size: 1.5em;
    }

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