/* ============================================================
   RMP — PLATFORM LIGHT VINTAGE THEME  (cream · matches homepage)
   Loaded last in platform.layouts.app. Flips the old dark theme
   to warm cream/parchment with espresso text + antique gold,
   so every inner page matches the homepage.
   ============================================================ */
:root{
  --paper:#f4ecd8; --paper-2:#efe3c6; --paper-3:#e7d8b6;
  --ink:#3a2c12; --ink-soft:#6b5836; --ink-faint:#9a8761;
  --gold:#b8902f; --gold-bright:#d8b14e; --gold-deep:#8a6a1d;
  /* platform tokens */
  --color-primary:#b8902f; --color-primary-light:#d8b14e; --color-primary-dark:#8a6a1d;
  --color-chrome:#8a6a1d; --color-accent:#3a2c12;
  --g-gold:#b8902f; --g-gold-br:#d8b14e; --g-gold-pale:#efe3c6; --g-gold-deep:#8a6a1d; --g-glow:rgba(184,144,47,.4);
}

/* ---- Base: cream page, espresso ink ---- */
body{
  background:#f4ecd8 !important;
  color:#3a2c12 !important;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -8%, rgba(216,177,78,.18), transparent 60%),
    radial-gradient(ellipse 70% 60% at 100% 110%, rgba(140,59,43,.05), transparent 55%) !important;
}
main{background:transparent !important}

/* ---- Flip dark surfaces (inline) → parchment ---- */
[style*="background:#000"],[style*="background: #000"],
[style*="background:#0a0a0a"],[style*="background: #0a0a0a"],
[style*="background:#080808"],[style*="background:#0d0d0d"],
[style*="background:#111"],[style*="background:#0b0b0b"],
[style*="background-color:#000"],[style*="background:#050505"],
[style*="background:#090909"]{ background:#f4ecd8 !important; }
[style*="background:#1a1a1a"],[style*="background:#161616"],
[style*="background:#1c1c1c"],[style*="background:#141414"]{ background:#efe3c6 !important; }
[style*="background:#222"],[style*="background:#2a2a2a"]{ background:#e7d8b6 !important; }

/* dark gradient backgrounds → warm parchment gradient */
[style*="linear-gradient(135deg,#0"],[style*="linear-gradient(180deg,#0"],
[style*="linear-gradient(150deg,#0"],[style*="linear-gradient(135deg, #0"]{
  background:linear-gradient(135deg,#efe3c6,#e7d8b6) !important;
}

/* ---- Text: light → ink ---- */
[style*="color:#fff"],[style*="color: #fff"],[style*="color:#ffffff"],
[style*="color:#fafafa"],[style*="color:#f5f5f5"],[style*="color:#f0f0f0"],
[style*="color:#eee"],[style*="color:#e5e5e5"]{ color:#3a2c12 !important; }
[style*="color:#ccc"],[style*="color:#bbb"],[style*="color:#aaa"],
[style*="color:#999"],[style*="color:#888"],[style*="color:#777"],
[style*="color:#666"],[style*="color:#555"],[style*="color:#444"],
[style*="color:#333"]{ color:#6b5836 !important; }

/* white text utility classes */
.text-white,.text-gray-100,.text-gray-200,.text-gray-300{ color:#3a2c12 !important; }
.text-gray-400,.text-gray-500,.text-gray-600{ color:#6b5836 !important; }

/* ---- Borders ---- */
[style*="solid #1a1a1a"],[style*="solid #222"],[style*="solid #2a2a2a"],
[style*="solid rgba(255,255,255"],[style*="solid #111"]{ border-color:rgba(120,90,40,.2) !important; }

/* ---- Headings / gradient "chrome" text → gold ---- */
.chrome-text,.text-chrome,.gradient-text,
[style*="-webkit-text-fill-color:transparent"]{
  background:linear-gradient(135deg,#8a6a1d,#d8b14e 45%,#b8902f) !important;
  -webkit-background-clip:text !important; background-clip:text !important;
  -webkit-text-fill-color:transparent !important;
}

/* ---- Cards / panels ---- */
.card,.glass-card,.panel{ background:#efe3c6 !important; border-color:rgba(120,90,40,.18) !important; color:#3a2c12 !important; }
.card:hover,.glass-card:hover{ border-color:#b8902f !important; box-shadow:0 18px 50px rgba(90,66,28,.18) !important; }

/* ---- Inputs (search boxes etc.) ---- */
input,textarea,select{
  background:#efe3c6 !important; color:#3a2c12 !important;
  border:1px solid rgba(120,90,40,.28) !important;
}
input::placeholder,textarea::placeholder{ color:#9a8761 !important; }
input:focus,textarea:focus,select:focus{ border-color:#b8902f !important; box-shadow:0 0 0 3px rgba(184,144,47,.18) !important; outline:none !important; }

/* ---- Buttons / pills ---- */
.btn-primary,.btn-glow,.btn-accent,.badge.bg-primary,.badge.bg-accent,
[style*="background:#0090ff"],[style*="background:#d4af37"]{
  background:linear-gradient(135deg,#b8902f,#d8b14e) !important; color:#2a1d08 !important;
  border-color:#d8b14e !important; box-shadow:0 6px 18px rgba(184,144,47,.3) !important;
}
.btn-outline-primary,.btn-ghost{ border-color:#b8902f !important; color:#8a6a1d !important; background:transparent !important; }
.text-primary,.text-accent{ color:#8a6a1d !important; }
.bg-primary{ background:#b8902f !important; color:#2a1d08 !important; }

/* category chips / status badges that were dark */
[style*="background:#0d0d0d"]{ background:#efe3c6 !important; }

/* ---- Misc accents ---- */
.scroll-top-btn{ background:linear-gradient(135deg,#8a6a1d,#d8b14e) !important; box-shadow:0 6px 18px rgba(184,144,47,.4) !important; }
hr{ border-color:rgba(120,90,40,.2) !important; }
::selection{ background:#b8902f; color:#2a1d08; }

/* footer (engine footers are dark) → warm */
footer[data-cinema-section="footer"]{ background:#efe3c6 !important; border-top-color:rgba(120,90,40,.2) !important; }
footer[data-cinema-section="footer"] *{ color:#6b5836 !important; }
footer[data-cinema-section="footer"] [style*="color:#d4af37"],
footer[data-cinema-section="footer"] [style*="color:#0090ff"]{ color:#8a6a1d !important; }
