/* Share your story — modal & community cards */

.voc-voice-card--community::after {
  content: "Community";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0369a1;
  background: #e0f2fe;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.voc-voice-card--new {
  animation: vocStoryPop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.35), 0 20px 40px rgba(14, 165, 233, 0.15);
}

@keyframes vocStoryPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.voc-story-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.voc-story-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.voc-story-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.voc-story-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
}

.voc-story-modal__head {
  padding: 1.35rem 1.5rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.voc-story-modal__head h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
}

.voc-story-modal__head p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

.voc-story-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voc-story-modal__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.voc-story-modal__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.voc-story-field {
  margin-bottom: 1rem;
}

.voc-story-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
}

.voc-story-field .form-control {
  border-radius: 10px;
  font-size: 0.95rem;
}

.voc-story-field textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.voc-story-field__hint {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.3rem;
}

.voc-story-stars-input {
  display: flex;
  gap: 0.25rem;
}

.voc-story-stars-input button {
  border: none;
  background: none;
  font-size: 1.35rem;
  color: #e2e8f0;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.voc-story-stars-input button.is-on {
  color: #fbbf24;
}

.voc-story-submit {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  cursor: pointer;
  margin-top: 0.25rem;
}

.voc-story-submit:hover {
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.35);
}

.voc-story-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.voc-story-success {
  display: none;
  text-align: center;
  padding: 2rem 1.5rem;
}

.voc-story-success.is-visible {
  display: block;
}

.voc-story-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voc-story-toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 10060;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.voc-story-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.voc-voice-grid--loading {
  min-height: 200px;
  opacity: 0.5;
}

.voc-voice-quote--preview {
  margin-bottom: 0.35rem;
}

.voc-voice-readmore {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0284c7;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.voc-voice-readmore:hover {
  color: #0369a1;
}

/* Full story read popup */
.voc-story-read-modal .voc-story-read__dialog {
  max-width: 560px;
}

.voc-story-read__head {
  padding: 1.35rem 1.5rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.voc-story-read__body {
  padding: 1.25rem 1.5rem 1.75rem;
}

.voc-story-read__quote {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #1e293b;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
