/* Modern Game Page Styles - Inspired by Twitch/Steam */
:root {
    --background-primary: #0e0e10;
    --background-secondary: #18181b;
    --background-tertiary: #1f1f23;
    --accent-color: #9147ff;
    --accent-color-hover: #772ce8;
    --free-tag-color: #00b757;
    --text-primary: #ffffff;
    --text-secondary: #adadb8;
    --card-hover: #26262c;
    --error-red: #f43f5e;
    --success-green: #00b757;
    --warning-yellow: #ffcc00;
}

body {
    background-color: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--background-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

nav {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.logo img {
    height: 32px;
    margin-right: 10px;
    filter: drop-shadow(0 0 4px var(--accent-color));
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

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

.nav-links a.active {
    color: var(--accent-color);
    font-weight: 600;
}

main {
    margin-top: 80px;
    padding: 0 20px;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.game-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.game-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    position: relative;
}

.game-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.category, .rating, .plays {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    background-color: var(--background-tertiary);
    padding: 6px 12px;
    border-radius: 50px;
}

.rating {
    color: var(--warning-yellow);
}

.plays {
    color: var(--text-secondary);
}

.game-frame-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    background-color: var(--background-secondary);
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
}

.game-description {
    background-color: var(--background-secondary);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.game-description h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 10px;
}

.game-description h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.game-description h3 {
    font-size: 1.4rem;
    margin: 25px 0 15px;
    color: var(--text-primary);
}

.game-description p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.game-description ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.game-description li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.game-description li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.related-games {
    max-width: 1200px;
    margin: 0 auto 60px;
}

.related-games h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 10px;
}

.related-games h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

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

.game-card {
    background-color: var(--background-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

.game-card h3 {
    font-size: 1.2rem;
    padding: 15px 15px 10px;
    color: var(--text-primary);
}

.game-card-meta {
    display: flex;
    justify-content: space-between;
    padding: 0 15px 15px;
}

.game-card-meta .category {
    font-size: 0.8rem;
    padding: 3px 8px;
    background-color: var(--background-tertiary);
    border-radius: 4px;
}

.game-card-meta .rating {
    font-size: 0.9rem;
}

footer {
    background-color: var(--background-secondary);
    padding: 40px 20px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--background-tertiary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-section p, .footer-section a {
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--background-tertiary);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Game Controls Section */
.game-controls {
    background-color: var(--background-secondary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-buttons {
    display: flex;
    gap: 15px;
}

.control-button {
    background-color: var(--background-tertiary);
    color: var(--text-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.control-button:hover {
    background-color: var(--accent-color);
}

.control-button i {
    font-size: 0.9rem;
}

.social-share {
    display: flex;
    gap: 10px;
}

.share-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-tertiary);
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-button:hover {
    color: var(--text-primary);
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Advanced Game Info Section */
.game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--background-tertiary);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-frame {
        height: 400px;
    }
    
    .game-header h1 {
        font-size: 2rem;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .game-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .game-frame {
        height: 300px;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
    }
} 