/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: #14151f;
    color: #e8e8f0;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

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

/* ===== HEADER ===== */
.site-header {
    background: #1c1d2b;
    border-bottom: 3px solid #6c5ce7;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #6c5ce7;
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #b8b8c8;
    transition: color 0.2s;
}

.main-nav a:hover { color: #6c5ce7; }

/* ===== MAIN ===== */
.site-main {
    min-height: 70vh;
    padding: 30px 0 50px;
}

.hero {
    text-align: center;
    padding: 30px 0 40px;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.hero p {
    color: #a0a0b8;
    font-size: 1.05rem;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #fff;
}

h2 {
    font-size: 1.3rem;
    margin: 24px 0 12px;
    color: #fff;
}

p { margin-bottom: 12px; color: #c8c8d8; }

/* ===== GAMES GRID ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin: 20px 0 30px;
}

.game-card {
    background: #1c1d2b;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #2a2b3d;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
    border-color: #6c5ce7;
}

.game-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #2a2b3d;
}

.game-card-title {
    display: block;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e8e8f0;
    text-align: center;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    color: #a0a0b8;
}

.pagination a {
    background: #6c5ce7;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
}

/* ===== GAME PAGE ===== */
.breadcrumb {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 16px;
}

.breadcrumb a { color: #6c5ce7; }

.game-embed-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
}

.game-embed-wrapper iframe {
    width: 100%;
    height: 600px;
    display: block;
    border: none;
}

.game-meta { margin-bottom: 20px; }

.badge {
    display: inline-block;
    background: #2a2b3d;
    color: #b8b8c8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.game-description, .game-instructions, .intro-content, .content-page {
    background: #1c1d2b;
    border-radius: 10px;
    padding: 20px;
    margin-top: 16px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1c1d2b;
    border-top: 1px solid #2a2b3d;
    padding: 24px 0;
    margin-top: 40px;
}

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

.footer-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #a0a0b8;
    font-size: 0.9rem;
}

.footer-nav a:hover { color: #6c5ce7; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.ad-slot {
    margin: 20px 0;
    text-align: center;
    overflow: hidden;
}

.ad-slot:empty { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }
    .game-embed-wrapper iframe { height: 380px; }
    .hero h1 { font-size: 1.6rem; }
}
