/* Fullscreen button */
.card-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  cursor: pointer;
  transition: 0.2s ease;
}

.card-fullscreen-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  transform: scale(1.04);
}

/* Body lock when a card is fullscreen */
body.has-fullscreen-card {
  overflow: hidden;
}

/* Hide card row movement weirdness while expanded */
#cardsRow.has-fullscreen-card {
  overflow: hidden !important;
}

/* Fullscreen card shell */
.card.card-fullscreen {
  position: fixed !important;
  inset: 12px !important;
  z-index: 9999 !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: hidden !important;

  display: flex !important;
  flex-direction: column !important;
}

/* Main panel fills card */
.card.card-fullscreen .hg-panel {
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  border-radius: 24px;

  display: flex;
  flex-direction: column;
}

/* Let common inner wrappers size naturally */
.card.card-fullscreen .card-content,
.card.card-fullscreen .card-inner {
  height: auto !important;
  min-height: 0;
}
