/* Share + print buttons on the recipe page (partials/recipe_share.html) */
.recipe-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.75rem 0 0.5rem;
  position: relative;
}

.recipe-share__label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary, #665e53);
}

.recipe-share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border-color, #d7cbb9);
  border-radius: 999px;
  background: #faf6f0;
  color: var(--highlight, #784527);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.share-btn:hover,
.share-btn:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.share-btn:focus-visible,
.print-btn:focus-visible {
  outline: 3px solid var(--accent-gold, #c9954e);
  outline-offset: 2px;
}

.share-btn--native {
  padding: 0 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--accent-warm, #ae5c40);
  border-color: var(--accent-warm, #ae5c40);
  color: #fff;
}
.share-btn--native:hover,
.share-btn--native:focus-visible { background: var(--highlight, #784527); border-color: var(--highlight, #784527); }

.share-btn--facebook:hover,
.share-btn--facebook:focus-visible { background: #1877f2; border-color: #1877f2; }
.share-btn--pinterest:hover,
.share-btn--pinterest:focus-visible { background: #e60023; border-color: #e60023; }
.share-btn--whatsapp:hover,
.share-btn--whatsapp:focus-visible { background: #128c4b; border-color: #128c4b; }
.share-btn--email:hover,
.share-btn--email:focus-visible,
.share-btn--copy:hover,
.share-btn--copy:focus-visible { background: var(--accent-warm, #ae5c40); border-color: var(--accent-warm, #ae5c40); }

.share-btn--copy.is-done,
.share-btn--copy.is-done:hover {
  background: #3e7d4f;
  border-color: #3e7d4f;
  color: #fff;
}
.share-btn--copy.is-done i::before { content: "\f00c"; } /* check mark */

.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  height: 42px;
  padding: 0 1.25rem;
  border: 1px solid var(--accent-warm, #ae5c40);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-warm, #ae5c40);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.print-btn:hover,
.print-btn:focus-visible {
  background: var(--accent-warm, #ae5c40);
  color: #fff;
}

.recipe-share__status {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: var(--nav-bg, #4b3c2d);
  color: #fff;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}
.recipe-share__status.is-visible { opacity: 1; }

/* End-of-recipe version: a small card */
.recipe-share--bottom {
  flex-direction: column;
  gap: 0.9rem;
  margin: 2.5rem 0 1rem;
  padding: 1.5rem 1.25rem;
  background: #faf6f0;
  border: 1px solid var(--border-color, #d7cbb9);
  border-radius: 10px;
  text-align: center;
}

.recipe-share--bottom .recipe-share__buttons { justify-content: center; }
.recipe-share--bottom .share-btn { background: #fff; }
.recipe-share--bottom .share-btn--native { background: var(--accent-warm, #ae5c40); }
.recipe-share--bottom .print-btn { margin-left: 0; }
.recipe-share--bottom .recipe-share__status { left: 50%; top: auto; bottom: 0.5rem; transform: translateX(-50%); }

.recipe-share__lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-primary, #333);
}
.recipe-share__lead i { color: var(--accent-warm, #ae5c40); margin-right: 0.25rem; }

@media (max-width: 480px) {
  .recipe-share--top .print-btn {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-btn, .print-btn { transition: none; }
  .share-btn:hover, .share-btn:focus-visible { transform: none; }
}

/* The source line is only for paper */
.print-only { display: none; }
