/* /var/www/cjhassan/world/site/style.css */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&family=Press+Start+2P&display=swap');

:root {
    --bg-main: #ffffff;
    --bg-light-gray: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --accent-primary: #0e639c;
    --accent-primary-hover: #0b517e;
    --font-body: 'Roboto Mono', monospace;
    --font-heading: 'Press Start 2P', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.homepage-view {
    background-color: #ffffff; /* White underlayer */
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
}

body.homepage-view::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw; 
    height: 100vh;
    background-image: url('https://play.tf2.org/assets/main_map.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5; /* 50% transparency */
    z-index: -1;
}

#website-container {
    position: relative;
    z-index: 1;
}

.hidden { display: none !important; }

/* --- Main Layout & Structure --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}
header.main-header > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

h1.game-title-header {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text-primary);
}

/* --- Status Indicators Wrapper --- */
.status-indicators-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

/* --- Server Status & Room Status Indicators --- */
.server-status, .room-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f0f0f0;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}
.status-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-light.red { background-color: #dc3545; }
.status-light.green { background-color: #198754; }
.status-light.blue { background-color: #0d6efd; }
.status-light.yellow { background-color: #ffc107; }
.status-light.orange { background-color: #fd7e14; }


.login-area .google-btn-link img {
    width: 200px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.login-area .google-btn-link:hover img {
    transform: scale(1.03);
}

.login-area .legacy-login-link {
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: underline;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    text-align: center;
    padding: 100px 0;
    color: white;
    overflow: hidden;
    background-color: rgba(0,0,0,0.5);
}
.hero-background {
    display: none;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero p {
    font-size: 1.25em;
    max-width: 650px;
    margin: 0 auto 40px auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* --- Features Section --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 80px 20px;
}
.feature-card {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 15px;
}

/* --- Footer --- */
.main-footer {
    background-color: #ffffff;
    color: var(--text-primary);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
}
.main-footer p {
    color: var(--text-primary);
}


/* --- Modal for Login/Nickname --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.login-box {
    background-color: var(--bg-light-gray);
    border: 1px solid #ccc;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: 5px;
}
.login-box h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 5px;
}
.login-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    font-family: var(--font-body);
    font-size: 1em;
}
.login-box button.btn {
    width: 100%;
    border: 1px solid #555;
}
.status-message {
    height: 20px;
    color: #A02C2C;
    font-weight: 700;
}

/* --- Game Wrapper (hidden by default) --- */
body:not(.homepage-view) {
    background-color: #000; /* Black background behind the game */
}
#game-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
}