/* ============================================================================
   Evolution RPG Portal - custom styles.
   All page-specific styling lives here (no inline CSS anywhere in the app).
   ========================================================================== */

:root {
    --evol-bg: #f5f6fa;
    --evol-dark: #22262e;
    --evol-accent: #6c4bb6;
    --evol-accent-dark: #533a8c;
}

body {
    background-color: var(--evol-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.container {
    flex: 1 0 auto;
}

/* Navbar ------------------------------------------------------------------ */
.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* Role badges -------------------------------------------------------------- */
.role-badge-1 { background-color: #2a9d8f; }
.role-badge-2 { background-color: #e9a13b; color: #212529; }
.role-badge-3 { background-color: #d1495b; }

/* Cards -------------------------------------------------------------------- */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
}

.card-header {
    background-color: var(--evol-dark);
    color: #fff;
    font-weight: 600;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Character sheet ---------------------------------------------------------- */
.sheet-header .portrait {
    max-width: 180px;
    max-height: 180px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 3px solid var(--evol-dark);
}

.attr-row {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 0.5rem;
    border-bottom: 1px dotted #ccc;
}

.attr-row:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.attr-row .rank {
    font-weight: 700;
    color: var(--evol-accent-dark);
}

.skill-specialty {
    padding-left: 1.2rem;
    color: #555;
}

.rank-zero {
    color: #999;
    font-style: italic;
}

/* Wizard ------------------------------------------------------------------- */
.wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.wizard-step {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background-color: #dfe3ea;
    color: #555;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
}

.wizard-step.active {
    background-color: var(--evol-accent);
    color: #fff;
    font-weight: 600;
}

.wizard-step.done {
    background-color: #2a9d8f;
    color: #fff;
}

.path-card {
    cursor: pointer;
    transition: border-color 0.15s ease-in-out;
}

.path-card:hover {
    border-color: var(--evol-accent);
}

.path-card input[type="radio"] {
    margin-right: 0.5rem;
}

/* Ledger tables ------------------------------------------------------------ */
.table-ledger td,
.table-ledger th {
    vertical-align: middle;
}

.amount-spend { color: #b02a37; font-weight: 600; }
.amount-award { color: #1d7a46; font-weight: 600; }

/* Influence chips ---------------------------------------------------------- */
.influence-chip {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin: 0.15rem;
}

.influence-beneficial {
    background-color: #d8f3e7;
    color: #14604a;
}

.influence-detrimental {
    background-color: #f8dcdc;
    color: #8a2430;
}

/* Landing page -------------------------------------------------------------- */
.jumbo-hero {
    background: linear-gradient(135deg, var(--evol-dark) 0%, var(--evol-accent-dark) 100%);
    color: #fff;
    border-radius: 0.75rem;
    padding: 3rem 2rem;
}

/* Misc ---------------------------------------------------------------------- */
.text-prewrap {
    white-space: pre-wrap;
}

.pool-meter {
    font-variant-numeric: tabular-nums;
}

.table th { white-space: nowrap; }

@media print {
    .navbar, footer, .btn, .no-print { display: none !important; }
}
