/* LastPlace Games - Main Stylesheet */
/* Created: January 16, 2026 */

/* ===========================
   Modern Reset
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Picture element support for WebP images */
picture {
    display: inline-block;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* ===========================
   Header & Navigation
   =========================== */
header {
    padding: 20px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff3b3b;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #333;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    background-color: #333;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hamburger Animation when menu is open */
.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ===========================
   Main Content Layout
   =========================== */
.main-content {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin: 40px 0;
}

/* ===========================
   Logo & Intro Section (Homepage)
   =========================== */
.logo-intro {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    margin-bottom: 20px;
}

.logo h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.logo span {
    display: block;
}

.logo .games {
    color: #ff3b3b;
}

.intro p {
    margin-bottom: 15px;
}

/* ===========================
   Games Gallery
   =========================== */
.games-gallery {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.game-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.game-card picture {
    display: block;
    width: 100%;
    height: 180px;
}

.game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.game-info {
    padding: 15px;
}

.game-info h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.game-info p {
    font-size: 0.9rem;
    color: #666;
}

/* ===========================
   Page Header (About Page)
   =========================== */
.page-header {
    text-align: center;
    margin: 40px 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.page-header .subtitle {
    font-size: 1.2rem;
    color: #666;
}

/* ===========================
   About Page Content
   =========================== */
.about-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 40px;
}

.about-section {
    margin-bottom: 40px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff3b3b;
    padding-bottom: 10px;
    display: inline-block;
}

.about-section p {
    margin-bottom: 15px;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.dev-profile {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 30px;
}

.dev-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dev-info {
    flex: 1;
}

.dev-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.dev-info .role {
    color: #ff3b3b;
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.game-philosophy {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.game-philosophy h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.game-philosophy ul {
    list-style: none;
    padding-left: 0;
}

.game-philosophy ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.game-philosophy ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ff3b3b;
}

/* ===========================
   Footer
   =========================== */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff3b3b;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablet and Mobile */
@media (max-width: 768px) {
    /* Show mobile menu toggle button */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide and transform navigation links for mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }
    
    /* Show mobile menu when active */
    .nav-links.active {
        right: 0;
    }
    
    /* Style navigation links in mobile menu */
    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        font-size: 1.1rem;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    /* Overlay backdrop when mobile menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* Prevent scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Main content adjustments */
    .main-content {
        flex-direction: column;
    }
    
    .dev-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .games-gallery {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        padding: 20px;
    }
    
    .nav-links {
        width: 100%;
        right: -100%;
    }
    
    .nav-links.active {
        right: 0;
    }
}
