:root {
    /* Obsidian Theme (Default) */
    --bg-color: #222222;
    --panel-color: #3D2E24;
    --text-color: #EADDC6;
    --accent-color: #FFD570;
    --secondary-text: #cccccc;
    --overlay-opacity: 0.7;
}

[data-theme="light"] {
    /* Grimoire Theme */
    --bg-color: #EADDC6;
    --panel-color: #D4C5A9;
    --text-color: #111111;
    --accent-color: #328543; /* Emerald */
    --secondary-text: #3D2E24;
    --overlay-opacity: 0.3;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Lato', sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3 { font-family: 'Cinzel', serif; color: var(--accent-color); }

/* Nav */
nav {
    position: fixed; top: 0; width: 100%;
    background: rgba(0,0,0,0.9);
    padding: 1rem 0; z-index: 1000;
    border-bottom: 2px solid var(--accent-color);
}
.nav-content {
    max-width: 1200px; margin: 0 auto; display: flex; 
    justify-content: space-between; align-items: center; padding: 0 20px;
}
.nav-logo { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 20px; }

.steam-btn {
    background: #5c7e10; color: white; padding: 10px 20px; 
    text-decoration: none; font-weight: bold; border-radius: 4px;
    font-family: 'Cinzel', serif; transition: transform 0.2s;
}
.steam-btn:hover { transform: scale(1.05); background: #76a113; }

.theme-btn {
    background: none; border: none; cursor: pointer;
    width: 48px; height: 48px;
    transition: transform 0.5s ease;
}
.theme-btn:hover { transform: rotate(15deg); }
.theme-btn img { width: 100%; height: 100%; }

/* Hero */
.hero {
    height: 100vh; position: relative;
    display: flex; align-items: center; justify-content: center;
    background: url('assets/hero_bg.png') no-repeat center center/cover;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: black; opacity: var(--overlay-opacity);
    transition: opacity 0.5s ease;
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.hero-logo { max-width: 600px; width: 90%; }
.tagline { font-size: 1.5rem; letter-spacing: 2px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

/* Features */
.container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
h2 { text-align: center; font-size: 2.5rem; margin-bottom: 40px; }

.grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.card {
    background: var(--panel-color); padding: 20px;
    border: 2px solid var(--accent-color); border-radius: 8px;
    text-align: center; transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; border-radius: 4px; border: 1px solid #000; margin-bottom: 15px; }
.card h3 { margin-bottom: 10px; }

/* Gallery */
.gallery { background: rgba(0,0,0,0.2); }
.screenshot-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px;
}
.screenshot-grid img {
    width: 100%; border-radius: 4px; cursor: pointer;
    border: 2px solid transparent; transition: border-color 0.3s;
}
.screenshot-grid img:hover { border-color: var(--accent-color); }

/* Footer */
footer {
    background: #111; color: #888; border-top: 4px solid var(--accent-color);
}
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-left { display: flex; align-items: center; gap: 15px; }
.footer-logo { height: 50px; opacity: 0.5; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.press-link { color: var(--accent-color); text-decoration: none; font-weight: bold; }
a { color: inherit; }