/*
Theme Name: My Next Games
Theme URI: https://www.mynextgames.com/
Description: A custom CMS-driven theme replicating the My Next Games website.
Author: Your Name
Version: 2.0
Text Domain: mynextgames
*/

/* Core Reset & Variables */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-red: #d11e22;
    --font-heading: 'Arial', 'Helvetica', sans-serif;
    --font-body: 'Raleway', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Header & Navigation */
/* The header is fixed, transparent, and blurry per user request */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    z-index: 9999;
    backdrop-filter: blur(5px);
    border-bottom: none !important;
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation a {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
    /* dynamic background handled in front-page.php */
}

.hero-logo img {
    max-width: 600px;
    width: 100%;
    height: auto;
}

/* Game Sections & Categories */
.category-wrapper {
    position: relative;
    /* dynamic backgrounds handle parallax dynamically */
}

.game-section {
    padding: 0;
    position: relative;
    background-color: transparent;
    overflow: hidden;
    /* Prevent margin collapse and keep floats in check if any */
    /* rely on category background */
}

.container {
    max-width: 100%;
    /* Full width */
    margin: 0;
    /* Reset margin */
    padding: 0;
    /* Remove horizontal padding if any */
    width: 100%;
}

.game-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    gap: 0;
    align-items: center;
}

.game-logo img,
.game-screenshot img,
.game-character img {
    width: 100%;
    height: auto;
    /* Reverting to auto might help if aspect ratio was breaking visibility */
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-title {
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px #000;
}

.game-desc {
    font-size: 16px;
    color: #ccc;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #fff;
    color: #fff;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
    background-color: #fff;
    color: #000;
}

/* Footer Focus */
.site-footer {
    background-color: #000;
    text-align: center;
    border-top: 1px solid #222;
}

/* Animations */
.fade-in-element {
    /* opacity: 0; */
    /* transform: translateY(40px); */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left-element {
    /* opacity: 0; */
    /* transform: translateX(-100px); */
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-left-element.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .game-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .game-info {
        align-items: center;
    }
}