/*
Theme Name: Sim Access
Theme URI: https://teisenberg.com
Description: Membership theme for Simulator access
Version: 1.1
Author: Teisenberg
Text Domain: sim-access
*/

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

:root {
    --bg:        #0a0c10;
    --bg-card:   #111318;
    --bg-el:     #1a1d24;
    --border:    rgba(255,255,255,0.08);
    --accent:    #00d4ff;
    --accent-dim:rgba(0,212,255,0.1);
    --gold:      #f0b429;
    --gold-dim:  rgba(240,180,41,0.12);
    --danger:    #ff4d6a;
    --success:   #00c896;
    --txt:       #e8eaf0;
    --txt-sec:   #8b95b0;
    --txt-muted: #4a5270;
    --radius:    10px;
    --radius-lg: 16px;
    --font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-disp: 'Inter', system-ui, var(--font);
    --shadow:    0 8px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }
body {
    background: #0a0c10;
    background: var(--bg, #0a0c10);
    color: #e8eaf0;
    color: var(--txt, #e8eaf0);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-family: var(--font, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }
img { max-width: 100%; display: block; }
input, textarea, select {
    font-family: inherit;
    font-size: 14px;
    background: var(--bg-el);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--txt);
    padding: 11px 14px;
    width: 100%;
    transition: border-color 0.15s;
    outline: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}
input::placeholder, textarea::placeholder { color: var(--txt-muted); }

/* ── Layout ──────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 0; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 11px 24px; border-radius: 99px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    border: none; transition: all 0.18s; text-decoration: none;
    white-space: nowrap; font-family: inherit;
}
.btn--primary { background: var(--accent); color: #0a0c10; }
.btn--primary:hover { background: #33ddff; box-shadow: 0 0 20px rgba(0,212,255,0.3); }
.btn--gold { background: var(--gold); color: #0a0c10; }
.btn--gold:hover { background: #f7c340; }
.btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--txt-sec); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--full { width: 100%; }
.btn--lg { padding: 14px 32px; font-size: 16px; }
.btn--sm { padding: 7px 16px; font-size: 13px; }

/* ── Cards ───────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

/* ── Header / Nav ────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,12,16,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 64px; display: flex; align-items: center;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.site-logo {
    font-family: var(--font-disp);
    font-size: 20px; font-weight: 800;
    color: var(--txt); text-decoration: none;
    letter-spacing: -0.02em;
}
.site-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 8px; }

/* ── Auth pages ──────────────────────────────────── */
.auth-wrap {
    min-height: calc(100vh - 64px);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    width: 100%; max-width: 420px;
}
.auth-logo {
    text-align: center; margin-bottom: 28px;
    font-family: var(--font-disp); font-size: 22px; font-weight: 800;
}
.auth-logo a { color: var(--txt); }
.auth-logo span { color: var(--accent); }
.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; font-family: var(--font-disp); }
.auth-sub   { color: var(--txt-sec); font-size: 14px; margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--txt-muted); }
.auth-footer a { color: var(--accent); font-weight: 600; }

/* ── Form ────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; margin-bottom: 6px;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--txt-sec);
}

/* ── Alert ───────────────────────────────────────── */
.alert {
    padding: 12px 16px; border-radius: var(--radius);
    font-size: 13px; margin-bottom: 20px; line-height: 1.5;
}
.alert--error   { background: rgba(255,77,106,0.1); border: 1px solid rgba(255,77,106,0.25); color: #ff8fa3; }
.alert--success { background: rgba(0,200,150,0.1); border: 1px solid rgba(0,200,150,0.25); color: var(--success); }
.alert--info    { background: var(--accent-dim); border: 1px solid rgba(0,212,255,0.2); color: var(--accent); }

/* ── Dashboard ───────────────────────────────────── */
.dash-wrap {
    display: grid; grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 64px);
}
.dash-sidebar {
    border-right: 1px solid var(--border);
    background: var(--bg-card);
    padding: 24px 0;
}
.dash-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 24px; font-size: 14px; font-weight: 500;
    color: var(--txt-sec); text-decoration: none;
    transition: all 0.15s; border-left: 3px solid transparent;
}
.dash-nav-item:hover { background: var(--bg-el); color: var(--txt); }
.dash-nav-item.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-dim); }
.dash-nav-item.danger { color: var(--danger); }
.dash-nav-item.danger:hover { background: rgba(255,77,106,0.08); }
.dash-main { padding: 36px 40px; }
@media (max-width: 768px) {
    .dash-wrap { grid-template-columns: 1fr; }
    .dash-sidebar { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 0; }
    .dash-main { padding: 24px 20px; }
}

/* ── Simulator iframe ────────────────────────────── */
.sim-frame {
    width: 100%; height: calc(100vh - 64px);
    border: none; display: block;
}

/* ── WordPress content ───────────────────────────── */
.wp-content { max-width: 780px; }
.wp-content h1,.wp-content h2,.wp-content h3 {
    font-family: var(--font-disp); color: var(--txt); margin: 1.5em 0 0.6em;
}
.wp-content p { margin-bottom: 1em; color: var(--txt-sec); }
.wp-content a { color: var(--accent); }
.wp-content img { border-radius: var(--radius); margin: 1em 0; }
.wp-content ul, .wp-content ol { padding-left: 1.5em; margin-bottom: 1em; color: var(--txt-sec); }

/* ── Admin bar ───────────────────────────────────── */
#wpadminbar { background: #1a1d24 !important; }
