@use '../variables' as v;
@use '../mixins' as m;

// Campaign name cell
.campaign-name-cell {
  h4 {
    font-size: v.$font-size-sm;
    font-weight: 600;
    color: v.$gray-800;
    margin-bottom: 2px;
  }

  p {
    font-size: v.$font-size-xs;
    color: v.$gray-400;
  }
}

// Sent count cell
.sent-cell {
  &-count {
    font-weight: 600;
    color: v.$gray-800;
  }

  &-total {
    font-size: v.$font-size-xs;
    color: v.$gray-400;
  }
}

// Campaign wizard layout
.wizard-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px;
  align-items: start;

  @include m.max-lg { grid-template-columns: 1fr; }
}

.wizard-form-card {
  @include m.card-base;
  overflow: visible;
}

.wizard-sidebar-card {
  @include m.card-base;
  padding: 18px;
  position: sticky;
  top: calc(v.$topbar-height + 20px);
}

.review-row {
  @include m.flex-between;
  padding: 10px 0;
  border-bottom: 1px solid v.$border-color;
  font-size: v.$font-size-sm;

  &:last-child { border-bottom: none; }

  &-label { color: v.$gray-500; font-weight: 500; }
  &-value { color: v.$gray-800; font-weight: 500; }
}

// Analytics
.analytics-hero {
  @include m.card-base;
  padding: 24px 28px;
  margin-bottom: 22px;
  @include m.flex-between;
  gap: 20px;
  flex-wrap: wrap;

  &-info {
    h2 { font-size: v.$font-size-xl; font-weight: 700; color: v.$gray-900; margin-bottom: 4px; }
    p  { font-size: v.$font-size-sm; color: v.$gray-500; }
  }

  &-badges {
    @include m.flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
}

.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;

  @include m.max-lg { grid-template-columns: repeat(2, 1fr); }
  @include m.max-sm { grid-template-columns: 1fr; }
}

.analytics-metric {
  @include m.card-base;
  padding: 18px 20px;
  text-align: center;

  &-label {
    font-size: v.$font-size-xs;
    color: v.$gray-400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    margin-bottom: 8px;
  }

  &-value {
    font-size: v.$font-size-3xl;
    font-weight: 700;
    color: v.$gray-900;
    letter-spacing: -0.02em;
  }

  &-sub {
    font-size: v.$font-size-xs;
    color: v.$gray-400;
    margin-top: 4px;
  }
}
