/* ============================================================
   Trube Gaming – Arcane Fantasy Theme
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Pro:wght@400;500;600&display=swap');

:root {
    /* Core palette */
    --bg: #120e0a;                  /* dark tavern brown */
    --bg-soft: rgba(18,14,10,0.95);
    --panel: rgba(28,22,16,0.95);   /* aged wood */
    --panel-soft: rgba(36,28,20,0.9);
    --line: rgba(212,175,55,0.25);  /* gold filigree */

    /* Text */
    --text: #f3e9d2;                /* parchment */
    --muted: #9fb0c4;

    /* Accents */
    --accent: #b13e2f;              /* blood red */
    --accent-soft: rgba(177,62,47,0.25);
    --highlight: #d4af37;           /* antique gold */

    /* Forms */
    --input-bg: #1e1812;
    --input-bg-focus: #2a2118;
    --input-border: #8b6f3d;
    --input-border-focus: var(--highlight);

    /* Utility */
    --ok: #6fbf73;
    --danger: #c24d4d;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Crimson Pro', serif;
    background:
        radial-gradient(circle at top, rgba(212,175,55,0.08), transparent 70%),
        url('/assets/background-parchment.png') no-repeat center center fixed;
    background-size: cover;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   Layout
   ============================================================ */

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container {
    overflow: auto;
    margin-bottom: 20px;
}

/* ============================================================
   Emulation bar (admin testing)
   ============================================================ */

.emulation-bar {
    background: #b91c1c;
    color: #fff;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.emulation-bar-text {
    font-weight: 600;
}

.emulation-bar-stop {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.emulation-bar-stop:hover {
    color: #fecaca;
}

/* Flash messages */
.flash {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-weight: 500;
}
.flash-success { background: rgba(34, 197, 94, 0.2); border: 1px solid rgba(34, 197, 94, 0.5); color: #86efac; }
.flash-error { background: rgba(239, 68, 68, 0.2); border: 1px solid rgba(239, 68, 68, 0.5); color: #fca5a5; }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 1rem; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs a { color: var(--highlight); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 0.35rem; }

/* Stale session banner */
.stale-session-bar { background: #92400e; color: #fef3c7; padding: 0.5rem 1.25rem; display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; }
.stale-session-bar a { color: #fef3c7; text-decoration: underline; font-weight: 600; }

/* Story to date (player-facing campaign summary) */
.story-to-date { max-width: 72ch; }
.story-content { line-height: 1.7; }
.story-content p { margin-bottom: 1rem; }
.story-session { margin-bottom: 1.5rem; }
.story-session-date { margin-top: 0; margin-bottom: 0.75rem; font-size: 1.1rem; border-left: 4px solid var(--highlight); padding-left: 0.5rem; }
.story-session-date a { margin-left: 0.5rem; }
.story-session-content { line-height: 1.6; }
.summary-edit-block { max-height: 20rem; overflow: auto; font-size: 0.9rem; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    gap: 1rem;
}

.brand {
    font-family: 'Cinzel', serif;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--highlight);
}

.brand:hover {
    color: var(--accent);
}

.tagline {
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* ============================================================
   Navigation
   ============================================================ */

.site-nav {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.site-nav a {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.6rem 0.9rem;
}

.site-nav a:hover {
    color: var(--highlight);
}

/* ============================================================
   Main Content
   ============================================================ */

.site-main {
    flex: 1 0 auto;
}

h1, h2, h3 {
    font-family: 'Cinzel', serif;
    margin: 0 0 0.75rem;
    line-height: 1.2;
    letter-spacing: 1px;
}

h1 {
    font-size: 2.6rem;
    color: var(--highlight);
}

h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    border-left: 5px solid var(--accent);
    padding-left: 0.85rem;
}

p {

    line-height: 1.6;
}

.muted {
    color: var(--muted);
    font-size: 0.85rem;
    opacity: 0.9;
}
.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 1.5rem;
}
/* FOR CHECKBOXES */
.inline-check input {
    margin: 0;
}

/* ============================================================
   Cards / Sections
   ============================================================ */

.card {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    padding: 1.6rem;
    margin: 1.75rem 0;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5);
}

.link-card {
    display: block;
}

.main-content {
    background: rgba(0,0,0,0.55);
    border-radius: 14px;
    padding: 1.5rem;
}

/* ============================================================
   Grid
   ============================================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.75rem;
}

.grid .card {
    margin: 0;
}

/* ============================================================
   Forms
   ============================================================ */

label {
    display: block;
    margin: 0.75rem 0 0.3rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input,
textarea,
select {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text);
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
    font-family: 'Crimson Pro', serif;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    background: var(--input-bg-focus);
    border-color: var(--input-border-focus);
}

button {
    font-family: 'Cinzel', serif;
    background: transparent;
    border: 2px solid var(--highlight);
    color: var(--highlight);
    padding: 0.65rem 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

button:hover {
    background: var(--highlight);
    color: #000;
}

/* ============================================================
   Links
   ============================================================ */

a {
    color: var(--highlight);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    padding: 1.75rem 0;
}

.site-footer .footer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ============================================================
   Adventure navigator (/adventures/)
   ============================================================ */

.adv-article .adv-body p,
.adv-article .adv-body li {
    line-height: 1.55;
}

.adv-panel {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
}

.adv-panel-if {
    border-color: rgba(177, 62, 47, 0.45);
    background: var(--accent-soft);
}

.adv-panel-ref {
    border-color: rgba(212, 175, 55, 0.35);
}

.adv-panel-title {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--highlight);
    margin: 0 0 0.65rem;
}

.adv-choices-heading {
    font-family: 'Cinzel', serif;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.adv-choices {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.adv-choices a {
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid var(--highlight);
    border-radius: 10px;
    color: var(--highlight);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.adv-choices a:hover {
    background: var(--highlight);
    color: #120e0a;
}

.adv-back {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
}

.adv-back a {
    color: var(--muted);
}

.adv-back a:hover {
    color: var(--highlight);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 760px) {
    h1 {
        font-size: 2rem;
    }

    .header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
);
    font-size: 0.95rem;
}

.adv-back a {
    color: var(--muted);
}

.adv-back a:hover {
    color: var(--highlight);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 760px) {
    h1 {
        font-size: 2rem;
    }

    .header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
