/*
Theme Name: GHC Command
Author: German Helldiver Corps
Description: Cleanes Darkmode-Theme mit animierten geometrischen Wellenlinien.
Version: 0.2.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ghc-command
*/

:root {
  --ghc-yellow: #f4cf21;
  --ghc-yellow-soft: rgba(244, 207, 33, .22);
  --ghc-bg: #08090b;
  --ghc-surface: #111316;
  --ghc-text: #f4f4ef;
  --ghc-muted: #999da3;
  --ghc-line: #292c31;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ghc-text);
  background:
    radial-gradient(circle at 78% 5%, rgba(244, 207, 33, .045), transparent 28rem),
    linear-gradient(145deg, rgba(244, 207, 33, .018), transparent 32%),
    var(--ghc-bg);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.ghc-wave-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .7;
  -webkit-mask-image: radial-gradient(circle 64px at 48px 38px, transparent 0 62px, #000 76px);
  mask-image: radial-gradient(circle 64px at 48px 38px, transparent 0 62px, #000 76px);
}

.ghc-wave-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0 62%, var(--ghc-bg) 100%);
}

.ghc-wave-field svg { width: 115%; height: 100%; transform: translateX(-5%); }

.ghc-wave-field path {
  fill: none;
  stroke: var(--ghc-yellow);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
  opacity: .14;
  stroke-dasharray: 8 13;
  animation: ghc-wave-flow 22s linear infinite, ghc-wave-breathe 9s ease-in-out infinite alternate;
}

.ghc-wave-field path:nth-child(2n) { opacity: .09; animation-duration: 29s, 12s; animation-direction: reverse, alternate; }
.ghc-wave-field path:nth-child(3n) { opacity: .2; stroke-dasharray: 2 18; animation-duration: 18s, 10s; }

@keyframes ghc-wave-flow { to { stroke-dashoffset: -210px; } }
@keyframes ghc-wave-breathe { from { transform: translateY(-7px); } to { transform: translateY(9px); } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 11, .88);
  border-bottom: 1px solid var(--ghc-line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
  backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 18px;
  width: 94px;
  height: 2px;
  background: var(--ghc-yellow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
  padding: 6px 18px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ghc-text);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-group-logo,
.custom-logo {
  display: block;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(244, 207, 33, .7);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(8, 9, 11, .94), 0 0 24px rgba(244, 207, 33, .08);
}

.site-brand small {
  display: block;
  margin-top: 5px;
  color: var(--ghc-muted);
  font-size: .64rem;
  font-weight: 650;
  letter-spacing: .14em;
}

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 3px; align-items: center; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 9px 12px; color: #c8cace; border-bottom: 1px solid transparent; font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover,
.site-nav .current-menu-item > a { color: var(--ghc-yellow); border-color: var(--ghc-yellow); }

.nav-toggle { display: none; margin-left: auto; padding: 8px 12px; color: var(--ghc-text); background: var(--ghc-surface); border: 1px solid var(--ghc-line); font: inherit; }
.site-main { position: relative; z-index: 1; min-height: 72vh; }

.content-shell {
  position: relative;
  max-width: 1080px;
  margin: 34px auto;
  padding: clamp(22px, 4vw, 48px);
  background: rgba(17, 19, 22, .94);
  border: 1px solid var(--ghc-line);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .22);
}

.content-shell::before { content: ""; position: absolute; top: -1px; left: -1px; width: 88px; height: 2px; background: var(--ghc-yellow); }
.content-shell h1,
.content-shell h2,
.content-shell h3 { line-height: 1.2; letter-spacing: .025em; text-transform: uppercase; }
.content-shell h1 { padding-left: 14px; border-left: 3px solid var(--ghc-yellow); }
.content-shell a { color: var(--ghc-yellow); }

.site-footer { position: relative; z-index: 1; margin-top: 38px; background: rgba(8, 9, 11, .94); border-top: 1px solid var(--ghc-line); }
.footer-inner { display: flex; gap: 18px; justify-content: space-between; max-width: 1400px; margin: auto; padding: 22px clamp(18px, 4vw, 52px); color: var(--ghc-muted); font-size: .8rem; }
.footer-inner a { color: var(--ghc-yellow); }

@media (max-width: 780px) {
  .site-brand > span { max-width: 190px; font-size: .8rem; }
  .site-group-logo,
  .custom-logo { width: 50px; height: 50px; flex-basis: 50px; }
  .ghc-wave-field { -webkit-mask-image: radial-gradient(circle 60px at 43px 35px, transparent 0 57px, #000 70px); mask-image: radial-gradient(circle 60px at 43px 35px, transparent 0 57px, #000 70px); }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; padding: 10px 18px; background: #0b0d0f; border-bottom: 1px solid var(--ghc-line); }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: block; }
  .site-nav a { padding: 12px; }
  .footer-inner { flex-direction: column; }
  .content-shell { margin: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ghc-wave-field path { animation: none; }
}
