
/* =====================================================
   HUNTX COMMAND DASHBOARD
   Black / Orange / Tactical Outdoor Design
   ===================================================== */

:root {
  --hx-bg: #080a08;
  --hx-panel: rgba(19, 22, 18, 0.92);
  --hx-panel-light: rgba(255, 255, 255, 0.035);
  --hx-orange: #ff6b00;
  --hx-gold: #ffb800;
  --hx-text: #f3f3ed;
  --hx-muted: #9b9e94;
  --hx-border: rgba(255, 107, 0, 0.19);
  --hx-font: "Exo 2", sans-serif;
  --hx-heading: "Orbitron", sans-serif;
}

* {
  box-sizing: border-box;
}

body.dashboard-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(255, 107, 0, 0.09), transparent 35%),
    radial-gradient(ellipse at 90% 60%, rgba(255, 184, 0, 0.045), transparent 30%),
    var(--hx-bg);
  color: var(--hx-text);
  font-family: var(--hx-font);
}

.dashboard-page a {
  text-decoration: none;
}

/* HEADER */

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 5%;
  background: rgba(8, 10, 8, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hx-border);
}

.dashboard-logo {
  color: white;
  font-family: var(--hx-heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.25em;
}

.dashboard-logo span {
  color: var(--hx-orange);
}

.dashboard-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-header nav a {
  padding: 0.7rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #c4c6bd;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: 0.25s ease;
}

.dashboard-header nav a:hover,
.dashboard-header nav a.active {
  color: white;
  background: rgba(255, 107, 0, 0.09);
  border-color: var(--hx-border);
}

.dashboard-header nav a:last-child:hover {
  color: var(--hx-orange);
}

/* MAIN LAYOUT */

.dashboard-container {
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 4rem 0 3rem;
}

.dashboard-welcome {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.eyebrow,
.panel-label {
  color: var(--hx-orange);
  font-family: var(--hx-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.dashboard-welcome h1 {
  margin: 0.8rem 0;
  font-family: var(--hx-heading);
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: 0.07em;
}

.dashboard-welcome h1 span,
.dashboard-bottom h2 span {
  color: var(--hx-orange);
}

.dashboard-welcome p {
  max-width: 620px;
  margin: 0;
  color: var(--hx-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.welcome-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(104, 190, 92, 0.22);
  border-radius: 7px;
  background: rgba(104, 190, 92, 0.06);
  color: #a9d69d;
  font-family: var(--hx-heading);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #70c45c;
  box-shadow: 0 0 12px rgba(112, 196, 92, 0.7);
}

/* PANELS */

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.dashboard-panel {
  min-width: 0;
  padding: 2rem;
  border: 1px solid var(--hx-border);
  border-radius: 12px;
  background: var(--hx-panel);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.dashboard-panel:hover {
  border-color: rgba(255, 107, 0, 0.4);
}

.mission-panel {
  grid-row: span 2;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-panel h2 {
  margin: 0.6rem 0 0;
  color: var(--hx-text);
  font-family: var(--hx-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  letter-spacing: 0.09em;
}

.panel-icon {
  color: var(--hx-orange);
  font-size: 1.5rem;
  opacity: 0.8;
}

.panel-description {
  margin: 0 0 1.5rem;
  color: var(--hx-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* MISSION FEED */

.mission-feed {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mission-feed li {
  position: relative;
  padding: 1rem 1rem 1rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  background: var(--hx-panel-light);
  color: #d9dbd3;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: 0.25s ease;
}

.mission-feed li::before {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hx-orange);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.55);
  content: "";
  transform: translateY(-50%);
}

.mission-feed li:hover {
  border-color: var(--hx-border);
  background: rgba(255, 107, 0, 0.055);
  transform: translateX(4px);
}

/* OPERATOR STATUS */

.operator-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.8rem 0;
}

.operator-avatar {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 107, 0, 0.5);
  border-radius: 10px;
  background: linear-gradient(135deg, #292116, #10120e);
  color: var(--hx-orange);
  font-size: 1.5rem;
  box-shadow: 0 0 25px rgba(255, 107, 0, 0.12);
}

.operator-info h3 {
  margin: 0 0 0.35rem;
  font-family: var(--hx-heading);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.operator-info span {
  color: var(--hx-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.xp-section {
  margin: 1.5rem 0;
}

.xp-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: var(--hx-muted);
  font-family: var(--hx-heading);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

#xp-text {
  color: var(--hx-gold);
}

.xp-wrapper,
#xp-bar {
  width: 100%;
  height: 11px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
}

#xp-progress {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hx-orange), var(--hx-gold));
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.45);
  transition: width 0.6s ease;
}

.operator-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.operator-stats > * {
  min-width: 0;
}

.stat-placeholder {
  grid-column: 1 / -1;
  padding: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: var(--hx-muted);
  font-size: 0.85rem;
}

/* QUICK ACTIONS */

.actions-panel {
  grid-column: 2;
}

.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: white;
  transition: 0.25s ease;
}

.dashboard-action > i:first-child {
  width: 24px;
  color: var(--hx-orange);
  font-size: 1.1rem;
  text-align: center;
}

.dashboard-action span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
}

.dashboard-action strong {
  font-family: var(--hx-heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.dashboard-action small {
  color: var(--hx-muted);
  font-size: 0.75rem;
}

.dashboard-action .action-arrow {
  color: var(--hx-muted);
  font-size: 0.8rem;
  transition: 0.25s ease;
}

.dashboard-action:hover {
  border-color: rgba(255, 107, 0, 0.45);
  background: rgba(255, 107, 0, 0.07);
  transform: translateX(4px);
}

.dashboard-action:hover .action-arrow {
  color: var(--hx-orange);
  transform: translateX(4px);
}

/* BOTTOM BANNER */

.dashboard-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--hx-border);
  border-radius: 12px;
  background: linear-gradient(110deg, rgba(255, 107, 0, 0.09), rgba(255, 255, 255, 0.015));
}

.dashboard-bottom h2 {
  margin: 0.6rem 0;
  font-family: var(--hx-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.dashboard-bottom p {
  margin: 0;
  color: var(--hx-muted);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--hx-orange);
  border-radius: 6px;
  color: white;
  font-family: var(--hx-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: 0.25s ease;
}

.contact-link:hover {
  background: var(--hx-orange);
  color: #080a08;
}

/* FOOTER */

.dashboard-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 5%;
  border-top: 1px solid var(--hx-border);
  color: var(--hx-muted);
  font-family: var(--hx-heading);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.dashboard-footer a {
  color: var(--hx-orange);
}

/* ACCESSIBILITY */

.dashboard-page a:focus-visible,
.dashboard-page button:focus-visible {
  outline: 2px solid var(--hx-gold);
  outline-offset: 4px;
}

/* RESPONSIVE */

@media (max-width: 850px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .mission-panel {
    grid-row: auto;
  }

  .actions-panel {
    grid-column: auto;
  }

  .dashboard-welcome {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .dashboard-header {
    align-items: center;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
  }

  .dashboard-header nav {
    justify-content: center;
    gap: 0.25rem;
  }

  .dashboard-header nav a {
    padding: 0.55rem 0.6rem;
    font-size: 0.62rem;
  }

  .dashboard-container {
    width: 92%;
    padding-top: 2.5rem;
  }

  .dashboard-panel {
    padding: 1.35rem;
  }

  .dashboard-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.5rem;
  }

  .dashboard-footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
