/* Product-specific styles. Shared wildfire summary and time-window styles are in wildfire-product-context.css. */

/* =========================================================
   Wildfire Satellite Page Ã¢â‚¬â€ Minimal Layout
   ========================================================= */

.satellite-page {
  --satellite-text: #263238;
  --satellite-muted: #6b747b;
  --satellite-border: #dfe4e7;
  --satellite-soft: #f7f8f9;
  --satellite-stage: #252b30;
  color: var(--satellite-text);
}

.satellite-page .btn,
.satellite-viewer-modal .btn {
  border-radius: 0.45rem;
}


.satellite-page .btn:focus-visible,
.satellite-page .form-select:focus-visible,
.satellite-page .form-range:focus-visible,
.satellite-viewer-modal .btn:focus-visible,
.satellite-viewer-modal .form-range:focus-visible {
  outline: 3px solid rgba(var(--bs-primary-rgb), 0.18);
  outline-offset: 2px;
  box-shadow: none;
}

/* Compact date toolbar */

.satellite-toolbar {
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--satellite-border);
  border-radius: 0.65rem;
}

.satellite-toolbar-heading {
  margin-bottom: 0.9rem;
}

.satellite-toolbar-heading h2 {
  font-weight: 650;
}

.satellite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  font-size: 0.8rem;
  color: var(--satellite-muted);
}

.satellite-meta span:not(:last-child)::after {
  content: "\2022";
  margin-left: 0.9rem;
  color: #b2b9bd;
}

.satellite-date-form .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--satellite-muted);
}

.satellite-date-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  gap: 0.5rem;
  align-items: stretch;
}

.satellite-date-row .form-select,
.satellite-date-row .btn {
  min-height: 40px;
}

.satellite-date-buttons {
  display: inline-flex;
}

.satellite-date-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
}

.satellite-selected-date {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--satellite-muted);
}

.satellite-empty-inline {
  padding: 0.75rem;
  font-size: 0.9rem;
  color: var(--satellite-muted);
  background: var(--satellite-soft);
  border-radius: 0.45rem;
}

/* Simple product tabs */

.satellite-product-tabs {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--satellite-border);
}

.satellite-product-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.1rem;
  font-weight: 600;
  color: var(--satellite-muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.satellite-product-tabs .nav-link:hover:not(:disabled) {
  color: var(--satellite-text);
}

.satellite-product-tabs .nav-link.active {
  color: var(--bs-primary);
  background: transparent;
  border-bottom-color: var(--bs-primary);
}

.satellite-product-tabs .nav-link:disabled {
  opacity: 0.42;
}

.satellite-product-tabs .badge {
  padding: 0.2rem 0.42rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: inherit;
  background: #edf1f3;
}

.satellite-tab-content {
  padding-top: 1rem;
}

/* Main viewer */

.satellite-viewer-card {
  /* Bootstrap row/column classes control the 6 + 3 layout inside the main col-md-9 area. */
  align-items: flex-start;
}

.satellite-image-column {
  min-width: 0;
}

.satellite-preview-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--satellite-stage);
  border-radius: 0.55rem;
}

.satellite-preview-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.satellite-preview-overlay {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  left: 0.65rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.73rem;
  color: #fff;
  background: rgba(15, 19, 22, 0.7);
  border-radius: 0.35rem;
}

.satellite-enlarge-button {
  display: block;
  margin: 0.65rem auto 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

.satellite-controls-card {
  padding-left: 1.1rem;
  border-left: 1px solid var(--satellite-border);
}

.satellite-controls-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.satellite-frame-count {
  font-size: 0.72rem;
  color: var(--satellite-muted);
}

.satellite-time-slider {
  margin-bottom: 0.7rem;
  accent-color: var(--bs-primary);
}

.satellite-playback-buttons {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.satellite-playback-buttons .btn {
  min-height: 38px;
  padding: 0.3rem 0.45rem;
}

.satellite-main-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-weight: 600;
}

.satellite-legend,
.satellite-temperature-key {
  padding-top: 0.8rem;
  margin-top: 0.8rem;
  border-top: 1px solid var(--satellite-border);
}

.satellite-legend h3,
.satellite-temperature-key h3 {
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
}

.satellite-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  color: var(--satellite-muted);
}

.legend-symbol {
  display: inline-block;
  flex: 0 0 auto;
}

.legend-wildfire {
  width: 0.65rem;
  height: 0.65rem;
  background: #f05a28;
  border: 1px solid #ffdd57;
  border-radius: 50%;
}

.legend-hms-fire {
  width: 0.6rem;
  height: 0.6rem;
  background: #ffa500;
  border-radius: 50%;
}

.legend-smoke {
  width: 1rem;
  border-top: 2px solid #ff5733;
}

.satellite-colorbar {
  width: 100%;
  max-width: 280px;
}

.satellite-key-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem 0.55rem;
  margin-top: 0.55rem;
  font-size: 0.68rem;
  color: var(--satellite-muted);
}

.satellite-empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--satellite-muted);
  background: var(--satellite-soft);
  border: 1px solid var(--satellite-border);
  border-radius: 0.55rem;
}

.satellite-empty-state > i {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.satellite-image-load-error {
  min-height: 220px;
  opacity: 0.25;
  filter: grayscale(1);
}

/* Enlarged animation modal Ã¢â‚¬â€ aligned with map-satellite.css */

.modal-backdrop.show {
  opacity: 1;
  background-color: #2f3338;
}

.satellite-viewer-modal .modal-xl {
  max-width: 98vw;
}

.satellite-modal-content {
  overflow: hidden;
  background: #f4f5f7;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
}

.satellite-modal-header {
  padding: 0.75rem 1rem;
  color: #343a40;
  background: #f7f8fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.satellite-modal-header .text-muted {
  color: #6c757d !important;
}

.satellite-modal-header .btn-close {
  filter: none;
}

.satellite-modal-body {
  padding: 1rem;
  background: #d9dde2;
}

.satellite-modal-stage {
  position: relative;
}

/*
  Keep this as a normal block scroll container. Flex-centering can make the
  far-left side of a zoomed image unreachable.
*/
.satellite-modal-image-wrapper {
  display: block;
  width: 100%;
  height: min(72vh, 780px);
  padding: 0.75rem 6.25rem 0.75rem 0.75rem;
  overflow: auto;
  text-align: center;
  background: #4a4f55;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 0.85rem;
}

.satellite-modal-image {
  display: block;
  width: 100%;
  max-width: none !important;
  height: auto;
  margin-right: auto;
  margin-left: auto;
  background: #fff;
  border-radius: 0.45rem;
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.25);
}

.satellite-side-controls {
  position: absolute;
  top: 50%;
  right: 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 74px;
  min-height: 360px;
  max-height: 88%;
  padding: 0.65rem 0.5rem;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.22);
  transform: translateY(-50%);
  backdrop-filter: blur(6px);
}

.satellite-round-btn,
.satellite-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #343a40;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  box-shadow: 0 0.15rem 0.45rem rgba(0, 0, 0, 0.12);
}

.satellite-round-btn:hover:not(:disabled),
.satellite-play-btn:hover:not(:disabled) {
  background: #f1f3f5;
}

.satellite-round-btn i,
.satellite-play-btn i {
  font-size: 1rem;
  line-height: 1;
}

.satellite-play-btn {
  margin-top: 0.25rem;
  color: #ffffff;
  background: #0d6efd;
  border-color: #0d6efd;
}

.satellite-play-btn:hover:not(:disabled) {
  color: #ffffff;
  background: #0b5ed7;
  border-color: #0b5ed7;
}

.satellite-side-label {
  padding: 0.18rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #495057;
  text-align: center;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
}

.satellite-side-divider {
  width: 42px;
  height: 1px;
  margin: 0.15rem 0;
  background: rgba(0, 0, 0, 0.12);
}

.satellite-frame-label {
  max-width: 64px;
  font-size: 0.68rem;
  line-height: 1.1;
  color: #6c757d;
  text-align: center;
}

.satellite-modal-timestamp {
  max-width: 64px;
  font-size: 0.62rem;
  line-height: 1.15;
  color: #6c757d;
  text-align: center;
}

.satellite-vertical-slider {
  width: 80px;
  height: 26px;
  transform: rotate(-90deg);
  margin: 1.5rem 0;
  cursor: pointer;
  accent-color: var(--bs-primary);
}

.satellite-modal-key {
  padding: 0.65rem 0.75rem;
  margin-top: 0.6rem;
  background: #fff;
  border-radius: 0.45rem;
}


/* Responsive */

@media (max-width: 991.98px) {
  .satellite-controls-card {
    padding-top: 1rem;
    padding-left: 0;
    border-top: 1px solid var(--satellite-border);
    border-left: 0;
  }
}

@media (max-width: 767.98px) {
  .satellite-date-row {
    grid-template-columns: 1fr auto;
  }

  .satellite-date-buttons {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .satellite-preview-stage {
    min-height: 220px;
  }

  .satellite-preview-overlay {
    position: static;
    border-radius: 0;
  }

  .satellite-modal-body {
    padding: 0.75rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .satellite-modal-stage {
    display: flex;
    flex-direction: column;
  }

  .satellite-modal-image-wrapper {
    height: 52vh;
    padding: 0.75rem;
    flex-shrink: 0;
  }

  .satellite-side-controls {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    min-height: auto;
    max-height: none;
    margin-top: 0.75rem;
    transform: none;
    flex-shrink: 0;
  }

  .satellite-side-divider {
    width: 1px;
    height: 30px;
  }

  .satellite-frame-label,
  .satellite-modal-timestamp {
    max-width: none;
  }

  .satellite-vertical-slider {
    width: 70px;
    margin: 0;
    transform: none;
  }
}

@media (max-width: 479.98px) {
  .satellite-toolbar {
    padding: 0.8rem;
  }

  .satellite-meta span:not(:last-child)::after {
    display: none;
  }

  .satellite-meta {
    flex-direction: column;
    gap: 0.15rem;
  }

  .satellite-date-row {
    grid-template-columns: 1fr;
  }

  .satellite-date-row .btn,
  .satellite-date-buttons {
    width: 100%;
  }

  .satellite-date-buttons .btn {
    flex: 1;
  }

  .satellite-product-tabs {
    gap: 0.8rem;
    overflow-x: auto;
  }

  .satellite-key-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .satellite-page *,
  .satellite-viewer-modal * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}



