/**
 * OlhaPauta — SPRINT 19: Sharing Buttons & Toast CSS
 */

.share-box {
  margin: 32px 0;
  padding: 20px;
  background: var(--s-surface-2, rgba(15, 23, 42, 0.02));
  border: 1px solid var(--s-line, rgba(15, 23, 42, 0.08));
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-box-label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--s-text-muted, #64748b);
}

.share-buttons-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  color: var(--s-text, #0f172a);
  background: var(--s-surface-1, #ffffff);
  border: 1px solid var(--s-line, rgba(15, 23, 42, 0.12));
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.share-btn svg {
  transition: transform 0.2s;
}

.share-btn:hover {
  transform: translateY(-2px);
  background: var(--s-surface-3, #f8fafc);
  border-color: var(--s-text, #0f172a);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.share-btn:hover svg {
  transform: scale(1.1);
}

.share-btn--native {
  background: var(--s-surface-1, #ffffff);
}

.share-btn--copy {
  background: var(--s-surface-1, #ffffff);
}

.share-btn--whatsapp {
  color: #1e7834;
  border-color: rgba(37, 211, 102, 0.3);
  background: rgba(37, 211, 102, 0.06);
}
.share-btn--whatsapp:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: #25d366;
  color: #1e7834;
}

.share-btn--facebook {
  color: #12408f;
  border-color: rgba(24, 119, 242, 0.3);
  background: rgba(24, 119, 242, 0.06);
}
.share-btn--facebook:hover {
  background: rgba(24, 119, 242, 0.12);
  border-color: #1877f2;
  color: #12408f;
}

.share-btn--x {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.3);
  background: rgba(15, 23, 42, 0.06);
}
.share-btn--x:hover {
  background: rgba(15, 23, 42, 0.12);
  border-color: #0f172a;
  color: #0f172a;
}

/* --- TOAST CONTAINER & COMPONENT --- */
.op-toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 90%;
  max-width: 380px;
}

.op-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}

/* Modo Escuro */
.op-dark-theme .op-toast {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.op-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.op-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.op-toast-message {
  flex-grow: 1;
}

@supports (backdrop-filter: blur(1px)) {
  .op-toast {
    backdrop-filter: blur(12px);
  }
}

@media (max-width: 480px) {
  .share-btn {
    width: 100%;
    justify-content: center;
  }
  .op-toast-container {
    bottom: 20px;
  }
}
