/* ================================================================
   COMPONENTS — Reusable UI Blocks Independent of Any Single Page
   ================================================================ */

/* ── Global icon display ──────────────────────────────────────
   Lucide icons are always inline-flex — set once, inherit everywhere. */
.icon { display: inline-flex; }

/* ── Content Page Shell ─────────────────────────────────────── */

.content-page {
  width: min(920px, 100%);
  background: rgba(10, 30, 50, 0.66);
  border: 1px solid rgba(0, 229, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.08), 0 0 30px rgba(0, 229, 255, 0.07);
  backdrop-filter: blur(5px);
  padding: clamp(20px, 4vw, 34px);
}

.content-page h2 {
  margin: 0 0 8px;
  color: var(--hud-cyan);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.08em;
}

.content-page p {
  margin: 0;
  color: var(--text-body);
  font-size: clamp(1rem, 2.3vw, 1.15rem);
  line-height: 1.6;
}

.content-page .meta {
  margin-top: 14px;
  color: var(--muted-foreground);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* ── HUD Block ──────────────────────────────────────────────────
   Dark bordered card container. Base block for all info cards. */

.hud-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--hud-bg-block);
  border: 1px solid var(--hud-border);
  border-left: 2px solid var(--hud-border-accent);
  padding: 16px 18px;
}

.hud-block p     { margin: 0; }
.hud-block p + p { margin-top: 12px; }

/* ── HUD Label ──────────────────────────────────────────────────
   Orbitron ■-prefix section heading. Compound selector wins over
   .content-page p so no !important needed. */

.hud-block .hud-label,
.hud-label {
  margin: 0 0 8px;
  color: var(--hud-cyan);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.hud-label b {
  margin-right: 4px;
  font-weight: 400;
  color: var(--hud-cyan);
}

/* ── Tag List ───────────────────────────────────────────────────
   Pill / badge row used in About (skills) and Contact (focus). */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  background: var(--hud-dim);
  color: rgba(224, 247, 250, 0.92);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Body Text ──────────────────────────────────────────────────
   Muted long-form prose (Impressum paragraphs, WhoIs biography). */

.body-text {
  margin: 0;
  color: var(--text-muted-soft);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ── Data Row — Shared key/value pattern (Contact + Impressum) ──
   Both pages use a label span + value anchor/strong side by side.
   Common styles live here; per-page differences are in pages.css. */

.contact-row span,
.impressum-row span {
  color: var(--muted-foreground);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.contact-row a,
.contact-row strong,
.impressum-row a,
.impressum-row strong {
  color: var(--hud-cyan);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.contact-row a:hover,
.impressum-row a:hover { text-decoration: underline; }

/* ── Module Card ────────────────────────────────────────────────
   Clickable profile / navigation card (About → WhoIs). */

.module-card {
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  background: linear-gradient(180deg, rgba(0, 24, 44, 0.9) 0%, rgba(0, 12, 26, 0.9) 100%);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover,
.module-card:focus-visible {
  border-color: var(--hud-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.16);
}

.module-card-media {
  border: 1px solid var(--hud-border);
  background: rgba(0, 229, 255, 0.04);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.module-card-media img {
  width: 100%;
  max-width: 130px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.2));
}

.module-card-body h3 {
  margin: 0;
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Compound selector: higher specificity than .content-page p */
.module-card .module-card-kicker {
  margin: 0 0 6px;
  color: var(--hud-cyan);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.module-card-body p {
  margin-top: 8px;
  color: rgba(224, 247, 250, 0.85);
  font-size: 0.95rem;
}

.module-card-cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hud-cyan);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Shared 14 px icon size for small inline action elements */
.module-card-cta .icon svg,
.contact-action .icon svg { width: 14px; height: 14px; }

/* ── Back Button ────────────────────────────────────────────── */

.back-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: transparent;
  color: var(--hud-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--transition-base);
}

.back-btn:hover,
.back-btn:focus-visible {
  border-color: var(--hud-cyan);
  background: var(--hud-mid);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.back-btn svg { width: 18px; height: 18px; }

/* ── Right Side Panels ──────────────────────────────────────── */

.info-panel {
  position: relative;
  padding: 16px;
  border-color: rgba(0, 229, 255, 0.3);
}

/* Shared corner accent pseudo-element — only direction changes */
.with-top-corner::after,
.with-bottom-corner::after {
  content: "";
  position: absolute;
  right: -4px;
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--hud-cyan);
}

.with-top-corner::after {
  top: -4px;
  border-top: 2px solid var(--hud-cyan);
}

.with-bottom-corner::after {
  bottom: -4px;
  border-bottom: 2px solid var(--hud-cyan);
}

.panel-header h3 {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--hud-cyan);
  font-family: var(--font-display);
}

.panel-subtitle {
  margin: 0 0 16px;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.with-divider i {
  position: absolute;
  left: 96px;
  right: 64px;
  border-bottom: 1px dotted rgba(0, 229, 255, 0.3);
}

.connection {
  padding-top: 8px;
  border-top: 1px solid var(--hud-border);
}

.connection strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Help Button ────────────────────────────────────────────── */

.help-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: var(--hud-cyan);
  background: transparent;
  font-size: 1.125rem;
  font-family: var(--font-display);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
  transition: all 0.3s ease;
}

.help-btn:hover {
  background: var(--hud-mid);
  border-color: var(--hud-cyan);
}
