/* ==========================================================================
   MONTEIRO & QUINTÃO ADVOCACIA — COMPONENTE DE COMPARTILHAMENTO EDITORIAL
   Harmonia visual com a Opção A (Marinho, Marfim e Dourado)
   ========================================================================== */

/* Botão Pílula de Compartilhamento no Byline */
.share-action-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.btn-share-editorial {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.1rem;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2C3441;
  background: #FAF8F2;
  border: 1px solid #C8C0AC;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(44, 52, 65, 0.06);
}

.btn-share-editorial:hover {
  background: #2C3441;
  color: #FAF8F2;
  border-color: #2C3441;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 52, 65, 0.18);
}

.btn-share-editorial svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* Callout Elegante no Final do Artigo (Antes do Colofão) */
.article-share-callout {
  max-width: 74rem;
  margin: 3.5rem auto 1rem;
  padding: 0 2rem;
}

.share-callout-inner {
  background: #FAF8F2;
  border: 1px solid #DCD5C5;
  border-left: 3px solid #B38E5D;
  padding: 1.8rem 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px -12px rgba(44, 52, 65, 0.12);
}

.share-callout-text h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #2C3441;
  margin: 0 0 0.35rem;
}

.share-callout-text p {
  font-size: 0.95rem;
  color: #5C6472;
  margin: 0;
  max-width: 36rem;
  line-height: 1.5;
}

.share-callout-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Modal Backdrop */
.mq-share-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 33, 43, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mq-share-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* Modal Box */
.mq-share-modal {
  position: relative;
  background: #FAF8F2;
  border: 1px solid #C8C0AC;
  box-shadow: 0 24px 60px -15px rgba(27, 33, 43, 0.45);
  max-width: 520px;
  width: 100%;
  padding: 2.4rem 2.2rem;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mq-share-modal-backdrop.is-open .mq-share-modal {
  transform: translateY(0) scale(1);
}

.mq-share-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #5C6472;
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.2s ease;
}

.mq-share-close:hover {
  color: #2C3441;
}

.mq-share-modal-header {
  margin-bottom: 1.5rem;
}

.mq-share-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #B38E5D;
  margin-bottom: 0.4rem;
}

.mq-share-modal-header h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: #2C3441;
  margin: 0 0 0.4rem;
  line-height: 1.15;
}

.mq-share-modal-header p {
  font-size: 0.94rem;
  color: #5C6472;
  margin: 0;
  line-height: 1.5;
}

/* Preview Card no Modal */
.mq-share-preview {
  display: flex;
  gap: 1rem;
  background: #F3EFE6;
  border: 1px solid #DCD5C5;
  padding: 0.9rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.mq-share-preview-img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 1px solid #C8C0AC;
  flex-shrink: 0;
}

.mq-share-preview-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
}

.mq-share-preview-domain {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B38E5D;
}

.mq-share-preview-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #2C3441;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mq-share-preview-author {
  font-size: 0.78rem;
  color: #5C6472;
}

/* Campo de Link com Botão Copiar */
.mq-share-field {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mq-share-field input {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #C8C0AC;
  padding: 0.65rem 0.9rem;
  font-family: 'Source Sans 3', monospace;
  font-size: 0.86rem;
  color: #2C3441;
  border-radius: 2px;
  outline: none;
}

.mq-share-field input:focus {
  border-color: #2C3441;
}

.mq-btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #2C3441;
  color: #FAF8F2;
  border: none;
  padding: 0.65rem 1.1rem;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mq-btn-copy:hover {
  background: #1B212B;
}

.mq-btn-copy.is-copied {
  background: #128C7E;
  color: #FFFFFF;
}

/* Botões de Redes Sociais */
.mq-share-networks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

@media (max-width: 480px) {
  .mq-share-networks {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mq-share-network-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.5rem;
  background: #FFFFFF;
  border: 1px solid #DCD5C5;
  border-radius: 2px;
  text-decoration: none;
  color: #2C3441;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mq-share-network-btn:hover {
  transform: translateY(-2px);
  border-color: #C8C0AC;
  box-shadow: 0 4px 10px rgba(44, 52, 65, 0.1);
}

.mq-share-network-btn.is-whatsapp:hover {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}

.mq-share-network-btn.is-linkedin:hover {
  background: #0A66C2;
  color: #FFFFFF;
  border-color: #0A66C2;
}

.mq-share-network-btn.is-twitter:hover {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.mq-share-network-btn.is-email:hover {
  background: #2C3441;
  color: #FFFFFF;
  border-color: #2C3441;
}

.mq-share-footer-note {
  font-size: 0.72rem;
  color: #8C94A0;
  text-align: center;
  border-top: 1px dashed #DCD5C5;
  padding-top: 0.9rem;
  font-style: italic;
}

/* Toast Notification Flutuante */
.mq-share-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #2C3441;
  color: #FAF8F2;
  padding: 0.85rem 1.4rem;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(27, 33, 43, 0.35);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 10000;
  display: flex;
  align-items: center;
  transform: translateY(40px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  border-left: 3px solid #25D366;
}

.mq-share-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 600px) {
  .mq-share-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
    justify-content: center;
  }
}
