/* 
* G Station - Main Stylesheet
* A modern gaming website with responsive design
*/

/* Base Styles and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff4655;
    --secondary-color: #121212;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --header-height: 70px;
    --container-width: 1200px;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

ul {
    list-style: none;
}

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

/* Layout Container */
.header-container,
.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.main-nav a {
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.search-bar input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    width: 250px;
    font-size: 14px;
}

.search-bar button {
    padding: 10px 15px;
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #e63e4c;
}

/* Main Content Styles */
main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--primary-color);
    background-size: cover;
    background-position: center;
    color: rgb(243, 248, 245);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: var(--border-radius);

    
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Styles */
section {
    margin-bottom: 50px;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.game-card-content {
    padding: 15px;
    text-align: center;
}

.game-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.game-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    display: none;
}

.game-card .category {
    display: none;
}

/* Categories Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    margin: 0;
}

/* Game Page Styles */
.game-container {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.game-container h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.game-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.game-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

.game-description {
    margin-top: 30px;
}

.game-description h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.game-controls {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
}

.game-controls h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 768px) {
    :root {
        --header-height: auto;
    }
    
    .header-container {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        gap: 15px;
    }
    
    .search-bar {
        margin-top: 15px;
        width: 100%;
    }
    
    .search-bar input {
        width: calc(100% - 100px);
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .game-wrapper {
        padding-bottom: 75%; /* Taller aspect ratio for mobile */
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Additional Responsive Adjustments */
@media (max-width: 480px) {
    .main-nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
        gap: 10px;
    }
    
    .games-grid, 
    .category-grid {
        grid-template-columns: 1fr;
    }
} 