/*
Theme Name: Red Shirt Watch v1.4
Theme URI: https://redshirtwatch.com/
Author: Daniel Allan
Description: Complete cinematic WordPress theme for Red Shirt Watch serialized military sci-fi fiction. Version 1.4 removes the baked lower image menu and adds a real editable glowing WordPress menu beneath the header.
Version: 1.4
License: GPLv2 or later
Text Domain: redshirtwatch
Tags: fiction, dark, responsive, custom-menu, featured-images
*/

:root {
  --bg: #05070b;
  --panel: #101622;
  --panel-dark: #080d14;
  --line: #2b3545;
  --text: #e8edf4;
  --muted: #9aa6b8;
  --red: #b31724;
  --red-dark: #740d17;
  --red-bright: #ff4b5d;
  --gold: #d3b16a;
  --glow: rgba(255,75,93,.72);
}

* { box-sizing: border-box; }

html {
  margin: 0 !important;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(179,23,36,.16), transparent 30%),
    linear-gradient(180deg, #05070b 0%, #030407 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

a {
  color: #dfe5ee;
  text-decoration: none;
}

a:hover { color: var(--red-bright); }

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  background: #000;
  border-bottom: 1px solid var(--line);
}

.header-art {
  width: 100%;
  min-height: 430px;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.00), rgba(0,0,0,.22)),
    url('assets/header-banner-clean.png') center top / cover no-repeat;
  border-bottom: 1px solid rgba(255,75,93,.30);
}

/* Real editable glowing WordPress menu directly below header art */
.header-menu-bar {
  position: relative;
  background:
    linear-gradient(90deg, rgba(95,10,17,.96), rgba(6,9,14,.98) 14%, rgba(9,13,20,.98) 86%, rgba(95,10,17,.96));
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,75,93,.40);
  box-shadow:
    0 0 28px rgba(255,75,93,.20),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(255,75,93,.18);
  padding: 13px 18px;
  z-index: 10;
}

.primary-menu,
.primary-menu ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.primary-menu li {
  margin: 0;
  padding: 0;
  position: relative;
  flex: 0 0 auto;
}

.primary-menu a,
.fallback-menu a {
  display: block;
  padding: 13px 18px;
  min-width: 98px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #ecf2fb;
  background:
    linear-gradient(180deg, rgba(32,40,54,.88), rgba(9,12,18,.96));
  border: 1px solid rgba(255,255,255,.12);
  border-bottom-color: rgba(255,75,93,.35);
  border-radius: 8px;
  box-shadow:
    0 0 10px rgba(255,75,93,.16),
    inset 0 0 10px rgba(255,255,255,.04);
  text-shadow:
    0 0 6px rgba(255,255,255,.45),
    0 0 12px rgba(255,75,93,.45);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, color .14s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.fallback-menu a:hover {
  color: #fff;
  background:
    radial-gradient(circle at top, rgba(255,75,93,.42), transparent 60%),
    linear-gradient(180deg, rgba(72,18,26,.96), rgba(16,18,25,.98));
  box-shadow:
    0 0 14px rgba(255,75,93,.58),
    0 0 28px rgba(255,75,93,.24),
    inset 0 0 14px rgba(255,255,255,.08);
  transform: translateY(-1px);
  text-decoration: none;
}

.fallback-menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

/* Prevent duplicate WP/site branding. */
.site-title,
.site-description,
.site-branding,
.custom-logo-link,
.wp-block-site-title,
.wp-block-site-tagline {
  display: none !important;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 20px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.full-width-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 20px 80px;
}

.card {
  background: linear-gradient(180deg, rgba(16,22,34,.97), rgba(9,13,20,.97));
  border: 1px solid var(--line);
  border-left: 4px solid rgba(179,23,36,.75);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  margin-bottom: 24px;
}

.post-title {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.post-title a { color: var(--text); }

.meta {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.entry-content p { margin: 0 0 1.25em; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: .03em;
}

.entry-content blockquote {
  border-left: 4px solid var(--red);
  margin: 1.6em 0;
  padding: .2em 0 .2em 1.2em;
  color: var(--muted);
  font-style: italic;
}

.entry-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

.chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 22px;
  font-family: Arial, Helvetica, sans-serif;
}

.sidebar .card { border-left-color: rgba(255,75,93,.35); }

.sidebar h3,
.widget-title {
  margin: 0 0 14px;
  color: var(--red-bright);
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .88rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.widget {
  background: linear-gradient(180deg, rgba(16,22,34,.97), rgba(9,13,20,.97));
  border: 1px solid var(--line);
  border-left: 4px solid rgba(255,75,93,.35);
  padding: 24px;
  margin-bottom: 24px;
}

.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 28px 20px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .84rem;
  background: #030407;
}

/* Desktop menu stays one line but can scroll horizontally on small laptop widths. */
.header-menu-bar {
  overflow-x: auto;
  overflow-y: hidden;
}

@media (max-width: 1120px) {
  .primary-menu,
  .fallback-menu {
    justify-content: flex-start;
  }
  .primary-menu a,
  .fallback-menu a {
    min-width: auto;
    padding: 12px 14px;
    font-size: .72rem;
  }
}

@media (max-width: 900px) {
  .header-art {
    min-height: 310px;
    background-position: center top;
  }

  .container {
    display: block;
    padding-top: 26px;
  }

  .sidebar { margin-top: 28px; }

  .primary-menu,
  .fallback-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .header-art {
    min-height: 230px;
  }

  .primary-menu a,
  .fallback-menu a {
    padding: 10px 12px;
    font-size: .68rem;
  }
}
