/*
Theme Name:        Wordwave
Theme URI:         https://wordwave.co.za
Description:       Companion theme for the Wordwave Christian radio station site. Dark, glowing, blue and green. Works with the Wordwave Radio plugin, which supplies the page sections and shortcodes.
Author:            Wordwave
Version:           1.1.0
Requires at least: 6.0
Requires PHP:      7.4
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       wordwave
*/

/* Design reference: design.md in the repo root. Tokens below match the plugin's stylesheet. */
:root {
  --bg: #05142b;
  --bg-2: #0a2a6a;
  --bg-deep: #030d1f;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --ink: #f4f7ff;
  --muted: #b4c0e6;
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #38e1ff;
  --blue: #3b8bff;
  --green: #35f2a0;
  --teal: #19d3c5;
  --live: #ff4d5e;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --display: "Arial Black", "Segoe UI Black", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cyan); }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; color: #fff; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 20, 43, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 0 10px rgba(56, 225, 255, .55)); }
.brand-name { font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .02em; }
.brand-name span { background: linear-gradient(90deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background: var(--glass-strong); color: #fff; }
.nav .btn { margin-left: 8px; padding: 10px 20px; }
/* Staff sign-in (the radio station's own accounts; theme.js fills it in when signed in) */
.staff { position: relative; }
.staff-signin, .staff-btn { text-decoration: none; color: var(--muted); font: 600 .95rem var(--body); padding: 8px 14px; border-radius: 999px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.staff-signin:hover, .staff-btn:hover, .staff-btn[aria-expanded="true"] { background: var(--glass-strong); color: #fff; }
.staff-btn { color: var(--ink); }
.staff-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.staff-btn .caret { font-size: .7em; opacity: .7; }
.staff-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: rgba(5, 20, 43, .97); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: grid; gap: 2px; z-index: 60; }
.staff-menu[hidden] { display: none; }
.staff-menu .who { padding: 8px 12px 6px; color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.staff-menu .who b { display: block; color: #fff; font-size: .95rem; }
.staff-menu a, .staff-menu button { display: block; width: 100%; text-align: left; text-decoration: none; color: var(--ink); font: 600 .95rem var(--body); padding: 9px 12px; border-radius: 10px; background: none; border: 0; cursor: pointer; }
.staff-menu a:hover, .staff-menu button:hover { background: var(--glass-strong); color: #fff; }
.staff-menu form { margin: 0; }
.menu-btn {
  display: none; background: var(--glass); border: 1px solid var(--line); border-radius: 12px;
  width: 46px; height: 46px; cursor: pointer; color: #fff;
}
.menu-btn svg { margin: auto; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Footer */
/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 44px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h3 { font-family: var(--body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--cyan); }
.verse { font-style: italic; color: var(--muted); max-width: 26em; margin-top: 14px; }
.copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* Blog and plain pages */
.posts { display: grid; gap: 20px; }
.post-card h2 { font-size: 1.4rem; text-transform: none; }
.post-card h2 a { color: #fff; text-decoration: none; }
.post-card h2 a:hover { color: var(--cyan); }
.post-meta { color: var(--muted); font-size: .9rem; margin: 0 0 .6em; }
.nav-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.entry-content img { border-radius: 14px; height: auto; }
.entry-content { color: #d6defa; }
.entry-content h2, .entry-content h3 { text-transform: none; margin-top: 1.6em; }
.screen-reader-text { position: absolute; left: -9999px; }
.not-found { text-align: center; }
main > .wp-block-shortcode { margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr; }
  .menu-btn { display: grid; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: rgba(5, 20, 43, .97); border-bottom: 1px solid var(--line); padding: 12px 16px 18px; gap: 4px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; }
  .staff-signin, .staff-btn { padding: 12px 14px; width: 100%; }
  .staff-menu { position: static; box-shadow: none; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
