/*
Theme Name: Hangar HUD
Theme URI: https://somethingfresh.dev/themes/hangar-hud
Author: Cascade AI
Author URI: https://somethingfresh.dev
Description: Experimental immersive WebXR WordPress theme prototype built for the Something Fresh squadron.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: hangar-hud
*/

/* Base layout scaffolding. Refine during build-out. */
:root {
  color-scheme: dark;
  --hud-bg: #05060a;
  --hud-panel: rgba(21, 26, 37, 0.9);
  --hud-accent: #9c6bff;
  --hud-accent-alt: #00f5d4;
  --hud-text: #f4f4f8;
  --hud-muted: rgba(244, 244, 248, 0.65);
  font-size: 16px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top center, rgba(15, 20, 30, 0.95), var(--hud-bg));
  color: var(--hud-text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  min-height: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(156,107,255,0.05)' stroke-width='1'%3E%3Cpath d='M0 50h400M0 100h400M0 150h400M0 200h400M0 250h400M0 300h400M0 350h400M50 0v400M100 0v400M150 0v400M200 0v400M250 0v400M300 0v400M350 0v400'/%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
  z-index: -10;
}

.hangar-app {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "hud-bar hud-bar"
    "hud-side hud-main";
  min-height: 100vh;
}

.hangar-top-bar {
  grid-area: hud-bar;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, rgba(21, 26, 37, 0.95), rgba(12, 14, 22, 0.85));
  border-bottom: 1px solid rgba(156, 107, 255, 0.4);
  backdrop-filter: blur(12px);
}

.hangar-top-bar__brand {
  font-size: 1.125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hud-accent);
}

.hangar-top-bar nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.hangar-top-bar nav a {
  color: var(--hud-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms ease, transform 150ms ease;
}

.hangar-top-bar nav a:hover,
.hangar-top-bar nav .current-menu-item a {
  color: var(--hud-accent-alt);
  transform: translateY(-2px);
}

.hangar-sidebar {
  grid-area: hud-side;
  padding: 2rem 1.75rem;
  background: var(--hud-panel);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(156, 107, 255, 0.2);
}

.hangar-sidebar .widget {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(244, 244, 248, 0.08);
}

.hangar-main {
  grid-area: hud-main;
  position: relative;
  overflow: hidden;
}

.hangar-main__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hangar-main__content {
  position: relative;
  z-index: 5;
  padding: 3.5rem clamp(2rem, 4vw, 6rem);
  max-width: 960px;
}

.hangar-holo-card {
  margin-bottom: 2.5rem;
  padding: 1.75rem 2rem;
  background: rgba(9, 13, 24, 0.85);
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(5, 6, 10, 0.65);
  backdrop-filter: blur(18px);
}

.hangar-holo-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--hud-accent-alt);
}

.hangar-holo-card p {
  margin: 0;
  line-height: 1.65;
  color: var(--hud-muted);
}

@media (max-width: 960px) {
  .hangar-app {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "hud-bar"
      "hud-side"
      "hud-main";
  }

  .hangar-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(156, 107, 255, 0.2);
    padding: 1.5rem 1.25rem;
  }

  .hangar-main__content {
    padding: 2.5rem 1.5rem 4rem;
  }
}
