/*	-------------------------------------------------------------------
 * 	vintage.css — 1980s amber-phosphor terminal theme for Cumulus MX
 *
 *  HOW IT WORKS
 *  ------------
 *  Cumulus MX styles everything through the .w3-theme-* classes defined
 *  in css/colours.css. This file re-declares those SAME class names but
 *  with a retro palette, and is linked AFTER colours.css in index.html
 *  so it wins (same specificity, later in the cascade).
 *
 *  Nothing here is generated by Cumulus, so editing this file is safe —
 *  it will not be overwritten when Cumulus rebuilds its own web pages.
 *  You only ever need to edit this one file to tweak the look.
 *
 *  The look: black CRT screen, amber/green phosphor text, monospaced
 *  font, glowing scanlines, chunky "amber button" panels.
 * ------------------------------------------------------------------ */

/* ---- Palette ---------------------------------------------- */
:root {
	--crt-bg:      #0d0b06;   /* screen black, faint warm tint      */
	--crt-bg2:     #171204;   /* slightly raised panel              */
	--amber:       #ffb000;   /* classic amber phosphor             */
	--amber-dim:   #c8860a;
	--green:       #33ff66;   /* accents / "live" values            */
	--green-dim:   #1f9c43;
	--line:        #6b4a08;   /* panel borders                      */
	--glow:        0 0 8px rgba(255,176,0,0.55);
}

/* ---- Body: black screen, phosphor font, scanlines --------- */
html, body {
	background: var(--crt-bg) !important;
	color: var(--amber) !important;
	font-family: "Courier New", "Lucida Console", Monaco, monospace !important;
	text-shadow: var(--glow);
}

/* Faint horizontal scanlines over the whole screen */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999;
	background: repeating-linear-gradient(
		to bottom,
		rgba(0,0,0,0)      0px,
		rgba(0,0,0,0)      2px,
		rgba(0,0,0,0.28)   3px,
		rgba(0,0,0,0)      4px
	);
}

/* Subtle screen vignette + curvature darkening at the edges */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9998;
	background: radial-gradient(ellipse at center,
		rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
}

/* ---- Theme classes (mirror colours.css) ------------------- */
.w3-theme-white { color: var(--amber);  background-color: var(--crt-bg); }
.w3-theme-l5    { color: var(--amber);  background-color: #141003; }
.w3-theme-l4    { color: var(--amber);  background-color: #1c1503; }
.w3-theme-l3    { color: var(--amber);  background-color: #241a04; }
.w3-theme-l2    { color: var(--amber);  background-color: #2c2005; }
.w3-theme-l1    { color: var(--amber);  background-color: #342606; }
.w3-theme-l6    { color: var(--amber);  background-color: #3c2c07; }
.w3-theme-d1    { color: var(--crt-bg); background-color: var(--amber-dim); }
.w3-theme-d2    { color: #000;          background-color: #8a5c07; }
.w3-theme-d3    { color: #000;          background-color: #6b4706; }
.w3-theme-d4    { color: var(--amber);  background-color: #4a3105; }
.w3-theme-d5    { color: var(--amber);  background-color: #2c2005; }

.w3-theme-light { color: var(--amber);  background-color: var(--crt-bg); }
.w3-theme-dark  { color: var(--amber);  background-color: var(--crt-bg2); }
.w3-theme-action{ color: #000;          background-color: var(--amber); }

.w3-theme       { color: #000;          background-color: var(--amber); }
.w3-theme-txt   { color: var(--green);  }
.w3-theme-bdr   { border-color: var(--line) !important; }

.w3-theme-hvr:hover { color: #000; background-color: var(--amber); }

/* ---- Headings: big amber banners -------------------------- */
h1, h2, h3, h4, h5, h6 {
	color: var(--green) !important;
	text-shadow: 0 0 10px rgba(51,255,102,0.5);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* ---- Panels: recessed CRT "windows" ----------------------- */
.w3-panel, .w3-card, .w3-container {
	background-color: var(--crt-bg2) !important;
	border: 1px solid var(--line);
	box-shadow: inset 0 0 22px rgba(255,176,0,0.07);
}

/* ---- Tables: phosphor grid -------------------------------- */
.w3-table { color: var(--amber) !important; }
.w3-table td { border-color: var(--line) !important; }
.w3-hoverable tbody tr:hover {
	background-color: #342606 !important;
	color: var(--amber);
}

/* Live-updating values glow green so they pop like a readout */
span[data-cmxdata] { color: var(--green); text-shadow: 0 0 8px rgba(51,255,102,0.45); }

/* ---- Links / menu ---------------------------------------- */
a { color: var(--green) !important; text-decoration: none; }
a:hover { color: #000 !important; background-color: var(--green); }

/* ---- Scrollbars ------------------------------------------ */
* { scrollbar-color: var(--amber-dim) var(--crt-bg); }
