/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6c5ce7;
    --primary-dark: #5b4cdb;
    --secondary: #00cec9;
    --dark: #2d3436;
    --light: #f5f6fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

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

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Games Section */
.games {
    padding: 80px 20px;
}

.games h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--dark);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.game-image {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-emoji {
    font-size: 80px;
}

.game-info {
    padding: 25px;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.game-info p {
    color: #636e72;
    margin-bottom: 20px;
}

.game-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--light);
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-secondary:hover {
    background: var(--dark);
    color: var(--white);
}

/* Ad Container */
.ad-container {
    padding: 20px;
    text-align: center;
}

.ad-placeholder {
    background: #dfe6e9;
    color: #b2bec3;
    padding: 40px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* About Section */
.about {
    background: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about p {
    max-width: 700px;
    margin: 0 auto;
    color: #636e72;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 20px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    header nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/* Game embed page styles */
.game-container {
    padding: 20px;
}

.game-embed {
    background: var(--dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.game-embed iframe,
.game-embed canvas {
    display: block;
    width: 100%;
    max-width: 800px;
    height: 600px;
    margin: 0 auto;
    border: none;
}

.game-details {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.game-details h1 {
    margin-bottom: 15px;
}

.game-details p {
    color: #636e72;
    margin-bottom: 20px;
}

/* Privacy page */
.privacy-content {
    background: var(--white);
    padding: 60px 40px;
    margin: 40px auto;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.privacy-content h1 {
    margin-bottom: 30px;
    color: var(--dark);
}

.privacy-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.3rem;
}

.privacy-content p,
.privacy-content ul {
    margin-bottom: 15px;
    color: #636e72;
}

.privacy-content ul {
    padding-left: 25px;
}

.privacy-content li {
    margin-bottom: 8px;
}
