/* Global Resets and Base Styles */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    /* Dark background like Supercell */
    color: #e0e0e0;
    /* Light grey text */
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: #00aaff;
    /* A vibrant blue, can be adjusted */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header and Navigation */
header {
    background-color: #111;
    /* Even darker for header */
    color: #fff;
    padding: 1rem 0;
    border-bottom: 3px solid #007bff;
    /* Accent color */
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo a {
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    /* For aligning image if needed */
    align-items: center;
}

#navbar-logo {
    height: 40px;
    /* Adjust as needed */
    width: auto;
    margin-right: 10px;
    /* Optional: if you want space between logo and text if any */
}

nav .logo a span {
    font-size: 1.8rem;
    /* Match link font-size */
    font-weight: bold;
    /* Match link font-weight */
    text-transform: uppercase;
    /* Match link text-transform */
    letter-spacing: 1px;
    /* Match link letter-spacing */
    color: #fff;
    /* Ensure text color is white */
    margin-left: 0px;
    /* Remove default margin if any, adjust as needed */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #f0f0f0;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #007bff;
    color: #fff;
}

/* Main Content Area */
main {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0;
    /* Remove padding if sections handle it */
}

/* Hero Section Styling (Inspired by Supercell's impactful hero) */
/* General #hero styles for other pages if needed, or remove if only supercell-hero is used */
#hero {
    text-align: center;
    padding: 40px 20px;
    /* Adjusted padding */
    background-color: #222;
    color: #fff;
    border-radius: 8px;
    margin-bottom: 40px;
}

#hero h1 {
    margin-top: 0;
    font-size: 2.5rem;
    /* Adjusted font size */
    font-weight: 700;
    margin-bottom: 0.5em;
}

#hero p {
    font-size: 1.2rem;
    /* Adjusted font size */
    margin-bottom: 1em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* New Supercell Hero Styles */
.supercell-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    /* Adjust padding as needed, or remove if full-width */
    background-color: #111;
    /* Dark background for the hero section itself */
    overflow: hidden;
    /* To prevent banners from overflowing if they are too large */
    position: relative;
    /* For potential absolute positioning of elements if needed later */
    min-height: 400px;
    /* Example minimum height */
}

.supercell-hero .hero-banner-left,
.supercell-hero .hero-banner-right {
    flex: 0 0 auto;
    /* Banners don't grow or shrink, take their content size */
    /* Consider adding max-width or specific widths for banners */
    /* max-width: 30%; */
}

.supercell-hero .hero-banner-left img,
.supercell-hero .hero-banner-right img {
    max-height: 350px;
    /* Control the height of banner images */
    width: auto;
}


.supercell-hero .hero-content {
    flex-grow: 1;
    text-align: center;
    padding: 0 20px;
    /* Space between banners and text */
    z-index: 1;
    /* Ensure text is above any potential pseudo-elements or backgrounds */
}

.supercell-hero .hero-content h1 {
    font-size: 4rem;
    /* Large, impactful title */
    color: #fff;
    font-weight: 900;
    /* Very bold */
    margin-bottom: 0.3em;
    text-transform: uppercase;
}

.supercell-hero .hero-content p {
    font-size: 1.2rem;
    /* Readable subtitle */
    color: #ccc;
    margin-bottom: 1.5em;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.supercell-hero .hero-btn {
    /* Styling for a potential video button */
    padding: 12px 30px;
    font-size: 1.1rem;
    background-color: #007bff;
    /* Primary button color */
    color: white;
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

.supercell-hero .hero-btn:hover {
    background-color: #0056b3;
    /* Darker on hover */
    text-decoration: none;
}


/* Section Headings */
#featured-games h2,
#all-games h1 {
    /* h1 for all-games page title */
    text-align: center;
    color: #e0e0e0;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    /* To make border only as wide as text */
}

/* Center the heading block */
#featured-games,
#all-games {
    text-align: center;
    /* This will center the inline-block h2/h1 */
    margin-bottom: 40px;
}

#all-games p {
    /* Intro paragraph on games page */
    font-size: 1.1rem;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-align: center;
}


/* Game Cards Styling (Inspired by Supercell's game showcases) */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Slightly larger cards */
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
    /* Reset text-align for grid items */
}

.game-card {
    background-color: #2a2a2a;
    /* Darker card background */
    border: 1px solid #444;
    /* Subtle border */
    border-radius: 12px;
    /* More rounded corners */
    padding: 0;
    /* Image will fill top part */
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    /* To contain image within rounded corners */
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.game-card img {
    width: 100%;
    /* Make image fill card width */
    height: 200px;
    /* Fixed height for consistency */
    object-fit: cover;
    /* Cover to fill, might crop */
    border-bottom: 1px solid #444;
    /* No margin-bottom if padding is handled by content div */
}

.game-card-content {
    /* Added a div for content padding */
    padding: 20px;
}

.game-card h3 {
    color: #00aaff;
    /* Brighter accent for game titles */
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 0.5em;
}

.game-card p {
    font-size: 1rem;
    color: #bbb;
    /* Lighter paragraph text for dark bg */
    margin-bottom: 1em;
}

.game-card .platforms {
    font-size: 0.9rem;
    color: #888;
    margin-top: 15px;
    font-style: italic;
}

/* Button Styling */
.more-games-link {
    text-align: center;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Legal Content Pages (Privacy, Terms) */
.legal-content {
    padding: 30px;
    background-color: #222;
    /* Slightly lighter than body for section distinction */
    border-radius: 8px;
    margin-top: 20px;
}

.legal-content h1,
.legal-content h2 {
    color: #00aaff;
    /* Accent color for headings */
    margin-top: 1.5em;
    margin-bottom: 0.7em;
    border-bottom: 1px solid #444;
    padding-bottom: 0.3em;
}

.legal-content h1 {
    font-size: 2.2rem;
}

.legal-content h2 {
    font-size: 1.7rem;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1.2em;
    text-align: left;
    /* Justify can be hard to read, left is often better */
    color: #ccc;
}

.legal-content ul {
    padding-left: 25px;
}

.legal-content ul li {
    margin-bottom: 0.6em;
}

.legal-content strong {
    color: #e0e0e0;
    /* Make strong text slightly brighter */
}

.legal-content em {
    color: #aaa;
}


/* Footer Styling */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #111;
    /* Same as header */
    color: #aaa;
    /* Lighter grey for footer text */
    margin-top: 50px;
    border-top: 3px solid #007bff;
}

footer p {
    margin: 8px 0;
    font-size: 0.9rem;
}

footer a {
    color: #00aaff;
    /* Consistent link color */
}

footer a:hover {
    color: #fff;
    /* Brighter hover for footer links */
}

/* Responsive Adjustments */
@media (max-width: 1024px) {

    /* Adjust breakpoint for hero banners */
    .supercell-hero {
        flex-direction: column;
        padding: 20px;
    }

    .supercell-hero .hero-banner-left,
    .supercell-hero .hero-banner-right {
        margin-bottom: 20px;
        max-width: 60%;
        /* Allow banners to be a bit larger on tablet */
    }

    .supercell-hero .hero-banner-left img,
    .supercell-hero .hero-banner-right img {
        max-height: 250px;
    }

    .supercell-hero .hero-content h1 {
        font-size: 3rem;
    }

    .supercell-hero .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav .logo {
        margin-bottom: 15px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav ul li {
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        /* Make links take full width for easier tapping */
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        /* Single column on smaller screens */
    }

    #featured-games h2,
    #all-games h1 {
        font-size: 2rem;
    }

    .legal-content h1 {
        font-size: 1.8rem;
    }

    .legal-content h2 {
        font-size: 1.4rem;
    }
}
