:root {
    --primary-color: #ff4757;
    --secondary-color: #2f3542;
    --bg-color: #f1f2f6;
    --text-color: #2f3542;
    --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;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
}

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

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

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

.nav-links li {
    margin-left: 20px;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: var(--transition);
}

/* Hero */
.hero {
    text-align: center;
    padding: 40px 0;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

/* Category Tags */
.categories-tags {
    margin-bottom: 30px;
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag {
    background-color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

/* Game Grid */
.game-section {
    margin-bottom: 40px;
}

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

.game-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

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

.game-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.game-card p {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

/* Article Content */
.article-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.article-content h2 { margin-top: 30px; margin-bottom: 15px; }
.article-content h3 { margin-top: 25px; margin-bottom: 10px; }
.article-content h4 { margin-top: 20px; margin-bottom: 10px; }
.article-content p { margin-bottom: 15px; }

/* Game Player Page */
.game-container {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.7);
    z-index: 10;
}

.play-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: -1;
    opacity: 0.5;
}

.play-btn {
    padding: 15px 40px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #ff4757, #ff6b81);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 71, 87, 0.4);
    transition: var(--transition);
}

.play-btn:hover {
    transform: scale(1.1);
}

#game-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-details {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.game-details h1 { margin-bottom: 10px; }
.game-meta { margin-bottom: 20px; color: #747d8c; }
.game-details h2, .game-details h3 { margin: 20px 0 10px; }

.hidden { display: none; }

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #a4b0be;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 10px 0; }
    
    .game-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 28px; }
    
    .article-content { padding: 20px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .game-grid { grid-template-columns: repeat(4, 1fr); }
}
