// English comments by default for Drupal.org/community code style.
@use "../abstracts/variables" as *;
@use "../abstracts/mixins" as *;

.no-activity-overview {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: $spacing-lg;
}

.no-activity-overview__panel,
.no-activity-overview__summary {
  display: flex;
  flex-direction: column;
  gap: $spacing-lg;
}

.no-activity-overview__panel-view,
.no-activity-overview__summary-view {
  display: none;
}

.no-activity-overview__panel-view:not([hidden]),
.no-activity-overview__summary-view:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: $spacing-lg;
}

.no-activity-overview__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: $spacing-md;
}

.no-activity-overview__header-copy {
  display: flex;
  flex-direction: column;
  gap: $spacing-xs;
}

.no-activity-overview__title {
  color: $color-text-strong;
  font-size: $font-size-lg;
  font-weight: 600;
}

.no-activity-overview__description {
  color: $color-text-muted;
  font-size: $font-size-sm;
  line-height: 1.5;
}

.no-activity-overview__toggle {
  display: inline-flex;
  align-items: center;
  padding: $spacing-xs $spacing-sm;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  color: $color-text-soft;
  border: 1px solid $color-border;
  border-radius: $radius-pill;
  background-color: $color-surface-soft;
  font-size: $font-size-xs;
  gap: $spacing-xs;
}

.no-activity-overview__toggle:hover {
  border-color: $color-border-strong;
  background-color: $color-surface-muted;
}

.no-activity-overview__summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: $spacing-md;
}

.no-activity-overview__summary-card {
  display: flex;
  flex-direction: column;
  padding: $spacing-md;
  border: 1px solid $color-border-soft;
  border-radius: $radius-card;
  background-color: $color-card-bg;
  gap: $spacing-xs;
}

.no-activity-overview__summary-label {
  color: $color-text-muted;
  font-size: $font-size-xs;
}

.no-activity-overview__summary-value {
  color: $color-text;
  font-size: $font-size-lg;
  font-weight: 600;
}

.no-activity-overview__summary-help,
.no-activity-overview__empty-copy,
.no-activity-overview__summary-copy {
  color: $color-text-soft;
  font-size: $font-size-xs;
}

.no-activity-overview__empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: $spacing-sm;
  padding: $spacing-lg;
  text-align: center;
  border: 1px dashed $color-border;
  border-radius: $radius-card;
  background-color: $color-surface-muted;
}

.no-activity-overview__empty-title {
  color: $color-text;
  font-size: $font-size-md;
  font-weight: 500;
}

/* Responsive */

@media (max-width: 1100px) {
  .no-activity-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .no-activity-overview__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .no-activity-overview__toggle {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .no-activity-overview__summary-grid {
    grid-template-columns: 1fr;
  }
}
