/* =========================================
   GLOBAL RESET
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

/* =========================================
   1. FONT-FACE DEFINITIONS (STATISCHE FONTS)
   ========================================= */

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/MyFont-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/MyFont-medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/MyFont-bold.woff2') format('woff2');
}

/* =========================================
   2. BASE STYLING
   ========================================= */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    background-color: white;
    color: #333333;
    scroll-behavior: smooth; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p, li {
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
    letter-spacing: 0.2px; 
}

/* =========================================
   3. NAVIGATION BAR
   ========================================= */
/*nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background-color: white; 
    transition: background-color 0.4s, color 0.4s; 
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    border-bottom: 1px solid #eaeaea;
}
*/

nav {
    position: fixed;
    top: 0;
    left: 0; /* Anchors it to the absolute left edge of the screen */
    width: 100vw; /* Calculates width based on the monitor, ignoring scrollbars entirely */
    padding: 20px 0;
    background-color: white; 
    transition: background-color 0.4s, color 0.4s; 
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    border-bottom: 1px solid #eaeaea;
}

nav.scrolled {
    background-color: #8A2BE2; 
    border-bottom: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

nav a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.4s;
    letter-spacing: 0.5px;
}

nav.scrolled a { color: white; }
nav a:hover { color: #8A2BE2; }
nav.scrolled a:hover { color: #333333; }
nav a.active { color: #8A2BE2; font-weight: 700; }
nav.scrolled a.active { color: #333333; }

/* =========================================
   4. HERO SECTION (HOME)
   ========================================= */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 100px; 
    padding-bottom: 80px; 
    box-sizing: border-box;
}

.logo {
    width: 500px;
    max-width: 90%; 
    height: auto;
    margin-bottom: 20px;
}

h1 {
    font-size: 80px;
    font-weight: 500; 
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}

.hook {
    font-size: 22px;
    color: #555;
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 400;
}

/* =========================================
   5. CONTENT SECTIONS
   ========================================= */
section {
    padding: 100px 20px;
    text-align: center;
    min-height: 40vh;
}

section:nth-child(even) {
    background-color: #fcfcfc;
}

/* =========================================
   6. PORTFOLIO & DEVLOGS
   ========================================= */
.page-section {
    margin-top: 80px;
}

section.page-header {
    min-height: auto;          
    padding-top: 100px;        
    padding-bottom: 30px;      
}

.hook-center {
    margin: 0 auto 50px auto;
}

.devlog-entry {
    max-width: 800px;
    margin: 0 auto 30px auto;
    padding: 20px;
    border-bottom: 2px solid #eaeaea;
    text-align: left;
}

.devlog-date {
    color: #8A2BE2; 
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
}

.devlog-entry h2 {
    margin-top: 0;
    font-weight: 500;
}

.devlog-link {
    color: #8A2BE2;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.devlog-link:hover {
    color: #333333;
}

/* Game Showcase Styles */
.game-showcase-full {
    position: relative;
    width: 100%; 
    min-height: 60vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0a0a0a;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    margin-bottom: 60px;
    border-top: 1px solid #333; 
    border-bottom: 1px solid #333;
}

.game-showcase-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.game-showcase-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    max-width: 900px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px; 
}

.game-logo {
    max-width: 400px; 
    width: 90%;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); 
    margin-bottom: 10px;
}

.game-description {
    font-size: 18px;
    font-weight: 400;
    max-width: 600px;
    margin: 0;
    color: #e0e0e0;
}

.status-badge {
    background-color: #8A2BE2; 
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.4);
}

.game-actions {
    margin-top: 20px;
}

.steam-button {
    padding: 15px 35px;
    background-color: white;
    color: black;
    border: 2px solid white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.steam-button:hover {
    background-color: #8A2BE2;
    color: white;
    border-color: #8A2BE2;
}

/* =========================================
   7. NEWS ARTICLE DETAIL PAGE
   ========================================= */
.article-container {
    max-width: 800px;
    margin: 150px auto 100px auto;
    padding: 0 20px;
    text-align: left;
    line-height: 1.8;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    text-decoration: none;
    color: #999999;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover { color: #8A2BE2; }

.article-date {
    color: #8A2BE2;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 10px;
}

.article-container h1 {
    font-size: 48px;
    margin-bottom: 5px;
    font-weight: 700;
}

.article-container .hook {
    font-size: 20px;
    color: #555;
    font-style: italic;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.article-content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 700;
}

.article-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

/* =========================================
   8. LEGAL PAGES (IMPRESSUM & PRIVACY)
   ========================================= */
.legal-container {
    max-width: 800px; 
    margin: 150px auto 100px auto; 
    padding: 0 20px;
    text-align: left; 
    line-height: 1.6;
}

.legal-container h1 {
    font-size: 40px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
    font-weight: 700;
}

.legal-container h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    padding: 50px 20px;
    background-color: white;
    color: #333333;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

footer a {
    color: #333333;
    text-decoration: none;
    font-size: 14px;
}

footer a:hover { color: #8A2BE2; }

footer .footer-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

footer .footer-socials a {
    font-size: 40px; 
    transition: transform 0.2s ease-in-out;
}

footer .footer-socials a.steam { color: #66c0f4; }
footer .footer-socials a.youtube { color: #FF0000; }
footer .footer-socials a.bluesky { color: #1185fe; }
footer .footer-socials a.reddit { color: #FF4500; }

footer .footer-socials a:hover {
    transform: scale(1.15);
}

.footer-lang {
    margin-bottom: 15px; 
    font-size: 14px;
    color: #999999; 
}

.footer-lang a {
    color: #999999; 
    text-decoration: none;
    transition: color 0.3s;
    padding: 0 5px; 
}

.footer-lang a:hover { color: #8A2BE2; }
.footer-lang a.active-lang { color: #333333; font-weight: 700; }

/* =========================================
   10. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap; 
        padding: 15px 10px;
        gap: 15px; 
    }

    nav a { font-size: 13px; }

    header {
        padding-top: 140px; 
        padding-bottom: 40px;
    }

    .logo { width: 280px; }
    h1 { font-size: 45px; margin-bottom: 5px; }
    .hook { font-size: 16px; padding: 0 20px; }

    footer .footer-socials { gap: 20px; }
    footer .footer-socials a { font-size: 32px; }

    .legal-container { margin-top: 130px; }
    .legal-container h1 { font-size: 32px; }
    
    .page-section { margin-top: 50px; }

    .devlog-entry {
        padding: 15px; 
        margin: 0 15px 25px 15px;
    }

    .devlog-entry h2 { font-size: 20px; }
    
    .article-container { margin-top: 130px; }
    .article-container h1 { font-size: 36px; }

    /* Fixes for the new game showcase on mobile */
    .game-showcase-full { margin-bottom: 40px; }
    .game-showcase-content { padding: 40px 20px; }
    .game-logo { max-width: 250px; }
}

/* =========================================
   11. GAME DETAIL PAGE (VAGABONDS)
   ========================================= */

/* Overrides base body colors for this specific page to make it dark and moody */
html:has(body.dark-theme-page),
body.dark-theme-page {
    background-color: #0a0a0a;
    color: #e0e0e0;
    color-scheme: dark; 
}

body.dark-theme-page section,
body.dark-theme-page section:nth-child(even) {
    background-color: transparent; 
}
/* ... keep your other dark theme rules ... */

/* Dark Footer Override for the Detail Page */
body.dark-theme-page footer {
    background-color: #050505;
    color: #aaaaaa;
    border-top: 1px solid #1a1a1a;
}

body.dark-theme-page footer a {
    color: #aaaaaa;
}

body.dark-theme-page footer a:hover {
    color: #8A2BE2;
}

body.dark-theme-page .footer-lang a.active-lang {
    color: #ffffff;
}

/* 1. Cinematic Hero */
.game-detail-hero {
    height: 80vh; /* Taller than the showcase card for maximum impact */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Keeps the parallax effect */
    padding-top: 60px; /* Accounts for navbar */
    border-bottom: 1px solid #222;
}

.detail-logo {
    max-width: 500px;
    width: 90%;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.8));
}

.detail-tagline {
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* 2. Summary Section */
.summary-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    text-align: left;
}

.summary-text {
    flex: 2;
}

.summary-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #cccccc;
}

.summary-stats {
    flex: 1;
    background-color: #151515;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
}

.summary-stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-stats li {
    margin-bottom: 15px;
    font-size: 16px;
    color: #aaaaaa;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

.summary-stats li strong {
    color: #ffffff;
    display: block;
    margin-bottom: 3px;
}

/* 3. Features Grid */
.game-features-section {
    max-width: 1000px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    background-color: #151515;
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid #222;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: #8A2BE2;
}

.icon-feature {
    font-size: 40px;
    color: #8A2BE2;
    margin-bottom: 20px;
}

.feature-box p {
    color: #aaaaaa;
    font-size: 15px;
    line-height: 1.6;
}

/* 4. Media Gallery */
.game-media-section {
    max-width: 1200px;
    margin: 0 auto;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.media-item {
    padding-top: 56.25%; /* Forces a perfect 16:9 aspect ratio */
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.3s;
    cursor: pointer;
}

.media-item:hover {
    transform: scale(1.03);
    border-color: #8A2BE2;
}

/* 5. Bottom CTA */
.game-cta-section {
    background: linear-gradient(to top, #0a0a0a, #111111);
    padding: 80px 20px;
    border-top: 1px solid #222;
}

/* Mobile Adjustments for Detail Page */
@media (max-width: 768px) {
    .summary-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .detail-tagline {
        font-size: 18px;
        padding: 0 20px;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
}