/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

/* Background ko thoda subtle rakha hai taaki dark cards pop karein */
body {
    background-color: #bdebbd;
    color: #000000;
}

/* Navbar - Premium Look with better shadow */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #1bcf03;
    border-bottom: 3px solid #1a1a2e; /* Dark border for contrast */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e; /* Matched with cards */
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: #1a1a2e;
    color: #88ff00; /* Neon hover effect */
}

/* Hero Section - Gaming Vibe Gradient */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #1bcf03 100%);
    border-bottom: 5px solid #1a1a2e;
}

.hero h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 3px 3px 0px #000000; /* Retro gaming text shadow */
    text-transform: uppercase;
}

.hero p {
    font-size: 1.3rem;
    color: #f0f0f0;
    font-weight: 500;
}

/* Ad Container - AdSense Safe Area */
.ad-container {
    max-width: 900px;
    margin: 30px auto;
    background-color: #ffffff; /* White background is best for AdSense CTR */
    border: 2px dashed #1bcf03;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.ad-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Game Grid Section */
.game-container {
    padding: 50px;
    max-width: 1400px; /* Thoda bada kiya taaki 4 cards ek row me aayein */
    margin: 0 auto;
}

.game-container h2 {
    font-size: 2.2rem;
    margin-bottom: 35px;
    color: #1a1a2e;
    border-left: 6px solid #1bcf03;
    padding-left: 15px;
    display: inline-block;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Game Cards - Fixed Height & Better Hover */
.game-card {
    background-color: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* Hidden border for hover effect */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: #88ff00; /* Neon green border on hover */
    box-shadow: 0 15px 30px rgba(27, 207, 3, 0.4); /* Green glow */
}

.game-card img {
    width: 100%;
    height: 200px; /* FIXED: 380px was too large, 200px is perfect for thumbnails */
    object-fit: cover;
    object-position: center;
    border-bottom: 3px solid #1bcf03;
}

.card-content {
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.1rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.tag {
    background-color: #1bcf03;
    color: #000;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 20px; /* Capsule shape looks more modern */
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    background-color: #1a1a2e; /* Dark footer anchors the bright page */
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 5px solid #1bcf03;
}

footer p {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-links a {
    color: #88ff00;
    margin: 0 15px;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .game-container {
        padding: 20px;
    }
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* 2 columns on mobile */
        gap: 15px;
    }
    .game-card img {
        height: 120px; /* Smaller images for mobile grids */
    }
}

/* Custom Fullscreen Button - Matched with Theme */
.custom-fullscreen-btn {
    background-color: #1a1a2e;
    color: #88ff00; /* Changed to green theme */
    border: 2px solid #88ff00;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-fullscreen-btn:hover {
    background-color: #88ff00;
    color: #1a1a2e;
    box-shadow: 0 0 15px rgba(136, 255, 0, 0.5); /* Neon Green Glow */
}
/* Legal Pages CSS */
.legal-container {
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: 40px;
    margin-bottom: 40px;
    border-top: 5px solid #1bcf03;
}

.legal-container h1 {
    font-size: 2.2rem;
    color: #1a1a2e;
    margin-bottom: 20px;
    border-bottom: 2px dashed #1bcf03;
    padding-bottom: 10px;
}

.legal-container h2 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-container p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.legal-container a {
    color: #1bcf03;
    font-weight: bold;
}