/*
Theme Name: 90s Plus Radio
Theme URI: https://90splus.us
Author: Rich Wheeler
Description: Lightweight custom theme for 90s Plus Radio. No page builder required.
Version: 1.1.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ninetiesplus
*/

/* =====================================================================
 * COLORS AND FONTS: change these to restyle the whole site
 * ===================================================================== */
:root {
	--page: #c0c0c0;          /* gray page background */
	--navy: #000080;          /* screens, buttons, headings */
	--navy-hover: #0000b3;
	--yellow: #ffff00;        /* borders around screens and buttons */
	--green: #00ff00;         /* text on the navy screens */
	--red: #ff2020;           /* on-air light */
	--ink: #1a1a1a;           /* regular paragraph text */
	--muted: #444;
	--silver: linear-gradient(180deg, #fdfdfd 0%, #ececec 55%, #d6d6d6 100%);
	--brushed: linear-gradient(115deg, #cfcfcf 0%, #f6f6f6 32%, #d9d9d9 52%, #f3f3f3 74%, #cbcbcb 100%);

	--wrap: 1180px;
	--mono: "Courier New", Courier, monospace;
	--body: Verdana, Geneva, Tahoma, sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-hover); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
	left: 12px; top: 12px; z-index: 1000;
	background: var(--navy); color: var(--yellow); border: 3px solid var(--yellow);
	padding: 8px 14px; font: 700 1rem var(--mono);
}

/* ===== Navy screen with yellow border (used all over) ===== */
.lcd, .screen {
	background: var(--navy);
	border: 3px solid var(--yellow);
	color: var(--green);
}
.screen { border-width: 4px; border-radius: 6px; padding: 12px; }

/* ===== Speaker grille lines ===== */
.grille {
	flex-shrink: 0; width: 46px; height: 128px;
	background: repeating-linear-gradient(to bottom, #8f8f8f 0 2px, transparent 2px 8px);
}
.grille-sm { width: 52px; height: 46px; }

/* ===== Buttons ===== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: 700 1.05rem/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
	text-decoration: none; cursor: pointer;
	padding: 12px 22px; border-radius: 8px;
	background: var(--navy); color: var(--green); border: 3px solid var(--yellow);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--navy-hover); color: var(--yellow); }
.btn-silver { background: var(--silver); color: var(--navy); border-color: var(--navy); }
.btn-silver:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.text-link { font: 700 1rem var(--mono); text-decoration: none; color: var(--navy); }
.text-link:hover { text-decoration: underline; }

/* ===== Header ===== */
.site-header {
	background: var(--brushed);
	border-top: 4px solid #222;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
	position: relative; z-index: 2;
}
.header-inner { display: flex; align-items: center; gap: 30px; padding: 16px 20px; }
.brand { flex-shrink: 0; }
.brand img { width: 130px; height: 130px; }

/* ===== Show alert marquee ===== */
.marquee {
	flex: 1; min-width: 0; overflow: hidden; white-space: nowrap;
	background: var(--navy); border: 3px solid var(--yellow); color: var(--green);
	font: 700 1.7rem/1 var(--mono);
}
.marquee-track { display: flex; width: max-content; animation: nplus-scroll 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; padding: 16px 0; }
.marquee-item { padding: 0 22px; }
.marquee-star { color: var(--green); }
@keyframes nplus-scroll { to { transform: translateX(-50%); } }

/* ===== Round nav buttons ===== */
.site-nav { padding: 30px 20px 10px; }
.nav-list {
	list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap);
	display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px;
}
.nav-list a {
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	text-decoration: none; color: var(--navy);
	font: 700 1.2rem/1 var(--mono);
}
.nav-icon {
	display: grid; place-items: center;
	width: 74px; height: 74px; border-radius: 50%;
	background: var(--navy); color: #fff; border: 3px solid var(--yellow);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease, background 0.15s ease;
}
.nav-icon svg { width: 36px; height: 36px; }
.nav-list a:hover .nav-icon { transform: translateY(-3px); background: var(--navy-hover); }
.nav-list a[aria-current="page"] .nav-icon { box-shadow: 0 0 0 4px var(--navy), 0 3px 8px rgba(0, 0, 0, 0.4); }
/* If you switch to a WordPress menu (no icons), show plain navy buttons */
.nav-list-plain a {
	padding: 10px 16px; border-radius: 8px;
	background: var(--navy); color: var(--green); border: 3px solid var(--yellow);
}

/* ===== Sections ===== */
.section { padding: 48px 0; }
.section-head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px 20px; flex-wrap: wrap; margin-bottom: 24px;
}
.section-head.center { justify-content: center; text-align: center; }
.section-title {
	display: inline-block; margin: 0; padding: 10px 18px;
	background: var(--navy); border: 3px solid var(--yellow); color: var(--green);
	font: 700 clamp(1.15rem, 2.6vw, 1.6rem)/1.2 var(--mono);
	letter-spacing: 0.05em; text-transform: uppercase;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* ===== Boombox (player and game) ===== */
.hero { padding: 28px 0 10px; }
.boombox {
	max-width: 420px; margin: 0 auto;
	background: var(--silver);
	border: 1px solid #a9a9a9; border-radius: 18px; padding: 24px;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 #fff;
}
.boombox-top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.rec-dot {
	flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
	background: var(--red); box-shadow: 0 0 8px rgba(255, 32, 32, 0.7);
	animation: nplus-pulse 1.6s ease-in-out infinite;
}
@keyframes nplus-pulse { 50% { opacity: 0.35; } }
.lcd {
	flex: 1; padding: 9px 10px; text-align: center;
	font: 700 1.35rem/1.2 var(--mono); letter-spacing: 0.1em;
}
.player-embed { display: flex; justify-content: center; }
.player-embed iframe { display: block; max-width: 100%; border: 0; }
.boombox .btn-row { margin-top: 22px; }

/* ===== Silver cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.card {
	background: var(--silver);
	border: 1px solid #a9a9a9; border-radius: 14px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 #fff;
	overflow: hidden;
}
.show-card { padding: 22px; }
.show-when {
	display: inline-block; margin-bottom: 14px; padding: 5px 12px;
	background: var(--navy); color: var(--green); border: 2px solid var(--yellow);
	font: 700 0.85rem var(--mono); text-transform: uppercase; letter-spacing: 0.04em;
}
.show-card h3 { margin: 0 0 4px; color: var(--navy); font: 700 1.3rem/1.25 var(--mono); }
.show-host { margin: 0 0 12px; color: var(--navy); font-weight: 700; }
.show-card p { margin: 0; }
.show-card .show-host { margin-bottom: 12px; }

/* Blog cards */
.post-card { display: flex; flex-direction: column; transition: transform 0.15s ease; }
.post-card:hover { transform: translateY(-4px); }
.post-card .thumb { display: block; border-bottom: 4px solid var(--yellow); }
.post-card .thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.thumb-fallback {
	display: grid; place-items: center; aspect-ratio: 16 / 10;
	background: var(--navy); color: var(--green); font: 700 2.4rem var(--mono);
}
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.post-date { color: var(--navy); font: 700 0.85rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.post-card h3 { margin: 0; font: 700 1.2rem/1.3 var(--mono); }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* Mixcloud cards */
.mix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.mix-grid > p { grid-column: 1 / -1; margin: 0; }
.mix-card {
	display: block; text-decoration: none; color: var(--ink);
	background: var(--silver); border: 1px solid #a9a9a9; border-radius: 12px; overflow: hidden;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease;
}
.mix-card:hover { transform: translateY(-4px); color: var(--ink); }
.mix-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 4px solid var(--yellow); }
.mix-body { padding: 10px 12px 12px; }
.mix-title {
	margin: 0 0 4px; color: var(--navy); font: 700 0.95rem/1.3 var(--mono);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mix-meta { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* ===== Support ===== */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.support-copy { padding: 24px 26px; }
.support-copy p:first-child { margin-top: 0; }
.callout { background: #ffffa6; border-left: 5px solid var(--navy); padding: 12px 16px; border-radius: 4px; }
.faq details { background: #fff; border: 2px solid var(--navy); border-radius: 8px; padding: 14px 16px; margin-top: 18px; }
.faq summary { cursor: pointer; color: var(--navy); font: 700 1.05rem var(--mono); }
.faq details p { margin: 12px 0 0; }
.fine-print { font-size: 0.8rem; color: var(--muted); margin: 20px 0 0; }
.kofi-wrap { background: var(--navy); border: 4px solid var(--yellow); border-radius: 10px; padding: 6px; }
.kofi-wrap iframe { display: block; width: 100%; height: 712px; border: 0; background: #f9f9f9; border-radius: 4px; }

/* ===== Snake ===== */
.snake-box { max-width: 480px; text-align: center; }
.snake-score {
	display: flex; justify-content: space-between; margin-bottom: 10px;
	font: 700 1.1rem var(--mono); color: var(--green);
}
.snake-score b { color: var(--yellow); }
#snake-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; touch-action: none; border: 1px solid rgba(255, 255, 255, 0.2); }
.snake-msg { margin: 10px 0 0; min-height: 1.4em; font: 700 1rem var(--mono); color: var(--green); }
.dpad {
	display: grid; grid-template-columns: repeat(3, 60px); grid-template-rows: repeat(2, 60px);
	gap: 8px; justify-content: center; margin: 20px auto 16px;
}
.dpad button {
	border-radius: 50%; cursor: pointer; font-size: 1.2rem;
	background: var(--navy); color: #fff; border: 3px solid var(--yellow);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
}
.dpad button:active { transform: translateY(2px); background: var(--navy-hover); }
.dp-up { grid-column: 2; grid-row: 1; }
.dp-left { grid-column: 1; grid-row: 2; }
.dp-down { grid-column: 2; grid-row: 2; }
.dp-right { grid-column: 3; grid-row: 2; }
.snake-start { min-width: 170px; }
.snake-hint { font-size: 0.82rem; color: var(--muted); margin: 16px 0 0; }
.plus { color: var(--red); font-weight: 800; }

/* ===== Single posts and pages ===== */
.entry {
	max-width: 820px; margin: 40px auto; padding: 36px 40px;
	background: #f7f7f7; border: 1px solid #a9a9a9; border-radius: 14px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.entry-title { margin: 6px 0 24px; color: var(--navy); font: 700 clamp(1.7rem, 4vw, 2.4rem)/1.2 var(--mono); }
.entry .post-date { display: block; }
.entry-thumb img { border: 4px solid var(--yellow); border-radius: 8px; margin-bottom: 26px; width: 100%; }
.entry-content { font-size: 1.05rem; }
.entry-content h2, .entry-content h3 { color: var(--navy); font-family: var(--mono); line-height: 1.25; margin: 1.7em 0 0.5em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 8px; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 5px solid var(--navy); color: var(--muted); }
.entry-content iframe { max-width: 100%; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 2px solid #ccc; font: 700 1rem var(--mono); }
.post-nav a { text-decoration: none; }
.back-link { margin: 22px 0 0; }
.builder-page { width: 100%; }

.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
	padding: 8px 14px; border-radius: 6px; text-decoration: none;
	background: var(--navy); color: var(--green); border: 2px solid var(--yellow); font: 700 1rem var(--mono);
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { color: var(--yellow); }

.center-block { text-align: center; max-width: 640px; }
.center-block .btn { margin-top: 10px; }

/* ===== Footer ===== */
.site-footer {
	margin-top: 40px; padding: 4px 0 30px; text-align: center;
	background: var(--brushed); border-top: 4px solid #222;
	box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.25);
}
.footer-nav { padding-top: 26px; }
.footer-nav .nav-icon { width: 58px; height: 58px; }
.footer-nav .nav-icon svg { width: 28px; height: 28px; }
.footer-nav .nav-list a { font-size: 1rem; }
.footer-player { max-width: 340px; margin: 26px auto 0; }
.footer-tag { margin: 22px 0 12px; color: var(--navy); font: 700 1.05rem var(--mono); }
.orb-badge { display: inline-block; }
.copyright { margin: 14px 0 0; font-size: 0.85rem; color: var(--muted); }

/* ===== Tablets ===== */
@media (max-width: 900px) {
	.support-grid { grid-template-columns: 1fr; }
	.header-inner { gap: 18px; }
	.brand img { width: 96px; height: 96px; }
	.grille { height: 94px; width: 34px; }
	.marquee { font-size: 1.3rem; }
}

/* ===== Phones ===== */
@media (max-width: 640px) {
	body { font-size: 15px; }
	.header-inner { gap: 12px; padding: 12px; }
	.brand img { width: 70px; height: 70px; }
	.grille { display: none; }
	.marquee { font-size: 1.05rem; }
	.marquee-group { padding: 12px 0; }

	.site-header + .site-nav .nav-list {
		flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
		padding-bottom: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.site-header + .site-nav .nav-list::-webkit-scrollbar { display: none; }
	.nav-list li { flex-shrink: 0; }
	.site-nav { padding: 20px 12px 6px; }
	.nav-icon { width: 58px; height: 58px; }
	.nav-icon svg { width: 28px; height: 28px; }
	.nav-list a { font-size: 0.95rem; }

	.boombox { padding: 16px; }
	.lcd { font-size: 1rem; letter-spacing: 0.05em; }
	.grille-sm { display: none; }
	.section { padding: 36px 0; }
	.entry { margin: 20px 12px; padding: 24px 20px; }
	.kofi-wrap iframe { height: 690px; }
}

/* ===== People who turn off animations ===== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.marquee { white-space: normal; }
	.marquee-track { animation: none; width: auto; }
	.marquee-group { flex-wrap: wrap; }
	.marquee-group[aria-hidden="true"] { display: none; }
	.rec-dot { animation: none; }
	.btn, .post-card, .mix-card, .nav-icon { transition: none; }
}
