/* Global Reset & Base Styles */
:root {
    --primary-color: #ff6b6b;   /* Appetizing Red/Coral */
    --secondary-color: #4ecdc4; /* Fresh Teal/Green */
    --accent-color: #f1c40f;    /* Warm Yellow */
    --text-main: #2c3e50;       /* Dark Blue/Gray */
    --text-light: #7f8c8d;      /* Gray */
    --bg-main: #fffdf5;         /* Creamy White */
    --bg-card: #ffffff;         /* White */
    --shadow-soft: 0 10px 20px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 30px rgba(0,0,0,0.1);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    --border-radius: 12px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 80px; /* Prevent navbar overlap */
    line-height: 1.6;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: none; /* More natural for food */
    letter-spacing: 0.5px;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: 0.3s;
}

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

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: 0.3s;
}

.nav-links a:hover::before {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0 4rem;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fffdf5 0%, #fef9e7 100%);
}

.hero h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
    border: none;
}

/* Categories & Titles */
.article-categories {
    margin: 2rem 0;
}

.category {
    margin-bottom: 4rem;
    position: relative;
}

.category h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Game Card Layout - Horizontal Scroll */
.games-grid.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 5px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.games-grid.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Game Card Styles */
.game-card {
    flex: 0 0 280px;
    height: 360px;
    background: var(--bg-card);
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: none; /* Clean images for food */
}

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

/* Remove Glitch Overlay */
.glitch-overlay {
    display: none;
}

.game-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: transparent;
}

.game-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-shadow: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-scanline {
    display: none;
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
}

.category:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.scroll-left {
    left: -20px;
}

.scroll-right {
    right: -20px;
}

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 3rem 0;
    text-align: center;
    color: var(--text-light);
}

.footer::before {
    display: none;
}

.footer-links a {
    color: var(--text-main);
    margin: 0 15px;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

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

/* Game Detail Page Styles */
.game-detail {
    margin: 2rem 0;
    background: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: none;
}

.game-detail::before {
    display: none;
}

.game-detail-info {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.game-detail-image {
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: none;
}

.game-detail-image::after {
    display: none;
}

.game-detail-info h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    text-transform: none;
    text-shadow: none;
    text-align: center;
}

.game-detail-info p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    background: transparent;
    padding: 0;
    border: none;
}

.back-button {
    display: inline-flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border-radius: 20px;
}

.back-button:hover {
    background: var(--primary-color);
    color: #fff;
    transform: none;
}

/* Related Articles */
.may-like {
    margin: 4rem 0;
    border-top: 1px solid #eee;
    padding-top: 3rem;
}

.may-like h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    text-align: center;
}

/* Auxiliary Pages */
.auxiliary-page {
    background: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    margin: 3rem 0;
    border: none;
}

.auxiliary-page h2 {
    font-family: var(--font-heading);
    color: var(--text-main);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.auxiliary-page h3 {
    color: var(--text-main);
    margin: 2rem 0 1rem;
}

.auxiliary-page p, .auxiliary-page li {
    color: #555;
}

/* Contact Form */
.form-group label {
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    background: #f9f9f9;
    border: 1px solid #ddd;
    color: var(--text-main);
    border-radius: 8px;
    padding: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.submit-button {
    background: var(--primary-color);
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    clip-path: none;
    transition: all 0.3s;
}

.submit-button:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        color: var(--text-main);
        font-size: 1.2rem;
    }

    .hamburger .bar {
        background-color: var(--text-main);
    }
    
    .game-card {
        flex: 0 0 85vw;
        height: 320px;
    }

    .game-detail-image img {
        max-height: 300px;
    }
}

/* PC Optimization for Detail Images */
@media (min-width: 769px) {
    .game-detail-image img {
        max-height: 600px;
        width: 100%;
        object-fit: cover;
        display: block;
    }
}