/* ------------------------------
   Base / typography
------------------------------ */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

:root {
    --bg1: #0b1220;
    --bg2: #121a2b;
    --accent: #5dd6ff;
    --accent-2: #7effa9;
    --text: #e9eef7;
    --muted: #93a1b8;
}

html,
body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden; /* prevent horizontal scroll */
    height: 100%;
}

body {
    color: var(--text);
    font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    background: radial-gradient(1000px 600px at 50% -10%, #15213a 0%, var(--bg1) 60%) fixed, linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%) fixed;
}

/* Push content below fixed navbar */
.main-shell,
.landing-wrap:first-child {
    padding-top: 64px; /* tweak if your navbar height changes */
}

/* Default button focus (from template, slightly toned down) */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ------------------------------
   Landing / cards
------------------------------ */

.landing-wrap {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 16px;
}

.landing-card {
    width: min(640px, 100%);
    border-radius: 20px;
    padding: clamp(20px, 5vw, 40px);
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.brand {
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}

.tagline {
    color: var(--muted);
    margin-bottom: 28px;
}

.btn-stack {
    display: grid;
    gap: 12px;
}

.btn-cta {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary.btn-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    border: none;
    color: #051018;
}

.btn-outline-light.btn-cta {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--text);
}

    .btn-outline-light.btn-cta:hover {
        background: rgba(255, 255, 255, 0.08);
    }

.fineprint {
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--muted);
}

/* make tap targets comfy on phones */
button,
.btn {
    touch-action: manipulation;
}

/* ------------------------------
   Forms / sliders
------------------------------ */

.text-light-50 {
    color: rgba(255, 255, 255, 0.6);
}

.game-form .form-text {
    color: var(--muted);
}

.slider-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.slider-value {
    min-width: 42px;
    text-align: center;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

/* Keep these if you still use form-floating somewhere */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ------------------------------
   Lobby / join code / cards
------------------------------ */

.label-muted {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.join-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 2px;
    font-size: clamp(1.2rem, 6vw, 2rem);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 12px;
    display: inline-block;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
}

.settings-pill {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.95rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.soft-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
}

.nice-list .list-group-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: #ffffff;
    margin-bottom: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease, transform 0.1s ease;
}

    .nice-list .list-group-item:hover {
        background: rgba(255, 255, 255, 0.14);
        transform: translateY(-1px);
        color: #ffffff;
    }

    .nice-list .list-group-item .badge {
        background: var(--accent);
        color: #ffffff;
        font-weight: 700;
        min-width: 32px;
        border-radius: 10px;
    }

/* "you" badge next to your own name */
.tag-you {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #051018;
    background: var(--accent);
}

/* input invalid flash */
.form-control.is-invalid,
.code-input.is-invalid {
    border-color: #ff7d7d;
    box-shadow: 0 0 0 0.25rem rgba(255, 125, 125, 0.25);
}

/* ------------------------------
   Join page code input
------------------------------ */

.code-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.code-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
}

    .code-input::placeholder {
        color: rgba(255, 255, 255, 0.45);
    }

/* ------------------------------
   Navbar / offcanvas
------------------------------ */

.glass-nav {
    backdrop-filter: blur(8px);
    background: rgba(10, 16, 28, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Offcanvas glass */
.glass-canvas {
    background: rgba(15, 22, 36, 0.95);
    border-left: 1px solid rgba(255,255,255,0.10);
}

/* Optional: ensure full-height drawer */
.offcanvas {
    height: 100vh;
    max-width: 320px; /* width of the side drawer, tweak if you like */
}

.menu-link {
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
}

    .menu-link:hover,
    .menu-link.active {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }


.traits-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.traits-pill {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-active {
    background: #4ade80;
}

.dot-useful {
    background: #22c55e;
}

.dot-silly {
    background: #facc15;
}

/* Dark/glass table style for professions */
.traits-table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255,255,255,0.03);
    --bs-table-striped-color: var(--text);
    --bs-table-border-color: rgba(255,255,255,0.08);
    color: var(--text);
    margin-bottom: 0;
}

    .traits-table thead th {
        border-bottom: none;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--muted);
    }

    .traits-table tbody tr {
        background: transparent;
    }

        .traits-table tbody tr:nth-child(odd) {
            background: rgba(255,255,255,0.02); /* very subtle striping */
        }

    .traits-table thead tr {
        background: rgba(255,255,255,0.03);
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

.traits-table tbody tr:hover {
    background: rgba(255,255,255,0.06);
}

    .traits-table td,
    .traits-table th {
        border-color: rgba(255,255,255,0.08);
    }

.traits-cat {
    font-size: 0.75rem;
}

/* Tiny utility for compact buttons in tables */
.btn-xs {
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 999px;
}

/* Base ghost style */
.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text);
}

    /* Hover state */
    .btn-ghost:hover {
        background: rgba(255,255,255,0.06);
        border-color: rgba(255,255,255,0.3);
        color: #fff;
    }

/* Variants for meaning */
.btn-ghost-warning {
    border-color: rgba(250, 204, 21, 0.6);
    color: #facc15;
}

    .btn-ghost-warning:hover {
        background: rgba(250, 204, 21, 0.12);
    }

.btn-ghost-success {
    border-color: rgba(74, 222, 128, 0.6);
    color: #4ade80;
}

    .btn-ghost-success:hover {
        background: rgba(74, 222, 128, 0.12);
    }

.btn-ghost-danger {
    border-color: rgba(248, 113, 113, 0.8);
    color: #f87171;
}

    .btn-ghost-danger:hover {
        background: rgba(248, 113, 113, 0.16);
    }
