:root {
    --bg-dark: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8; /* FreezeNova style blue */
    --accent-hover: #0284c7;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Inter', system-ui, sans-serif; 
}

body { 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* =========================================
   GLASSMORPHISM COMPONENTS
========================================= */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
header { 
    position: sticky; 
    top: 0; 
    z-index: 50; 
    padding: 1rem 0; 
    border-bottom: 1px solid var(--glass-border); 
    background: rgba(15, 23, 42, 0.8); 
    backdrop-filter: blur(12px); 
}
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo { 
    font-size: 1.5rem; 
    font-weight: 900; 
    color: var(--accent); 
    text-decoration: none; 
}
.nav-links { 
    display: flex; 
    gap: 1.5rem; 
    list-style: none; 
}
.nav-links a { 
    color: var(--text-main); 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.3s; 
}
.nav-links a:hover { color: var(--accent); }

/* =========================================
   GENERAL GRID LAYOUTS (Sidebars, etc)
========================================= */
.grid { display: grid; gap: 2rem; }
.grid-cols-2 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-cols-3 { grid-template-columns: 2fr 1fr; }

/* =========================================
   FREEZENOVA STYLE GAME GRID (Homepage)
========================================= */
.freeze-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.freeze-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
    background: #000;
}

.freeze-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.freeze-card:hover {
    transform: scale(1.05);
    z-index: 10;
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.freeze-card:hover img {
    transform: scale(1.1); /* Slight zoom on the image inside */
}

.freeze-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    color: white;
    text-align: center;
    padding: 25px 5px 10px 5px;
    font-size: 0.85rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
}

.freeze-card:hover .freeze-title {
    opacity: 1;
}

/* =========================================
   GAME PAGE & IFRAME (The Perfect Fit)
========================================= */

/* =========================================
   GAME PAGE & IFRAME (The Ultimate Full-Screen Fit)
========================================= */
.iframe-container { 
    position: relative; 
    width: 100%; 
    height: 75vh; /* Forces the game to be exactly 75% of the screen height */
    min-height: 400px; /* Prevents it from getting too squished on mobile phones */
    max-height: 850px; /* Prevents it from becoming absurdly large on 4K TVs */
    background: #000; 
    border-radius: 12px; 
    overflow: hidden; 
    margin-bottom: 2rem; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Adds a premium shadow */
}
.iframe-container iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border: none; 
}
/* =========================================
   UI ELEMENTS & CONTENT
========================================= */
.badge { 
    background: rgba(56, 189, 248, 0.2); 
    color: var(--accent); 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    font-weight: bold;
}

/* Markdown/Article Content (The 1000 word SEO container) */
.prose { 
    margin-top: 2rem; 
    padding: 2rem; 
    line-height: 1.8; 
}
.prose h2 { 
    margin-bottom: 1rem; 
    border-bottom: 1px solid var(--glass-border); 
    padding-bottom: 0.5rem; 
    color: #fff;
}
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; color: #e2e8f0; }
.prose p { margin-bottom: 1rem; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.5rem; }

/* Buttons */
.btn { 
    background: var(--accent); 
    color: #fff; 
    padding: 12px 28px; 
    border: none; 
    border-radius: 8px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: background 0.2s;
}
.btn:hover { background: var(--accent-hover); }

/* Spacing Helpers */
.mt-2 { margin-top: 1rem; } 
.mb-2 { margin-bottom: 1rem; }

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */
@media (max-width: 768px) { 
    .grid-cols-3 { grid-template-columns: 1fr; } 
    
    /* Make the FreezeNova grid smaller on mobile */
    .freeze-grid { 
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); 
        gap: 10px; 
    }
    
    /* Ensure the game doesn't take up the whole screen on vertical phones */
    .iframe-container {
        max-height: 50vh; 
    }
}