/* Inbound calling demo pages. Loaded after demo-payor.css: the recording page is
   the payor layout with these additions, and the moments page builds on the same
   tokens (#07301e deep green, #b8f5a0 highlight, #f0f2ed field). */

/* Shared ---------------------------------------------------------------- */

.inbound-demo-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}

.inbound-demo-switch__label {
  color: #415b50;
}

.inbound-demo-switch__link {
  color: #07301e;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #b8f5a0;
  padding-bottom: 1px;
}

.inbound-demo-switch__link:hover {
  border-bottom-color: #07301e;
}

.inbound-disclosure {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7f76;
  margin: 12px 20px 20px;
}

.inbound-outcome {
  display: inline-flex;
  align-items: center;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 3px 10px;
}

.inbound-outcome--good {
  background: #dff8d4;
  color: #0a5a2a;
}

.inbound-outcome--warn {
  background: #fff1cc;
  color: #7a4d00;
}

.inbound-outcome--alert {
  background: #fde2e1;
  color: #9b1c1c;
}

.inbound-badge--pending {
  background: #fff1cc;
  color: #7a4d00;
}

.inbound-recap {
  padding: 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #113224;
}

.inbound-recap p {
  margin: 0 0 10px;
}

.inbound-recap__next {
  color: #415b50;
}

.inbound-recap__next strong {
  color: #07301e;
  margin-right: 6px;
}

/* Play button (the moments page reuses it) ---------------------------------- */

.live-play {
  flex: none;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #b8f5a0;
  color: #07301e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.live-play__icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.live-play__icon--pause {
  display: none;
}

.live-play.is-playing .live-play__icon--play {
  display: none;
}

.live-play.is-playing .live-play__icon--pause {
  display: block;
}

/* Moments page ------------------------------------------------------------ */

.moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.moment-card {
  background: #fff;
  border: 1px solid #1132241a;
  border-radius: 16px;
  box-shadow: 0 8px 32px #11322412;
  padding: 20px;
  font-family: "DM Sans", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.moment-card.is-playing {
  box-shadow: 0 12px 40px #11322426, 0 0 0 2px #b8f5a0;
  transform: translateY(-2px);
}

.moment-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.moment-card__length {
  font-size: 12px;
  color: #415b50;
  font-variant-numeric: tabular-nums;
}

.moment-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #07301e;
  margin: 0;
  line-height: 1.3;
}

.moment-card__summary {
  font-size: 14px;
  line-height: 1.5;
  color: #415b50;
  margin: 0;
}

.moment-card__lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.moment-line {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f0f2ed;
  color: #113224;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.moment-line--caller {
  background: #e8f7df;
}

.moment-line.is-active {
  background: #07301e;
  color: #fff;
}

.moment-line__who {
  display: block;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
  margin-bottom: 2px;
}

.moment-line__text {
  font-size: 14px;
  line-height: 1.45;
}

.moment-card__player {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.moment-play {
  width: 44px;
  height: 44px;
  background: #07301e;
  color: #fff;
}

.moment-card__bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #f0f2ed;
  overflow: hidden;
}

.moment-card__fill {
  width: 0;
  height: 100%;
  background: #07301e;
  transition: width 0.2s linear;
}

.moment-card__clock {
  font-size: 12px;
  color: #415b50;
  font-variant-numeric: tabular-nums;
}

.moments-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 40px 0 8px;
}

.moments-principle {
  background: #07301e;
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  font-family: "DM Sans", sans-serif;
}

.moments-principle h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #b8f5a0;
}

.moments-principle p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: #d4e3db;
}
