/*
 * Shared theme for AC2RE patch notes, matching AC2RE.Launcher's palette (src/AC2RE.Launcher/Theme.cs):
 * deep teal body, bronze-gold accents, parchment text. Every patch-notes/*.html page links this file,
 * so a palette or layout tweak here applies to all of them at once.
 */

:root {
    --ac2-bg: #15212B;
    --ac2-surface: #1E2E3A;
    --ac2-surface-alt: #17232C;
    --ac2-border: #3A5262;
    --ac2-accent: #C8A04B;
    --ac2-accent-hover: #E0B868;
    --ac2-text: #E9E4D4;
    --ac2-muted: #8FA3AE;
    --ac2-online: #4FCB8D;
    --ac2-offline: #E2655B;
    --ac2-unknown: #E0A741;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px 16px;
    min-height: 100vh;
    background: radial-gradient(circle at 50% -10%, #223344 0%, var(--ac2-bg) 55%, #0d1419 100%);
    color: var(--ac2-text);
    font-family: "Segoe UI", "Trebuchet MS", Tahoma, sans-serif;
    line-height: 1.55;
}

.patch-note {
    max-width: 720px;
    margin: 0 auto;
    background: var(--ac2-surface);
    border: 1px solid var(--ac2-border);
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(200, 160, 75, 0.08), 0 18px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.patch-note__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    background: linear-gradient(180deg, var(--ac2-surface-alt), var(--ac2-surface));
    border-bottom: 1px solid var(--ac2-border);
}

.patch-note__crest {
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--ac2-accent);
    text-transform: uppercase;
    white-space: nowrap;
}

.patch-note__crest span {
    color: var(--ac2-text);
}

.patch-note__meta {
    text-align: right;
    font-size: 12px;
    color: var(--ac2-muted);
}

.patch-note__body {
    padding: 28px 28px 32px;
}

.patch-note__badge {
    display: inline-block;
    padding: 3px 10px;
    margin-bottom: 14px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.patch-note__badge--new {
    background: rgba(200, 160, 75, 0.18);
    color: var(--ac2-accent);
    border: 1px solid var(--ac2-accent);
}

.patch-note__badge--fix {
    background: rgba(226, 101, 91, 0.15);
    color: var(--ac2-offline);
    border: 1px solid var(--ac2-offline);
}

.patch-note__badge--balance {
    background: rgba(224, 167, 65, 0.15);
    color: var(--ac2-unknown);
    border: 1px solid var(--ac2-unknown);
}

.patch-note__badge--tools {
    background: rgba(143, 163, 174, 0.15);
    color: var(--ac2-muted);
    border: 1px solid var(--ac2-muted);
}

/* One patch-notes page covers a calendar day; .patch-note__entry is one MR's worth of notes within it. */
.patch-note__entry {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--ac2-border);
}

.patch-note__entry:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

/* Entries are grouped by type (New, Fix, Balance, Behind the Scenes) within a day, in that order. */
.patch-note__group {
    margin-bottom: 28px;
}

.patch-note__group:last-child {
    margin-bottom: 0;
}

.patch-note__group-title {
    margin: 0 0 16px;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ac2-accent);
    border-bottom: 1px solid var(--ac2-border);
    padding-bottom: 8px;
}

.patch-note__entry-title {
    margin: 0 0 10px;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: 22px;
    color: var(--ac2-text);
}

.patch-note__summary {
    margin: 0 0 20px;
    color: var(--ac2-muted);
    font-size: 15px;
}

.patch-note__entry-ref {
    margin: 16px 0 0;
    font-size: 11px;
    color: var(--ac2-muted);
}

.patch-note__section {
    margin-bottom: 22px;
}

.patch-note__section:last-child {
    margin-bottom: 0;
}

.patch-note__section h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ac2-accent);
    border-bottom: 1px solid var(--ac2-border);
    padding-bottom: 6px;
    margin: 0 0 12px;
}

.patch-note__section--note h2 {
    color: var(--ac2-unknown);
}

.patch-note__section ul {
    margin: 0;
    padding-left: 20px;
}

.patch-note__section li {
    margin-bottom: 8px;
}

.patch-note__section li:last-child {
    margin-bottom: 0;
}

.patch-note__footer {
    padding: 14px 28px;
    border-top: 1px solid var(--ac2-border);
    background: var(--ac2-surface-alt);
    font-size: 11px;
    color: var(--ac2-muted);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/* Prev/next pager, above the card: lets a player walk the whole patch-notes history in order, always in the same spot
   regardless of how long any one page's content is. */
.patch-note__pager {
    max-width: 720px;
    margin: 0 auto 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
}

.patch-note__pager-link {
    color: var(--ac2-accent);
    font-weight: 600;
    text-decoration: none;
}

.patch-note__pager-link:hover {
    color: var(--ac2-accent-hover);
    text-decoration: underline;
}

.patch-note__pager-link--disabled {
    color: var(--ac2-muted);
    opacity: 0.5;
    pointer-events: none;
}
