/* Traxx Games - Main Stylesheet */
:root {
    --primary-red: #EE3126;
    --secondary-grey: #484C55;
    --white: #FFFFFF;
    --light-grey: #F5F5F5;
    --dark-grey: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white);
    color: var(--secondary-grey);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-red);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-grey);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    width: 150px;
    height: auto;
    display: block;
    margin: 0;
}

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

.nav-links a {
    color: var(--secondary-grey);
    font-weight: 500;
}

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

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-grey);
    margin: 3px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 1000;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    text-align: center;
    padding: 15px 20px;
}

.dropdown-menu a {
    color: var(--secondary-grey);
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s ease;
}

.dropdown-menu a:hover {
    color: var(--primary-red);
    background-color: var(--light-grey);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c4261a 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

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

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

.hero-logo {
    max-width: 200px;
    margin: 30px auto 0;
    display: block;
    height: auto;
}

.hero-btn {
    background-color: var(--white);
    color: var(--primary-red);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}

.hero-btn:hover {
    background-color: var(--secondary-grey);
    color: var(--white);
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-red);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-grey);
    margin: 15px auto 0;
}

/* News Section */
.news-section {
    background-color: var(--light-grey);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.news-image {
    width: 100%;
    height: 200px;
    background-color: var(--secondary-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 40px;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--primary-red);
    font-size: 14px;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-grey);
}

.news-content p {
    font-size: 14px;
    color: var(--secondary-grey);
}

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

.game-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.game-logo {
    width: 100%;
    background-color: var(--secondary-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 40px;
}

.game-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-grey);
}

.game-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.badge-steam {
    background-color: #1b2838;
    color: var(--white);
}

.badge-web {
    background-color: var(--primary-red);
    color: var(--white);
}

.badge-platformer {
    background-color: var(--secondary-grey);
    color: var(--white);
}

.badge-puzzle {
    background-color: var(--primary-red);
    color: var(--white);
}

.badge-idle {
    background-color: var(--secondary-grey);
    color: var(--white);
}

.badge-shooter {
    background-color: var(--primary-red);
    color: var(--white);
}

.badge-runner {
    background-color: var(--secondary-grey);
    color: var(--white);
}

.badge-pong {
    background-color: var(--primary-red);
    color: var(--white);
}

.badge-single-player {
    background-color: var(--secondary-grey);
    color: var(--white);
}

.badge-local-multiplayer {
    background-color: var(--primary-red);
    color: var(--white);
}

.game-genre {
    font-size: 14px;
    color: var(--secondary-grey);
    margin-bottom: 15px;
}

.game-players {
    font-size: 14px;
    color: var(--secondary-grey);
    margin-bottom: 15px;
}

.game-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    margin-top: auto;
    transition: background-color 0.3s ease;
}

.btn-steam {
    background-color: #1b2838;
    color: var(--white);
}

.btn-steam:hover {
    background-color: #3a4b60;
}

.btn-play {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-play:hover {
    background-color: #c4261a;
}

/* About Section */
.about-section {
    background-color: var(--light-grey);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--secondary-grey);
}

.about-content p {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--secondary-grey);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 40px;
}

.team-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-grey);
}

.team-role {
    color: var(--primary-red);
    font-weight: 500;
}

.team-bio {
    margin-top: 15px;
    font-size: 14px;
    color: var(--secondary-grey);
}

/* Contact Section */
.contact-section {
    background-color: var(--light-grey);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.contact-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary-grey);
}

.contact-email {
    font-size: 18px;
    color: var(--primary-red);
    font-weight: 500;
}

.contact-email:hover {
    color: var(--secondary-grey);
}

/* Footer */
footer {
    background-color: var(--secondary-grey);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: var(--white);
}

footer a:hover {
    color: var(--primary-red);
}

/* Screenshot Slider */
.screenshot-slider {
    position: relative;
    max-width: 900px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 8px;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 550px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    padding: 15px 15px;
    cursor: pointer;
    font-size: 24px;
    transition: background-color 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--primary-red);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Game Page Specific Styles */
.game-page-container {
    max-width: 1000px;
    margin: 0 auto;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 40px;
    gap: 40px;
}

.game-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 600px;
}

.game-logo-large {
    width: 200px;
    height: 200px;
    background-color: var(--secondary-grey);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
    flex-shrink: 0;
}

.game-page-title {
    font-size: 36px;
    color: var(--secondary-grey);
    margin-bottom: 10px;
}

.game-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--secondary-grey);
    max-width: 800px;
    margin: 0 auto 30px;
    margin-left: 20px;
    margin-right: 20px;
}

.game-features {
    background-color: var(--light-grey);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.game-features h3 {
    font-size: 24px;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 14px;
    color: var(--secondary-grey);
}

.features-list li:last-child {
    border-bottom: none;
}

/* Featured Section */
.featured-section {
    background-color: var(--white);
    padding: 80px 0;
}

.featured-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.featured-logo {
    width: 150px;
    height: 150px;
    background-color: var(--secondary-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 70px;
    margin-bottom: 25px;
}

.featured-title {
    font-size: 32px;
    color: var(--secondary-grey);
    margin-bottom: 15px;
}

.featured-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--secondary-grey);
    max-width: 700px;
    margin-bottom: 25px;
}

.featured-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.featured-btn {
    padding: 15px 40px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .nav-links {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    .dropdown-menu {
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
    }

    .dropdown-menu li {
        padding: 15px 30px;
    }

    .dropdown-menu a {
        font-size: 16px;
    }
    
    .news-grid, .games-grid, .team-grid, .featured-meta {
        grid-template-columns: 1fr;
    }
    
    .featured-card {
        padding: 30px 20px;
    }
    
    .featured-logo {
        width: 120px;
        height: 120px;
        font-size: 50px;
    }
    
    .featured-title {
        font-size: 24px;
    }
    
    .game-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
    }
    
    .game-title-group {
        max-width: 100%;
        text-align: center;
    }
    
    .game-page-title {
        font-size: 28px;
    }
    
    .game-logo-large {
        width: 150px;
        height: 150px;
    }
}
