/* ===== CSS Variables ===== */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5b4cdb;
    --secondary: #00cec9;
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --text: #eaeaea;
    --text-muted: #a0a0a0;
    --accent: #fd79a8;
    --gradient: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* ===== Header ===== */
.header {
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

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

.lang-switcher {
    margin-left: 2rem;
}

.lang-switcher select {
    background: rgba(255,255,255,0.1);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

.lang-switcher select:hover {
    border-color: var(--primary);
}

.lang-switcher select option {
    background: var(--bg-card);
    color: var(--text);
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(108,92,231,0.1) 0%, transparent 100%);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===== Ad Container ===== */
.ad-container {
    max-width: 728px;
    margin: 2rem auto;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== Games Section ===== */
.games-section {
    padding: 3rem 0;
}

.games-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

.game-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.game-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.game-card-body {
    padding: 1rem;
}

.game-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.game-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.game-card-cat {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 2px 8px;
    font-size: 0.7rem;
    background: rgba(108, 92, 231, 0.2);
    color: var(--secondary);
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-card-credit {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.3s;
    text-decoration: none;
}

.game-card-credit:hover {
    opacity: 1;
}

.game-card {
    position: relative;
}

/* ===== About Section ===== */
.about-section {
    padding: 3rem 0;
    background: rgba(255,255,255,0.02);
    margin-top: 2rem;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-section p {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
}

.thanks {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
}

/* ===== Modal Window ===== */
/* New window styles moved to /css/window.css */

/* Lock body when modal is open */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    touch-action: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    #gameFrame {
        height: 350px;
    }
    
    .ad-container {
        max-width: 320px;
    }
}
