/* ======================================
CATTLEMANIA MASTER HUD BAR
====================================== */

/* ======================================
HUD VISIBILITY
====================================== */

.desktop-hud {
  display: block;
}

/* ======================================
MOBILE MOVED ITEMS
====================================== */

.mobile-moved {
  display: initial;
}

/* ======================================
HUD CONTAINER
====================================== */

.hud-bar {
  width: 100%;

  background: linear-gradient(145deg, #111827, #0b132b);

  padding: 12px;

  position: relative;

  z-index: 1500;
}

/* ======================================
HUD GRID
====================================== */

.hud-grid {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  width: 100%;
}

/* ======================================
HUD ITEMS
====================================== */

.hud-item {
  background: #0b132b;

  padding: 10px 12px;

  color: #cbd5e1;

  font-weight: 700;

  font-size: 14px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 10px;

  white-space: nowrap;

  text-align: center;

  transition: 0.25s;
}

.hud-item a {
  color: #cbd5e1;

  text-decoration: none;
}

.hud-item:hover {
  border-color: #1e90ff;

  color: white;

  transform: translateY(-2px);
}

/* ======================================
HUD COLORS
====================================== */

.hud-money {
  border-left: 4px solid #38bdf8;
}

.hud-cattle {
  border-left: 4px solid #1e90ff;
}

.hud-chat {
  border-left: 4px solid #38bdf8;
}

#hudActiveUsers {
  color: #38bdf8;

  font-weight: 800;
}

/* ======================================
DESKTOP
====================================== */

@media (min-width: 901px) {
  .hud-grid {
    flex-direction: row;
  }

  .hud-item {
    flex: 0 0 auto;
  }
}

/* ======================================
MOBILE / TABLET HUD PANEL
====================================== */

@media (max-width: 900px) {
  /* HIDE ITEMS MOVED TO BOTTOM */

  .hud-item.mobile-moved {
    display: none !important;
  }

  /* MAIN MOBILE PANEL */

  .hud-bar {
    width: calc(100% - 20px);

    margin: 10px;

    background: linear-gradient(145deg, #111827, #0b132b);

    border: 1px solid #334155;

    border-radius: 16px;

    padding: 12px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  }

  /* PANEL GRID */

  .hud-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;
  }

  /* PANEL BUTTONS */

  .hud-item {
    width: 100%;

    min-height: 55px;

    background: #0f1835;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 12px;

    padding: 10px 5px;

    font-size: 12px;

    display: flex;

    align-items: center;

    justify-content: center;
  }

  .hud-item a {
    width: 100%;

    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 4px;
  }
}

/* ======================================
SMALL PHONE
====================================== */

@media (max-width: 500px) {
  .hud-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* MOBILE ONLY HUD ITEMS */

.mobile-only {
  display: none;
}

@media (max-width: 900px) {
  .mobile-only {
    display: flex;
  }
}
