/* Modern Gaming Aesthetic - Teapot Games Edition */
:root {
--bg-dark: #121212; /* Deep, neutral dark background */
    --bg-card: #282828; /* Matches the specific dark gray background plate of your logo */
    --accent: #8fb51b; /* The signature Teapot Green */
    --accent-secondary: #749514; /* A slightly darker green for hover states (replaced the old pink) */
    --text-main: #d1d1d1; /* Clean light gray for readable paragraphs */
    --text-heading: #ffffff; /* Crisp white for headings, matching the "GAMES" text */
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, .nav-links a {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

/* Navigation Menu */
header {
    background-color: rgba(17, 14, 17, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;

    /* EXPLICIT PADDING RULES */
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 0px;     /* This keeps the logo clamped to the far left */
    padding-right: 50px;   /* This keeps your navigation links away from the right edge */
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 2px;
    margin: 0;
    text-decoration: none;
    /* Updated glow to match the new golden accent */
    text-shadow: 0 0 10px rgba(244, 178, 81, 0.3);
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(244, 178, 81, 0.6);
}

/* Content Layout */
main {
    padding: 60px 10vw 80px;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 60vh;
}

main h1 {
    font-size: 2.5rem;
    color: var(--text-heading);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

main h2 {
    font-size: 1.8rem;
    color: var(--text-heading);
    margin-top: 40px;
    margin-bottom: 15px;
}

main p, main ul, main li { font-size: 1.1rem; margin-bottom: 15px; }
main ul { padding-left: 20px; }
main a {
    color: var(--accent);
    text-decoration: none;
    transition: text-shadow 0.2s;
}
main a:hover { text-decoration: underline; text-shadow: 0 0 5px rgba(244, 178, 81, 0.5); }

/* Home Page Specifics */
.home-main { max-width: 1400px; padding: 0; }
.hero { text-align: center; padding: 80px 20px 40px; }
.hero h2 { font-size: 3rem; color: var(--text-heading); margin-bottom: 10px; letter-spacing: 3px; border: none; }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

.games-grid {
    display: grid;
    Grid-template-rows: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px 10vw 80px;
}

.game-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(244, 178, 81, 0.2); }

game-image {
    width: 100%; /* Change this from 80% to 100% */
    height: 250px;
    overflow: hidden; /* CRITICAL: Stops the image from spilling into the text area */
    
    /* Keep your existing rules below */
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--accent);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps the aspect ratio but fills the box perfectly */
    display: block;
}

.game-info { 
    padding: 25px; 
}

/* Added the black outline to the heading and paragraph text */
.game-info h3, 
.game-info p,
.game-info h4 { 
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.8);
}

.game-info h3 { 
    font-size: 1.8rem; 
    margin: 0 0 15px 0; 
    color: var(--text-heading); 
}

.game-info p { 
    font-size: 1rem; 
    margin-bottom: 0; /* Changed from 25px to 0 */
}


/* Footer */
footer {
    background-color: #080608;
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--bg-card);
}

/* Container to align the store badges side-by-side */
.store-links {
    display: flex;
    gap: 15px; /* Adds space between the buttons */
    flex-wrap: wrap; /* Allows them to stack on very small phone screens */
    margin-top: 15px;
}

/* Styling and sizing the badges */
.btn-icon {
    height: 60px; /* Fixed height ensures both badges look uniform */
    width: auto; /* Width scales proportionally */
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* Adds a nice hover effect to the badges */
.store-links a:hover .btn-icon {
    transform: scale(1.05); /* Slight zoom */
    filter: drop-shadow(0 4px 8px rgba(244, 178, 81, 0.4)); /* Glow effect matching your theme */
}

/* --- MOBILE RESPONSIVE FIXES --- */
@media (max-width: 1000px) {
    header {
        flex-direction: column;      
        align-items: flex-start;     /* THE FIX: Forces the logo to the left edge */
        padding-top: 15px;
        padding-bottom: 15px;
        padding-right: 0px;          
        padding-left: 0px; 
        gap: 15px;                   
    }

    .logo {
        text-align: left;            /* Removes the previous centering rule */
    }

    /* ADD THIS NEW RULE to shrink the logo */
    .logo-img {
        max-width: 360px; /* Adjust this number to make it bigger or smaller */
        height: auto;     /* Ensures the teapot doesn't get stretched or squished */
    }

    .nav-links {
        width: 100%;                 /* Tells the links container to span the whole screen... */
        flex-wrap: wrap;             
        justify-content: center;     /* ...so that the links themselves can be centered inside it */
        gap: 15px;                   
    }
    
    .nav-links a {
        font-size: 1rem;             
    }
}