/* EgyBI — "Share Egypt" universal viral share bar & Story card download.
   Zero external libraries. Transform/opacity-only motion, RTL-aware,
   375px mobile-safe, prefers-reduced-motion compliant, hidden in print. */

.eg-share-bar {
  margin: 28px auto 12px;
  max-width: 900px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1B1B18 0%, #24211A 65%, #1A2A3B 100%);
  border: 1.5px solid rgba(201, 162, 39, 0.55);
  color: #FBF8F1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 10px 28px rgba(20, 17, 12, 0.16);
}

.eg-share-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 190px;
  flex: 1 1 220px;
}

.eg-share-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E7C64C;
}

.eg-share-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #FBF8F1;
}

.eg-share-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.eg-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(251, 248, 241, 0.24);
  background: rgba(251, 248, 241, 0.08);
  color: #FBF8F1;
  font: 600 0.84rem/1.1 var(--font-sans, Inter, system-ui, sans-serif);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(.22, 1, .36, 1), opacity 0.2s ease;
}

.eg-share-btn:hover,
.eg-share-btn:focus-visible {
  transform: translateY(-2px);
  border-color: #E7C64C;
  outline: 2px solid #E7C64C;
  outline-offset: 2px;
}

.eg-share-btn.eg-share-story {
  background: #C9A227;
  color: #1B1B18;
  border-color: #E7C64C;
  font-weight: 700;
}

.eg-share-btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.eg-share-toast {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translate(-50%, 10px);
  z-index: 9996;
  padding: 9px 16px;
  border-radius: 999px;
  background: #1B1B18;
  color: #E7C64C;
  border: 1.5px solid #C9A227;
  font: 700 0.85rem/1.1 var(--font-sans, Inter, system-ui, sans-serif);
  box-shadow: 0 8px 24px rgba(20, 17, 12, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.eg-share-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 600px) {
  .eg-share-bar {
    padding: 14px;
    border-radius: 12px;
    margin: 20px 12px 12px;
  }
  .eg-share-btn {
    padding: 8px 11px;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eg-share-btn,
  .eg-share-toast {
    transition: none !important;
  }
}

@media print {
  .eg-share-bar,
  .eg-share-toast {
    display: none !important;
  }
}
