/* Global Styles */
:root {
    --primary-color: #FF7F00;
    --primary-dark: #E67300;
    --primary-light: #FFA040;
    --secondary-color: #FFD700;
    --background-color: #FFF5E6;
    --text-color: #333;
    --light-text: #666;
    --white: #fff;
    --black: #000;
    --gray: #eee;
    --dark-gray: #ccc;
}

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

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

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

button {
    cursor: pointer;
    transition: all 0.3s;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.header h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    margin-right: 20px;
}

.nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav a.active {
    color: var(--primary-color);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Featured Game Section */
.featured-game {
    margin-bottom: 40px;
}

.featured-banner {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
}

.game-title {
    font-size: 2rem;
    margin-bottom: 5px;
}

.game-tags {
    font-size: 1rem;
    opacity: 0.8;
}

/* Game List Section */
.game-list h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

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

.game-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.game-card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.game-card-info {
    padding: 15px;
}

.game-card-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.game-card-tags {
    font-size: 0.8rem;
    color: var(--light-text);
}

/* Game Details Page */
.game-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.game-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-right: 20px;
    object-fit: cover;
}

.game-info {
    flex: 1;
}

.game-details h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.game-description {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.game-description h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.game-screenshot {
    margin-bottom: 30px;
}

.game-screenshot img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.recommended-games {
    margin-bottom: 30px;
}

.recommended-games h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.recommended-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.recommended-card:hover {
    transform: translateY(-5px);
}

.recommended-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.recommended-card-info {
    padding: 10px;
}

.recommended-card-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.recommended-card-tags {
    font-size: 0.7rem;
    color: var(--light-text);
}

/* Reviews Section */
.game-reviews {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.game-reviews h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.review {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray);
}

.review:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.review-user {
    font-weight: bold;
    margin-right: 10px;
}

.review-rating {
    color: var(--secondary-color);
    font-weight: bold;
}

.review-content {
    color: var(--text-color);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background-color: var(--gray);
    border-radius: 5px;
    color: var(--text-color);
}

.page-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Play Page */
.play-page {
    background-color: var(--black);
    height: 100vh;
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#gameFrame {
    width: 100%;
    height: 100%;
    border: none;
}

.back-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.back-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Footer */
.footer {
    background-color: var(--white);
    padding: 30px 0;
    margin-top: 50px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.footer-links a {
    margin: 0 15px;
    color: var(--light-text);
}

.footer p {
    text-align: center;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .logo-container {
        margin-bottom: 5px;
    }
    
    .nav ul {
        justify-content: center;
    }
    
    .nav li {
        margin-right: 10px;
    }
    
    .featured-banner {
        height: 250px;
    }
    
    .game-header {
        flex-direction: column;
        text-align: center;
    }
    
    .game-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .recommended-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-card-img {
        height: 120px;
    }
    
    .play-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}