/* Compass & Dove Social -> Alongside+ 24/7 International Media Network
 * Community 5-Vote Nomination UI (Post Action Bar Pill + Share Everywhere Panel/Modal Card)
 * Self-hosted Cormorant & Figtree only. Sunlit ivory, navy & gold palette.
 */

/* 1. Post Card Action Bar Pill */
.m508-mv-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 12px;
  border: 1px solid #DFC57E;
  background: linear-gradient(135deg, #FFFDF5 0%, #FFF4D4 100%);
  color: #5C3D02;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  font-size: 12.2px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.m508-mv-pill:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #FFF8E0 0%, #F7DF98 100%);
  border-color: #CFA23B;
  box-shadow: 0 3px 10px rgba(176, 132, 34, 0.18);
}

.m508-mv-pill svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.m508-mv-pill.is-voted {
  background: linear-gradient(135deg, #FEF0C2 0%, #F4D277 100%);
  border-color: #C79325;
  color: #2B1E02;
}

.m508-mv-pill.is-submitted {
  background: linear-gradient(135deg, #E8FAF0 0%, #D1F3DF 60%, #F7E8B5 100%);
  border-color: #2E9B63;
  color: #0D4B2B;
}

.m508-mv-pill.is-submitted:hover {
  filter: brightness(0.98);
}

.m508-mv-pill.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

.m508-mv-short-lbl {
  display: none;
}

.post-card .post-actions {
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .m508-mv-pill {
    padding: 6px 9px;
    font-size: 11.4px;
    gap: 4px;
  }
  .m508-mv-full-lbl {
    display: none;
  }
  .m508-mv-short-lbl {
    display: inline;
  }
}

/* 2. Share Everywhere Panel & Modal Nomination Card (shared class for #shareModal and #m508SplPanel) */
.m508-smv-card {
  margin: 10px 0 12px 0;
  padding: 13px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFDF7 0%, #F4F8FF 100%);
  border: 1.5px solid #DFC57E;
  box-shadow: 0 6px 18px rgba(14, 35, 71, 0.08);
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  text-align: left;
}

.m508-smv-card.is-submitted {
  background: linear-gradient(180deg, #F1FCF6 0%, #FFFDF4 100%);
  border-color: #39A36B;
}

.m508-smv-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.m508-smv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8E640B;
  margin-bottom: 2px;
}

.m508-smv-card.is-submitted .m508-smv-eyebrow {
  color: #0F6B3D;
}

.m508-smv-title {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  color: #0E2347;
}

.m508-smv-badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #0E2347;
  color: #FCE39A;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.m508-smv-card.is-submitted .m508-smv-badge {
  background: #0F6B3D;
  color: #FFFFFF;
}

.m508-smv-desc {
  margin: 0 0 10px 0;
  font-size: 12.4px;
  line-height: 1.42;
  color: #364766;
}

.m508-smv-progress-wrap {
  margin-bottom: 10px;
}

.m508-smv-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.6px;
  font-weight: 700;
  color: #1E3256;
  margin-bottom: 5px;
}

.m508-smv-bar-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: #E4ECF7;
  overflow: hidden;
  border: 1px solid #D3DFEF;
}

.m508-smv-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #D4A84B 0%, #F1C962 55%, #2EA66B 100%);
  transition: width 0.28s ease;
}

.m508-smv-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1.5px solid #C8992E;
  background: linear-gradient(135deg, #FCE7A6 0%, #E5B952 100%);
  color: #0E2347;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  font-size: 13.2px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}

.m508-smv-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.m508-smv-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(190, 142, 34, 0.28);
}

.m508-smv-btn.is-voted {
  background: linear-gradient(135deg, #0E2347 0%, #1B3B73 100%);
  border-color: #0E2347;
  color: #FCE7A6;
}

.m508-smv-btn.is-submitted {
  background: linear-gradient(135deg, #0F6B3D 0%, #178650 100%);
  border-color: #0F6B3D;
  color: #FFFFFF;
}

.m508-smv-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.m508-smv-status-note {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #E9F9F0;
  border: 1px solid #A4E0BF;
  color: #0D4B2B;
  font-size: 11.8px;
  font-weight: 700;
  display: none;
}

.m508-smv-status-note.show {
  display: block;
}

/* Composer subtle tip */
.m508-composer-mv-tip {
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: 10px;
  background: #FFFBF0;
  border: 1px solid #EAD79F;
  color: #5C4107;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* 3. Direct 24/7 Media Network Cross-Post Action (inside existing Share Everywhere card) */
.m508-smv-xpost-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #D6C38E;
}

.m508-smv-xpost-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.m508-smv-xpost-lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1A335C;
}

.m508-smv-rights-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.6px;
  font-weight: 800;
  background: #E8EEF7;
  color: #243A5E;
  white-space: nowrap;
}

.m508-smv-rights-pill.is-cleared {
  background: #E4F8EC;
  color: #0E5E36;
  border: 1px solid #96DBB4;
}

.m508-smv-rights-pill.is-review {
  background: #FFF6DC;
  color: #785004;
  border: 1px solid #E5C169;
}

.m508-smv-rights-pill.is-uncleared {
  background: #FDECEC;
  color: #8E1B1B;
  border: 1px solid #E9A6A6;
}

.m508-smv-xpost-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1.5px solid #163B70;
  background: linear-gradient(135deg, #0E2347 0%, #1C427D 100%);
  color: #FFFDF7;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  font-size: 12.8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}

.m508-smv-xpost-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.m508-smv-xpost-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 35, 71, 0.22);
}

.m508-smv-xpost-btn.is-xposted {
  background: linear-gradient(135deg, #0F6B3D 0%, #178650 100%);
  border-color: #0F6B3D;
  color: #FFFFFF;
}

.m508-smv-xpost-btn.is-held {
  background: linear-gradient(135deg, #7A1E1E 0%, #9E2B2B 100%);
  border-color: #7A1E1E;
  color: #FFF5F5;
}

.m508-smv-xpost-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.m508-smv-xpost-note {
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #F4F7FC;
  border: 1px solid #D4DFEF;
  color: #263B5E;
  font-size: 11.4px;
  line-height: 1.38;
  font-weight: 600;
  display: none;
}

.m508-smv-xpost-note.show {
  display: block;
}

.m508-smv-xpost-note.is-ok {
  background: #E9F9F0;
  border-color: #A4E0BF;
  color: #0D4B2B;
}

.m508-smv-xpost-note.is-warn {
  background: #FDF1F1;
  border-color: #EAB3B3;
  color: #7F1D1D;
}
