/*
 * Pulse
 * Module: pulse.css
 * Prototype: v0.2.4
 *
 * DJs Mobiles Website Integration
 */

/* Desktop / shared Pulse card */
#pulse-container:empty,
#pulse-mobile-card:empty {
  display: none;
}

.pulse-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  border: 1px solid var(--border, #d7e3ef);
  border-radius: 22px;
  box-shadow: var(--shadow-sm, 0 10px 30px rgba(15, 35, 58, 0.06));
  color: var(--text, #17202b);
  overflow: hidden;
}

.pulse-card__header {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.pulse-card--locked .pulse-card__header {
  cursor: default;
}

.pulse-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--primary, #0f4c81);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-icon {
  display: block;
  flex: 0 0 auto;
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  object-fit: contain;
}

.pulse-card__chevron,
.pulse-card__status {
  flex: 0 0 auto;
  color: var(--primary, #0f4c81);
  font-size: 14px;
  font-weight: 900;
}

.pulse-card__status {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-soft, #eaf3fb);
  border: 1px solid #d4e5f7;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-card__body {
  padding: 0 16px 18px;
}

.pulse-card__eyebrow {
  margin: 0 0 10px;
  color: var(--primary, #0f4c81);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pulse-card__body h2 {
  margin: 0 0 8px;
  color: var(--text, #17202b);
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.pulse-card__body p {
  margin: 0;
  color: var(--text-soft, #5c6b7c);
  font-size: 14px;
  line-height: 1.65;
}

.pulse-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pulse-card__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border, #d7e3ef);
  color: var(--text-soft, #5c6b7c);
  font-size: 11px;
  font-weight: 700;
}

.pulse-card__stat span {
  color: var(--primary, #0f4c81);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-card__stat strong {
  color: var(--text, #17202b);
  font-weight: 800;
}

/* Mobile mounts are hidden by default. */
#pulse-mobile-button,
#pulse-mobile-card {
  display: none;
}

/* Mobile Pulse trigger button */
.pulse-mobile-trigger {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border, #d7e3ef);
  background: #fff;
  box-shadow: 0 6px 14px rgba(15, 35, 58, 0.06);
  color: var(--primary, #0f4c81);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.pulse-mobile-trigger:hover {
  background: var(--primary-soft, #eaf3fb);
}

/* Mobile layout */
@media (max-width: 768px) {
  #pulse-container {
    display: none !important;
  }

  #pulse-mobile-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 8px;
  }

  #pulse-mobile-card {
    display: block;
    margin: 0 12px 16px;
  }

  #pulse-mobile-card:empty {
    display: none;
  }

  #pulse-mobile-card .pulse-card {
    border-radius: 18px;
  }

  #pulse-mobile-card .pulse-card__body {
    padding: 0 16px 18px;
  }
}

/* Desktop layout */
@media (min-width: 769px) {
  #pulse-mobile-button,
  #pulse-mobile-card {
    display: none !important;
  }
}
