/*
 * Per-brand card colour theme (BRIEF-BRAND-SITES-WAVE2-FIVE-SEATS-20261102.md, job 4).
 * Four custom properties are the agreed cross-seat interface (see the brief's SHARED
 * RULES): --card-bg, --card-accent, --card-border, --card-text. brands.js already sets
 * body[data-brand=...] for every brands.js-registered brand; the native brand carries no
 * data-brand attribute at all (confirmed: brands.js never registers it), so its values
 * are the plain body default below, not a body[data-brand=...] block.
 * Applies to: title cards (createFilmCard(), indyfilm-app-v2.js), the card-to-login
 * flow, and the film detail page. Loaded after any existing staged theme file so its
 * !important rules win the brand-correct colour, matching this codebase's existing
 * !important convention for the same reason.
 */

body {
    --card-bg: #000000;
    --card-accent: #ffce70;
    --card-border: #b5121b;
    --card-text: #f4f0e8;
}

body[data-brand="cinemathequeoz"] {
    --card-bg: #0e0b09;
    --card-accent: #dd7a35;
    --card-border: #c8641e;
    --card-text: #efe6d3;
}

/* Indy Books is a closed brand with no catalogue or cards today (brands.js
   closedAllowed()); tokens staged here for the book cards described in
   BRIEF-BRAND-SITES-WALLS-v2-outrider-20261031.md job 5. Sage (#a9ccb6) and sand
   (#d5caa7), the other two colours in the approved palette, are not yet mapped to a
   card role and are not used below. */
body[data-brand="indybooks"] {
    --card-bg: #0e3829;
    --card-accent: #e0503a;
    --card-border: #1a685e;
    --card-text: #f4f1e6;
}

body[data-brand="indymusic"] {
    --card-bg: #0b0b0f;
    --card-accent: #f0503a;
    --card-border: #38c8f5;
    --card-text: #e9eef2;
}

/* Title cards */
.film-card .film-poster, .film-poster {
    border: 1px solid var(--card-border) !important;
}
.film-card:hover .film-poster {
    outline: 2px solid var(--card-accent) !important;
    outline-offset: 2px;
}
.film-title {
    color: var(--card-text) !important;
}
.film-meta, .film-meta-row {
    color: var(--card-text) !important;
    opacity: .72;
}

/* Card to log-in flow */
.login-modal-content {
    background: var(--card-bg) !important;
    border: 2px solid var(--card-border) !important;
}
.login-modal-content h2 {
    color: var(--card-text) !important;
}
.login-modal input, .login-modal-content input {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--card-text) !important;
}
.login-submit-btn {
    background: var(--card-accent) !important;
    color: var(--card-bg) !important;
}
.login-submit-btn:hover {
    background: var(--card-border) !important;
    color: var(--card-text) !important;
}

/* Film detail page (public/film-detail.html reuses .film-title/.film-meta plus its own
   metadata-hero card) */
.metadata-hero {
    border: 1px solid var(--card-border) !important;
}
