/* =============================================================
   OGameX — home.css
   Alleen voor index.php (homepage / loginpagina)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600&display=swap');

/* ---- Reset & basis ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue:        #4a9eff;
    --blue-dim:    rgba(74, 158, 255, 0.2);
    --blue-border: rgba(74, 158, 255, 0.25);
    --text:        #c8d8f0;
    --text-muted:  #7aa8d8;
    --text-faint:  #3a5070;
    --bg:          #04060f;
    --bg-panel:    rgba(4, 6, 15, 0.85);
    --font-title:  'Orbitron', monospace;
    --font-body:   'Exo 2', sans-serif;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Sterren canvas (achtergrond) ---- */
#stars {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Paginacontainer ---- */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================================================================
   NAVIGATIE
   ================================================================ */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    border-bottom: 1px solid rgba(80, 140, 220, 0.15);
    background: rgba(4, 6, 15, 0.7);
    backdrop-filter: blur(8px);
}

.logo {
    font-family: var(--font-title);
    font-weight: 900;
    font-size: 22px;
    color: var(--blue);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
}

.logo span {
    color: #a0c8ff;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue); }

/* ================================================================
   HERO (tweekoloms grid)
   ================================================================ */
.hero {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: center;
    padding: 60px 40px 40px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* ---- Linkerkolom: game info ---- */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    border: 1px solid var(--blue-border);
    padding: 5px 14px;
    border-radius: 2px;
    width: fit-content;
    background: var(--blue-dim);
}

h1 {
    font-family: var(--font-title);
    font-weight: 900;
    font-size: 48px;
    line-height: 1.1;
    color: #e8f4ff;
    letter-spacing: 2px;
}

h1 em {
    font-style: normal;
    color: var(--blue);
}

.subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 500px;
    font-weight: 300;
}

.features {
    list-style: none;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.features li {
    font-size: 13px;
    color: #a0c0e8;
    padding-left: 14px;
    position: relative;
}

.features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}

/* ---- Rechterkolom: ship + login ---- */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ================================================================
   SPACESHIP
   ================================================================ */
.ship-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.ship-wrap svg {
    width: 100%;
    max-width: 300px;
    filter: drop-shadow(0 0 28px rgba(74, 158, 255, 0.4));
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-18px); }
}

.glow-ring {
    position: absolute;
    width: 240px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(74, 158, 255, 0.2) 0%, transparent 70%);
    bottom: 10px;
    animation: pulse-ring 5s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { opacity: 0.5; transform: scaleX(1); }
    50%       { opacity: 0.9; transform: scaleX(1.1); }
}

/* ================================================================
   LOGIN PANEL
   ================================================================ */
.login-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    border: 1px solid var(--blue-border);
    border-radius: 4px;
    padding: 28px;
}

.login-panel h2 {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 700;
    color: #a0c8ff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(74, 158, 255, 0.15);
}

/* Foutmelding banner */
.alert {
    padding: 10px 14px;
    border-radius: 2px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-error {
    background: rgba(220, 50, 50, 0.1);
    border: 1px solid rgba(220, 50, 50, 0.3);
    color: #f08080;
}

/* Formulier velden */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-faint);
}

.form-group input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--blue-border);
    border-radius: 2px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text);
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
}

.form-group input:focus {
    border-color: rgba(74, 158, 255, 0.6);
    background: rgba(74, 158, 255, 0.05);
}

.form-group input::placeholder { color: #2a4060; }

/* Remember me checkbox */
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 18px;
    cursor: pointer;
    user-select: none;
}

.remember input[type="checkbox"] {
    accent-color: var(--blue);
    width: 14px;
    height: 14px;
}

/* Inlogknop */
.btn-login {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1a4a8a, #2060c0);
    border: 1px solid rgba(74, 158, 255, 0.5);
    border-radius: 2px;
    color: #c8e4ff;
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    margin-bottom: 14px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #2060c0, #3070e0);
    border-color: rgba(74, 158, 255, 0.8);
    color: #fff;
}

/* Scheiding */
.divider {
    text-align: center;
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 2px;
    margin: 4px 0 14px;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: rgba(74, 158, 255, 0.1);
}

.divider::before { left: 0; }
.divider::after  { right: 0; }

/* Registreer knop */
.btn-register {
    display: block;
    width: 100%;
    padding: 11px;
    background: transparent;
    border: 1px solid var(--blue-border);
    border-radius: 2px;
    color: var(--text-faint);
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-register:hover {
    border-color: rgba(74, 158, 255, 0.5);
    color: #a0c8ff;
    background: rgba(74, 158, 255, 0.06);
}

/* ================================================================
   STATS BAR (footer)
   ================================================================ */
.stats-bar {
    border-top: 1px solid rgba(80, 140, 220, 0.1);
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    gap: 60px;
    background: rgba(4, 6, 15, 0.6);
}

.stat { text-align: center; }

.stat-value {
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 700;
    color: var(--blue);
}

.stat-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-top: 3px;
}

.online-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #22ee88;
    border-radius: 50%;
    margin-right: 5px;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 40px 20px 30px;
    }

    .hero-left { order: 2; }
    .hero-right { order: 1; }

    h1 { font-size: 34px; }

    .ship-wrap svg { max-width: 200px; }

    nav { padding: 14px 20px; }

    .stats-bar {
        gap: 24px;
        padding: 16px 20px;
        flex-wrap: wrap;
    }
}
