/* =========================================
   Lumyro v1.1
   Learning Intelligence
========================================= */

.intelligence-grid {
  display: grid;

  grid-template-columns:
    1.35fr .65fr;

  gap: 18px;

  margin-bottom: 18px;
}


/* ACTIVITY GRAPH */

.activity-chart {
  height: 180px;

  display: grid;

  grid-template-columns:
    repeat(7, 1fr);

  gap: 12px;

  align-items: end;

  padding-top: 18px;
}

.activity-day {
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;

  gap: 8px;
}

.activity-bar-wrap {
  width: 100%;
  height: 125px;

  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.activity-bar {
  width: min(
    34px,
    70%
  );

  min-height: 4px;

  border-radius:
    7px 7px 4px 4px;

  background:
    #1b1b1e;

  transition:
    height .35s ease;
}

.activity-bar.empty {
  background:
    #e7e7e4;
}

.activity-day-label {
  color:
    var(--text-faint);

  font-size: 9px;

  text-transform:
    capitalize;
}

.activity-day-count {
  font-size: 9px;

  color:
    var(--text-soft);
}

.streak-badge {
  padding:
    6px 9px;

  border-radius: 20px;

  background:
    var(--orange-bg);

  color:
    var(--orange);

  font-size: 9px;
  font-weight: 700;
}


/* INTELLIGENCE STATS */

.intelligence-stat-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 10px;
}

.intelligence-stat {
  min-height: 88px;

  padding: 14px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border-radius: 12px;

  background:
    var(--surface-soft);

  border:
    1px solid
    #eeeeeb;
}

.intelligence-stat span {
  color:
    var(--text-faint);

  font-size: 9px;
}

.intelligence-stat strong {
  font-size: 23px;

  letter-spacing:
    -.03em;
}


/* ONBOARDING */

.onboarding-card {
  margin-bottom: 18px;

  padding: 20px 22px;

  background:
    #f0f0ed;

  border:
    1px solid
    #e3e3df;

  border-radius:
    var(--radius-lg);
}

.onboarding-heading {
  display: flex;

  justify-content:
    space-between;

  align-items: flex-start;

  gap: 20px;

  margin-bottom: 17px;
}

.onboarding-heading h3 {
  margin: 5px 0 0;

  font-size: 18px;
}

.onboarding-steps {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 10px;
}

.onboarding-step {
  display: grid;

  grid-template-columns:
    30px 1fr;

  gap: 10px;

  align-items: start;

  padding: 12px;

  border-radius: 11px;

  background:
    rgba(255,255,255,.62);
}

.onboarding-check {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  background: white;

  border:
    1px solid
    var(--border);

  font-size: 9px;
  font-weight: 750;
}

.onboarding-step.completed {
  opacity: .58;
}

.onboarding-step.completed
.onboarding-check {
  color: white;

  background:
    var(--green);

  border-color:
    var(--green);
}

.onboarding-step.completed
.onboarding-check::after {
  content:
    "✓";

  font-size: 11px;
}

.onboarding-step.completed
.onboarding-check {
  font-size: 0;
}

.onboarding-step strong,
.onboarding-step span {
  display: block;
}

.onboarding-step strong {
  font-size: 11px;
}

.onboarding-step span {
  margin-top: 3px;

  color:
    var(--text-faint);

  font-size: 9px;

  line-height: 1.4;
}


/* STUDY SEARCH */

.study-toolbar {
  display: flex;

  justify-content:
    space-between;

  gap: 10px;

  margin-bottom: 15px;
}

.study-search {
  flex: 1;

  max-width: 430px;

  height: 42px;

  display: flex;

  align-items: center;

  gap: 9px;

  padding:
    0 12px;

  background: white;

  border:
    1px solid
    var(--border);

  border-radius:
    11px;
}

.study-search span {
  color:
    var(--text-faint);

  font-size: 17px;
}

.study-search input {
  width: 100%;

  height: 100%;

  border: 0;
  outline: 0;

  background:
    transparent;

  color:
    var(--text);

  font-size: 12px;
}

.study-search input::placeholder {
  color:
    #aaa;
}

.subject-filter {
  min-width: 170px;

  padding:
    0 12px;

  border:
    1px solid
    var(--border);

  border-radius:
    11px;

  background: white;

  color:
    var(--text-soft);

  outline: none;

  font-size: 11px;
}


/* RECENT ACTIVITY */

.recent-activity-panel {
  margin-top: 18px;
}

.recent-activity-list {
  display: grid;
}

.activity-item {
  display: grid;

  grid-template-columns:
    36px 1fr auto;

  gap: 11px;

  align-items: center;

  min-height: 57px;

  border-bottom:
    1px solid
    #efefed;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-item-icon {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  background:
    var(--surface-soft);

  font-size: 10px;
  font-weight: 750;
}

.activity-item-copy {
  min-width: 0;
}

.activity-item-copy strong {
  display: block;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 11px;
}

.activity-item-copy span {
  display: block;

  margin-top: 3px;

  color:
    var(--text-faint);

  font-size: 9px;
}

.activity-item-result {
  font-size: 10px;
  font-weight: 700;

  color:
    var(--text-soft);
}

.activity-item-result.good {
  color:
    var(--green);
}

.activity-item-result.bad {
  color:
    var(--red);
}


/* SETTINGS DANGER */

.danger-zone {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 18px;

  margin-top: 24px;

  padding:
    15px;

  background:
    #fff7f7;

  border:
    1px solid
    #f3dddd;

  border-radius: 12px;
}

.danger-zone strong,
.danger-zone span {
  display: block;
}

.danger-zone strong {
  color:
    #822d2d;

  font-size: 11px;
}

.danger-zone span {
  max-width: 290px;

  margin-top: 4px;

  color:
    #a26b6b;

  font-size: 9px;
  line-height: 1.45;
}

.button-danger-soft {
  background:
    var(--red-bg);

  color:
    var(--red);

  border-color:
    #f2d3d3;
}


/* NO FILTER RESULTS */

.no-subject-results {
  grid-column:
    1 / -1;

  padding:
    45px;

  text-align: center;

  background:
    rgba(255,255,255,.6);

  border:
    1px dashed
    var(--border-strong);

  border-radius:
    var(--radius-lg);

  color:
    var(--text-soft);

  font-size: 12px;
}


/* RESPONSIVE */

@media (max-width: 900px) {

  .intelligence-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 700px) {

  .onboarding-steps {
    grid-template-columns: 1fr;
  }

  .study-toolbar {
    flex-direction: column;
  }

  .study-search,
  .subject-filter {
    width: 100%;
    max-width: none;
  }

  .subject-filter {
    min-height: 42px;
  }

  .activity-chart {
    gap: 5px;
  }

  .activity-item {
    grid-template-columns:
      34px 1fr;
  }

  .activity-item-result {
    grid-column: 2;
  }

  .danger-zone {
    align-items: flex-start;
    flex-direction: column;
  }

}
