/* =============================================================
   WARHAMMER PAGE ONLY — house rules & adventure logs
   Loaded after style.css:
       <link rel="stylesheet" href="/style.css">
       <link rel="stylesheet" href="/warhammer.css">
   ============================================================= */

/* category colours, scoped to this page only */
:root {
    --wh-core:      #c9a227;   /* reuses the theme gold        */
    --wh-combat:    #a5342b;
    --wh-magic:     #7a4fae;
    --wh-careers:   #3d6fa0;
    --wh-equipment: #4c7a5a;
}

/* ---- Banner: no cityscape, gold hazard trim instead ------- */

.wh-banner {
    background-image: none;
    background-color: #05030a;
}

.wh-banner::before {
    background: linear-gradient(
        to bottom,
        rgba(13,10,6,.94) 0%,
        rgba(13,10,6,.75) 50%,
        rgba(13,10,6,.94) 100%);
}

.wh-banner::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(-45deg, var(--edge) 0 10px, transparent 10px 20px) top / 100% 8px no-repeat,
        repeating-linear-gradient(-45deg, var(--edge) 0 10px, transparent 10px 20px) bottom / 100% 8px no-repeat;
    opacity: .55;
}

.wh-logo {
    display: block;
    max-width: min(92%, 520px);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 14px rgba(201,162,39,.45));
}

.site-tagline { text-align: center; }


/* ---- Sidebar table info ------------------------------------ */

.sidebar ul li {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    letter-spacing: .5px;
}


/* ---- Filter bar --------------------------------------------- */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 22px 0;
}

.filter-btn {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 7px 16px;
    color: var(--text);
    background: var(--panel-2);
    border: 2px solid var(--edge);
    border-radius: 3px 3px 0 0;
    cursor: pointer;
}

.filter-btn:hover {
    color: #fff;
    border-color: var(--neon-2);
}

.filter-btn.is-active {
    color: #1a1408;
    background: var(--neon);
    border-color: var(--neon);
    font-weight: bold;
}


/* ---- Rule cards ----------------------------------------------- */

.rule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 0 0 8px 0;
}

.rule-card {
    padding: 16px 18px;
    background: var(--panel-2);
    border: var(--border-w) solid var(--edge);
    border-left: 6px solid var(--wh-core);
}

.rule-card[data-category="combat"]    { border-left-color: var(--wh-combat); }
.rule-card[data-category="magic"]     { border-left-color: var(--wh-magic); }
.rule-card[data-category="careers"]   { border-left-color: var(--wh-careers); }
.rule-card[data-category="equipment"] { border-left-color: var(--wh-equipment); }

.rule-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rule-tag {
    font-family: var(--font-mono);
    font-size: .95rem;
    letter-spacing: 1px;
    padding: 2px 9px;
    color: #fff;
    background: var(--wh-core);
}

.rule-tag--combat    { background: var(--wh-combat); }
.rule-tag--magic     { background: var(--wh-magic); }
.rule-tag--careers   { background: var(--wh-careers); }
.rule-tag--equipment { background: var(--wh-equipment); }

.rule-status {
    font-family: var(--font-mono);
    font-size: .9rem;
    letter-spacing: 1px;
    color: var(--muted);
}

.rule-status--active::before  { content: "\25CF  "; color: #6fbf5a; }
.rule-status--testing::before { content: "\25CF  "; color: var(--glow); }

.rule-card h3 { margin: 0 0 8px 0; }
.rule-card p  { margin: 0; font-size: .92rem; max-width: 60ch; }


/* ---- Adventure log -------------------------------------------- */

.adventure-list { display: flex; flex-direction: column; gap: 18px; }

.adventure-entry {
    position: relative;
    padding: 16px 18px 16px 22px;
    background: var(--panel-2);
    border: var(--border-w) solid var(--edge);
    border-left: 6px double var(--wh-core);
}

.session-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    letter-spacing: 1px;
    color: var(--glow);
    margin-bottom: 6px;
}

.adventure-entry h3 { margin: 0 0 10px 0; }
.adventure-entry p  { margin: 0; max-width: 66ch; }
