/* Variables */
:root {
    --gc-dark: #16171E;
    --gc-darker: #121319;
    --gc-yellow: #FFB81C;
    --gc-blue: #4872FB;
    --gc-green: #38CE6A;
    --gc-red: #FF4A55;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--gc-dark);
    color: white;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gc-yellow);
}

/* Header */
header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-gc {
    font-size: 1.75rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.logo-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

.search-icon {
    position: relative;
    cursor: pointer;
}

.search-box {
    position: absolute;
    right: 0;
    top: 100%;
    width: 300px;
    padding: 1rem;
    background-color: var(--gc-darker);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    display: none;
}

.search-box input {
    width: 100%;
    padding: 0.5rem;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 0.25rem;
}

.search-box button {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Main Content */
main {
    padding: 2rem 0;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header a {
    font-size: 0.875rem;
    color: var(--gc-yellow);
}

/* Game Cards */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.game-card {
    background-color: var(--gc-darker);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s;
}

.game-card:hover {
    transform: scale(1.02);
}

.card-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: var(--gc-yellow);
}

.card-image-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--gc-dark);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.card-content {
    padding: 1rem;
}

.game-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.game-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.platform-tag {
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.game-score {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: var(--gc-dark);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
}

.upcoming-date {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--gc-dark);
    color: white;
    padding: 0.5rem;
    text-align: center;
}

.upcoming-date .day {
    font-weight: bold;
    font-size: 1.25rem;
}

.upcoming-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Featured Game */
.featured-game {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    background-color: var(--gc-yellow);
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.featured-game img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.featured-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.media-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.media-logo {
    width: 100%;
    padding-top: 100%;
    background-color: var(--gc-yellow);
    border-radius: 0.5rem;
    position: relative;
}

.media-logo-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--gc-dark);
}

.media-name {
    font-size: 0.875rem;
    text-align: center;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    .search-icon {
        margin-top: 1rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}