/* Social Media Marketing illustration: social planner workspace (.sm). Built on the shared .vz system. */
.sm__body {
  display: grid;
  gap: 0.7rem;
}
.sm__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.sm__range {
  font-size: 0.6875rem;
  line-height: 1.2em;
  font-weight: 700;
  color: var(--vz-text-blue);
}

/* Week view */
.sm__week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}
.sm__day {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  min-width: 0;
}
.sm__dname {
  text-align: center;
  text-transform: uppercase;
  font-size: 0.5625rem;
  line-height: 1.2em;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6b7889;
}
.sm__slot,
.sm__post {
  display: block;
  height: 3.6rem;
  border-radius: 0.6rem;
}
.sm__slot {
  border: 1.5px dashed var(--vz-line);
}
.sm__post {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
  border: 1px solid var(--vz-line);
  background-color: #fff;
  padding: 0.25rem;
  box-sizing: border-box;
}
.sm__post--scheduled {
  border-color: rgba(67, 183, 255, 0.75);
}
.sm__post--published {
  border-color: var(--primary);
}
.sm__post--draft {
  border-style: dashed;
  background-color: #f7f9fb;
}
.sm__thumb {
  display: block;
  flex: 1;
  border-radius: 0.4rem;
}
.sm__thumb--a {
  background: linear-gradient(145deg, #12406e, #001f3f);
}
.sm__thumb--b {
  background: linear-gradient(145deg, #bfe5fb, #43b7ff);
}
.sm__thumb--c {
  background: linear-gradient(145deg, #43b7ff, #12406e);
}
.sm__thumb--d {
  background: linear-gradient(145deg, #eef2f6, #d3dce6);
}
.sm__post small {
  font-size: 0.5625rem;
  line-height: 1em;
  font-weight: 700;
  text-align: center;
  color: #5b6b7d;
}

/* Plan to publish workflow */
.sm__flow {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.1rem 0 0;
  padding: 0;
  list-style: none;
}
.sm__flow li {
  position: relative;
  margin: 0;
  border: 1px solid var(--vz-line);
  border-radius: 3.75rem;
  background-color: #f7f9fb;
  padding: 0.28rem 0.7rem;
  font-size: 0.6875rem;
  line-height: 1.2em;
  font-weight: 600;
  color: #5b6b7d;
}
.sm__flow li + li {
  margin-left: 0.55rem;
}
.sm__flow li + li:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.5rem;
  border-top: 2px dashed rgba(67, 183, 255, 0.6);
  width: 0.45rem;
}
.sm__flow .is-done {
  border-color: transparent;
  background-color: rgba(67, 183, 255, 0.2);
  color: var(--vz-text-blue);
}
.sm__flow .is-now {
  border-color: transparent;
  background-color: var(--primary);
  color: #fff;
}

/* Performance overview (bars only, no figures) */
.sm__perf {
  padding: 0.85rem 0.95rem 0.95rem;
}
.sm__perfhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.sm__perf ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}
.sm__perf li {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.2em;
  font-weight: 600;
  color: var(--headerColor);
}
.sm__meter {
  position: relative;
  display: block;
  margin-top: 0.3rem;
  border-radius: 1rem;
  background-color: var(--vz-bar);
  height: 0.5rem;
}
.sm__meter b {
  display: block;
  border-radius: 1rem;
  background: linear-gradient(90deg, var(--secondary), rgba(67, 183, 255, 0.55));
  height: 100%;
}
.sm__w78 {
  width: 78%;
}
.sm__w54 {
  width: 54%;
}
.sm__w36 {
  width: 36%;
}

/* Mobile post preview with engagement indicators */
.sm__phone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow: hidden;
  border: 4px solid var(--primary);
  border-radius: 1.4rem;
  padding: 1.05rem 0.55rem 0.7rem;
  width: 9.75rem;
  box-sizing: border-box;
}
.sm__notch {
  position: absolute;
  top: 0.3rem;
  left: 50%;
  border-radius: 1rem;
  background-color: var(--primary);
  height: 0.25rem;
  width: 1.8rem;
  transform: translateX(-50%);
}
.sm__who {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sm__who i {
  display: block;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #43b7ff, #12406e);
  height: 1.2rem;
  width: 1.2rem;
}
.sm__who .vz__bar {
  width: 3rem;
  height: 0.3rem;
}
.sm__image {
  position: relative;
  overflow: hidden;
  border-radius: 0.6rem;
  background: linear-gradient(145deg, #12406e, #001f3f);
  aspect-ratio: 1;
}
.sm__image:before {
  content: "";
  position: absolute;
  top: 16%;
  left: 14%;
  border-radius: 0.8rem;
  background: linear-gradient(145deg, #bfe5fb, #43b7ff);
  height: 44%;
  width: 44%;
  transform: rotate(-8deg);
}
.sm__image b {
  position: absolute;
  right: 12%;
  bottom: 14%;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  height: 34%;
  width: 34%;
}
.sm__react {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--primary);
}
.sm__react span {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.625rem;
  line-height: 1em;
  font-weight: 700;
}
.sm__react svg {
  height: 0.85rem;
  width: 0.85rem;
}
.sm__react span:first-child svg {
  color: var(--secondary);
  fill: rgba(67, 183, 255, 0.28);
}
.sm__phone .vz__bar {
  height: 0.3rem;
}
@media only screen and (min-width: 64rem) {
  .sm .vz__body {
    padding-bottom: 3.8rem;
  }
  .sm .vz__stage {
    padding-bottom: 7rem;
  }
  .sm__perf {
    bottom: 0;
    left: -1.5rem;
    width: 14.5rem;
  }
  .sm__phone {
    position: absolute;
    right: -1.5rem;
    bottom: 0;
    z-index: 3;
  }
}

/* Phones and tablets: the performance card and phone sit side by side over the planner's lower edge. */
@media only screen and (max-width: 63.999rem) {
  .sm .vz__stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: start;
    gap: 0 0.65rem;
    padding: 0 0.25rem;
  }
  .sm .vz__card {
    grid-column: 1 / -1;
  }
  .sm .vz__body {
    padding-bottom: 1.6rem;
  }
  .sm__perf,
  .sm__phone {
    position: relative;
    z-index: 2;
    margin-top: -0.9rem;
  }
  .sm__perf {
    margin-left: 0.4rem;
    padding: 0.7rem 0.75rem 0.8rem;
  }
  .sm__phone {
    justify-self: end;
    margin-right: 0.4rem;
    max-width: 11.5rem;
    width: 100%;
  }
  .sm__perf .vz__badge {
    display: none;
  }
}
@media only screen and (max-width: 30rem) {
  .sm__body {
    gap: 0.55rem;
  }
  .sm .vz__body {
    padding: 0.8rem 0.8rem 1.6rem;
  }
  .sm__week {
    gap: 0.3rem;
  }
  .sm__slot,
  .sm__post {
    height: 2.9rem;
  }
  .sm__post small {
    font-size: 0.5rem;
  }
  .sm__flow li {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
  }
  .sm__flow li + li {
    margin-left: 0.45rem;
  }
  .sm__flow li + li:before {
    left: -0.42rem;
    width: 0.35rem;
  }
}

/* Dark mode */
html.dark-mode .sm__dname,
html.dark-mode .sm__post small {
  color: rgba(255, 255, 255, 0.68);
}
html.dark-mode .sm__post {
  border-color: rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.04);
}
html.dark-mode .sm__post--scheduled {
  border-color: rgba(67, 183, 255, 0.7);
}
html.dark-mode .sm__post--published {
  border-color: #fff;
}
html.dark-mode .sm__post--draft {
  background-color: transparent;
}
html.dark-mode .sm__flow li {
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}
html.dark-mode .sm__flow .is-done {
  background-color: rgba(67, 183, 255, 0.2);
  color: var(--secondary);
}
html.dark-mode .sm__flow .is-now {
  background-color: var(--secondary);
  color: var(--primary);
}
html.dark-mode .sm__perf li,
html.dark-mode .sm__react {
  color: #fff;
}
html.dark-mode .sm__phone {
  border-color: #35495a;
}
html.dark-mode .sm__notch {
  background-color: #35495a;
}
