/* --- ROOT VARIABLES --- */
:root {
    --primary: #fff4d1; /* Steampunk Copper/Gold accent */
    --secondary: #7000ff; 
    --bg: #0f0f1a;
    --card-bg: #6c72cb;
    --tetriary-bg: #191b2b;
    --text: #fffcf1;
    --font-main: 'Instrument Serif', serif;
}

/* --- BASE STYLES --- */
* { 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;    
    border-bottom: 1px solid rgba(160, 233, 255, 0.1);
    backdrop-filter: blur(10px); /* Glassmorphism like the window */
    background: rgba(26, 28, 58, 0.8);
}

.logo { 
    font-size: 1.8rem; 
    font-style: bold; 
    font-weight: bold; 
    background: linear-gradient(to bottom, #fff, #fff4d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- NAVIGATION ALIGNMENT --- */
.nav-links {
    display: flex;
    align-items: center; /* Aligns buttons and dropdown vertically */
    gap: 20px; /* Consistent spacing between all nav items */
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-size: 1.1rem;
    transition: color 0.3s;
    font-style: italic;
}

.nav-links a:hover { 
    color: var(--primary); 
}

/* --- HERO SECTION --- */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-size: 1.2rem;
    /* --- BACKGROUND --- */
    background: linear-gradient(rgba(10, 10, 12, 0.7), rgba(10, 10, 12, 0.9)), url('../assets/stormy-xp-hero.webp');
    background: linear-gradient(rgba(10, 10, 12, 0.7), rgba(10, 10, 12, 0.9)), url('../assets/stormy-xp-hero-jpeg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

h1 {
    font-size: clamp(4rem, 15vw, 9rem);
    font-style: bold;
    margin: 10;
    background: linear-gradient(to bottom, #fff, #fff4d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- FEATURED GAME SECTION (SINGLE CELL) --- */
#games {
    padding: 100px 50px;
    background: #0d0d10;
}

.section-title {
    font-size: 3rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 50px;
}

.game-grid {
    display: flex; /* Changed from grid to flex to center the single cell */
    justify-content: center;
    max-width: 1200px;
    gap: 40px;
    margin: 0 auto;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.3s, border 0.3s;
    max-width: 600px; /* Limits width since there is only one card */
    text-align: center;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary); /* */
}

/* --- BUTTONS --- */
.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 40px;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.cta-button:hover { 
    background: var(--primary); 
    transform: scale(1.05); 
}

/* --- SCROLL TOP BUTTON --- */
#scrollTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    display: none; 
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#scrollTop:hover {
    background: var(--primary);
    color: black;
    transform: translateY(-5px);
}

/* --- GLOBAL REVEAL ANIMATIONS --- */

.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    visibility: hidden; /* Ensures it doesn't take up "active" space until revealed */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* --- FOOTER --- */
footer { 
    padding: 50px; 
    text-align: center; 
    color: #858585; 
    background-color: var(--tetriary-bg);
}

.game-page-theme {
    --primary: #ffaa00; /* Gold/Copper */
}

.subtitle {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.feature-item {
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 1px solid var(--primary);
}

.feature-item h4 {
    margin: 0 0 10px 0;
    font-size: 1.6rem;
    color: var(--primary);
}

/* --- PREMIUM GAME CARD --- */
.game-grid {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.featured-project {
    position: relative;
    max-width: 800px; /* Wider for more impact */
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.2) 100%);
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Image left, text right */
    gap: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.featured-project:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 170, 0, 0.1);
}

/* Badge Style */
.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: black;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    letter-spacing: 1px;
}

/* Image Side */
.main-preview {
    height: 100% !important;
    min-height: 400px;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    background: #111 url('your-image-here.jpg') center/cover;
    position: relative;
}

.inner-glow {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
}

/* Animovaná šipka a link */
.action-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.arrow-icon {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.featured-project-card:hover .arrow-icon {
    transform: translateX(10px);
}

/* Dekorativní rohy */
.corner-detail {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    z-index: 5;
    opacity: 0.3;
}
.top-left { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.bottom-right { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* Override CTA for inside card */
.card-footer .cta-button {
    margin-top: 0;
    width: 100%;
    text-align: center;
}

/* --- Language --- */
.lang-switcher button {
    background: rgba(255, 255, 255, 0.05); /* Add a slight background */
    border: 2px solid var(--primary); /* Thicker, brighter border */
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    z-index: 101; /* Ensure it is above the backdrop-filter */
}

/*--- Policy content ---*/
.policy-content {
    max-width: 800px;
    margin: 150px auto 100px; /* Space for the fixed nav */
    padding: 0 20px;
    line-height: 1.8;
}

.policy-content h1, .policy-content h2 {
    color: var(--primary);
    font-style: bold;
}

.policy-content blockquote {
    border-left: 2px solid var(--primary);
    padding-left: 20px;
    margin: 20px 0;
    color: #888;
}

/* --- LOGO --- */
.game-logo-container {
    width: 100%;
    height: 150px; /* Adjust based on your card design */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Keeps logo proportions perfect */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5)); /* Adds depth */
    transition: transform 0.3s ease;
}

.game-card:hover .game-logo {
    transform: scale(1.05); /* Subtle lift on hover */
}

/* Mobile Adjustments */
/*
@media (max-width: 800px) {
    .featured-project { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .cookie-container { flex-direction: column; text-align: center; gap: 15px; }
    .about-container { grid-template-columns: 1fr; text-align: center; }
    nav { padding: 15px 20px; }
    .nav-links a:not(.btn-small) { display: none; }
    h1 { font-size: 4rem; }

    .lang-switcher {
        display: flex !important; 
        margin-left: 10px;
    }
}
*/
@media (max-width: 800px) 
{    
    /* 2. The Menu Container - Default is HIDDEN */
    .nav-links {
        display: none; /* Hard hidden by default */
        position: absolute;
        top: 100%; /* Push it exactly below the header */
        left: 0;
        width: 100%;
        background-color: rgba(26, 28, 58, 0.98);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        
        /* Layout */
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        z-index: 999; /* Ensure it's on top of everything */
    }

    /* 3. The Active State - When JS adds 'active', SHOW IT */
    .nav-links.active {
        display: flex !important; /* Force it to appear */
    }

    /* 4. Ensure Links are Visible */
    /* (Fixes the issue where links might be hidden by old code) */
    .nav-links a, 
    .nav-links a:not(.btn-small) {
        display: block;
        margin: 0;
        font-size: 1.2rem;
    }
}

/* --- PRIVACY POLICY OVERRIDES --- */

.policy-content h1 {
    font-size: 3rem; /* Much smaller than the main hero text */
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: left; /* Optional: aligns it with the text */
    
    /* Reset the gradient text effect if you want plain color */
    background: none;
    -webkit-text-fill-color: var(--primary); /* Or use var(--text) for white */
    color: var(--primary);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .policy-content h1 {
        font-size: 2.2rem;
    }
}