/*
* GameHub Frontend Stylesheet
* Version: 1.0
* Description: The core stylesheet for the public-facing website.
*/

/* ==========================================================================
   1. Root Variables & Theme Setup
   ========================================================================== */
:root {
    /* Color Palette (Dark Mode Default) */
    --primary-color: #7b2cbf;     /* A deep, vibrant purple */
    --secondary-color: #c77dff;   /* A lighter accent purple */
    --highlight-color: #e0aaff;   /* For special highlights */
    --bg-color: #121212;          /* Off-black for the main background */
    --surface-color: #1e1e1e;    /* Background for cards, sections */
    --text-color: #e0e0e0;        /* Light grey for primary text */
    --text-muted: #a0a0a0;       /* Softer grey for meta info */
    --border-color: #2c2c2c;      /* Subtle borders */

    /* Typography */
    --font-primary: 'Roboto', sans-serif;
    --font-display: 'Teko', sans-serif; /* For headings */

    /* Sizing & Spacing */
    --header-height: 70px;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

/* Light Mode Theme */
body.light-mode {
    --primary-color: #6a0dad;
    --secondary-color: #8b5cf6;
    --highlight-color: #c4b5fd;
    --bg-color: #f4f4f9;
    --surface-color: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
}

/* ==========================================================================
   2. Global Resets & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--highlight-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}


/* ==========================================================================
   3. Layout & Utility Classes
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1400px; /* A wider container for a modern feel */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Main content area needs padding to not be hidden by the fixed header */
.main-content {
    padding-top: calc(var(--header-height) + -35px);
}

/* A simple utility for a styled button, can be expanded upon */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50px; /* Pill shape */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.btn:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   4. Animations
   ========================================================================== */
/* Fade-in animation for page content */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ==========================================================================
   5. Responsive Design
   ========================================================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    .container {
        max-width: 720px;
    }
    .main-content {
        padding-top: calc(var(--header-height) + 20px);
    }

    /* Adjust header for smaller screens */
    .site-header {
        /* You might want to add rules here to hide nav-links and show a burger menu */
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}
/* This rule tells text links to use the new custom color on hover */
.game-content a:hover,
.content-body a:hover {
    color: var(--link-hover-color, var(--secondary-color));
}