/* ----- BM Simple Poster – social style ----- */
:root{
  --bmsp-bg:      #FFFEFA;
  --bmsp-card:    #ffffff;
  --bmsp-ink:     #1f2227;
  --bmsp-muted:   #7a7a86;
  --bmsp-purple1: #9c3cff;
  --bmsp-purple2: #663cff;
  --bmsp-border:  #e6e6ef;
  --bmsp-shadow:  6px 24px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05);
  --bmsp-radius:  14px;
}

.bmsp-wrap{ max-width: 880px; margin: 28px auto; padding: 12px 24px; position:relative; }
.bmsp-card{
  background: var(--bmsp-card);
  color: var(--bmsp-ink);
  border: 1px solid var(--bmsp-border);
  border-radius: var(--bmsp-radius);
  box-shadow: var(--bmsp-shadow);
  padding: 20px 18px;
}
.bmsp-center{ text-align:center; }
.bmsp-btn{ background: #111; color:#fff; padding:10px 14px; border-radius:10px; text-decoration:none; }

.bmsp-title{ margin: 0 0 12px; font-size: 22px; font-weight: 800; line-height:1.2; }

.bmsp-label{ display:block; font-size:13px; font-weight:700; margin:14px 2px 6px; }
.bmsp-tip, .bmsp-legal{ font-size:12px; color: var(--bmsp-muted); margin: 4px 2px 0; }

.bmsp-input, .bmsp-textarea{
  width: 100%;
  display: block;
  border: 1px solid var(--bmsp-border);
  border-radius: 12px;
  background: #fff;
  color: var(--bmsp-ink);
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.bmsp-input:focus, .bmsp-textarea:focus{ border-color: var(--bmsp-purple1); box-shadow: 0 0 0 3px rgba(122,60,255,.14); }
.bmsp-textarea{ min-height: 170px; resize: vertical; line-height: 1.55; }

/* two-column media inputs */
.bmsp-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
@media (max-width: 720px){ .bmsp-grid{ grid-template-columns: 1fr; } }
.bmsp-file{ padding: 10px; background:#fff; border:1px solid var(--bmsp-border); border-radius:10px; width:100%; }

/* Publish button */
.bmsp-publish{
  margin-top: 14px;
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--bmsp-purple1), var(--bmsp-purple2));
  box-shadow: 0 6px 18px rgba(122,60,255,.25), 0 2px 8px rgba(0,0,0,.08);
  transition: transform .075s ease, box-shadow .15s ease, filter .15s ease;
}
.bmsp-publish:hover  { filter: brightness(1.05); box-shadow: 0 10px 24px rgba(122,60,255,.28); }
.bmsp-publish:active { transform: translateY(1px); }
.bmsp-publish:disabled{ opacity:.6; cursor:not-allowed; }

/* Alerts */
.bmsp-alert{
  background:#fff4e8; border:1px solid #ffd9b3; color:#6b3d00;
  border-radius:10px; padding:10px 12px; margin:0 0 12px;
}
.bmsp-alert a{ color:#6b3d00; text-decoration:underline; }
.bmsp-error{ background:#ffeaea; border-color:#ffb3b3; color:#661f1f; }

/* Hashtag suggestions (positioned under input) */
.bmsp-tags-wrap{ position: relative; }
.bmsp-tag-suggest{
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 8px);
  background:#fff;
  border:1px solid var(--bmsp-border);
  border-radius: 12px;
  box-shadow: var(--bmsp-shadow);
  overflow: hidden;
  max-height: 300px;
  display: none;
  z-index: 9999;
}
.bmsp-tag-suggest.open{ display:block; }

.bmsp-suggest-item{
  display:flex; align-items:center; gap:10px;
  width:100%; text-align:left; background:#fff; border:0; cursor:pointer;
  padding: 10px 12px; font-size:14px; color: var(--bmsp-ink);
  border-bottom: 1px dashed rgba(0,0,0,.04);
}
.bmsp-suggest-item:last-child{ border-bottom: none; }
.bmsp-suggest-item:hover, .bmsp-suggest-item.is-active{ background:#f6f2ff; }
.bmsp-suggest-tag{ font-weight:800; color: var(--bmsp-purple1); }
.bmsp-suggest-count{ margin-left:auto; font-size:12px; color: var(--bmsp-muted); }
.bmsp-suggest-item.is-empty{ color: var(--bmsp-muted); cursor: default; }

/* Bright page background only where used */
body.bmsp-bright{ background: var(--bmsp-bg) !important; }

.bmsp-hashtag {
  color: var(--bmsp-purple1, #9c3cff);
  font-weight: 700;
  text-decoration: none;
}
.bmsp-hashtag:hover { text-decoration: underline; }
