/* Blok „Podaj dalej” pod narzędziem i wpisem (partials/udostepnij.blade.php). Odważny gradient marki, animacje wyłączane przy prefers-reduced-motion. */
.ud {
  --ud-pap: #fff; --ud-tekst: #1e293b; --ud-sz: #64748b; --ud-font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  position: relative; isolation: isolate; display: grid; gap: 4px; align-items: center; margin: 0 0 1.25rem; padding: 24px 18px 26px; overflow: hidden;
  border-radius: 30px; color: #fff; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(118deg, #24344f 0%, #2f4a78 55%, #3f6fc4 100%);
  box-shadow: 0 6px 0 #0b1120, 0 18px 40px -14px rgba(15, 23, 42, .5);
}
.ud--post { margin: 1.5rem 0 1.25rem; }
body.theme-dark .ud, [theme-mode="dark"] .ud { --ud-pap: #0f172a; --ud-tekst: #f1f5f9; --ud-sz: #94a3b8; box-shadow: 0 6px 0 #0f2a52; }

/* tło: poświaty i bieg gradientu po najechaniu */
.ud::before, .ud::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.ud::before { width: 340px; height: 340px; right: -90px; top: -150px; background: rgba(127, 178, 240, .28); filter: blur(46px); animation: ud-puls 7s ease-in-out infinite; }
.ud::after { width: 300px; height: 300px; left: -110px; bottom: -160px; background: rgba(127, 178, 240, .18); filter: blur(46px); animation: ud-puls 9s ease-in-out infinite reverse; }
@keyframes ud-puls { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.18); opacity: 1; } }

/* samolociki przelatujące przez blok */
.ud__lot { position: absolute; z-index: 0; top: 0; left: 0; color: rgba(255, 255, 255, .28); pointer-events: none; animation: ud-lot 13s linear infinite; }
.ud .ud__lot svg { width: 42px; height: 42px; }
.ud__lot--2 { color: rgba(255, 200, 0, .55); animation-duration: 19s; animation-delay: -8s; }
.ud .ud__lot--2 svg { width: 26px; height: 26px; }
@keyframes ud-lot {
  0% { transform: translate(-70px, 190px) rotate(-14deg); opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translate(52vw, 60px) rotate(-6deg); }
  92% { opacity: 1; }
  100% { transform: translate(112vw, -60px) rotate(-16deg); opacity: 0; }
}

.ud__tresc { position: relative; z-index: 1; min-width: 0; text-align: center; }
.ud .ud__nad { display: inline-block; margin: 0 0 10px; padding: 6px 13px; border-radius: 999px; background: #fdf0d5; color: #422006; font: 800 12.5px/1 var(--ud-font); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-2deg); }
.ud .ud__h { margin: 0 0 8px; color: #fff; font: 900 clamp(29px, 7.4vw, 44px)/1.04 var(--ud-font); letter-spacing: -.03em; text-wrap: balance; }
.ud .ud__opis { max-width: 560px; margin: 0 auto 18px; color: rgba(255, 255, 255, .9); font-size: 17px; font-weight: 600; line-height: 1.45; }
.ud svg { display: block; flex: none; width: 20px; height: 20px; }

.ud__glowne { display: grid; gap: 12px; }
.ud .ud__wyslij { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 14px 26px; margin: 0 0 5px; border: 0; border-radius: 16px;
  background: #fcd34d; box-shadow: 0 5px 0 #d9a521; color: #422006; font: 900 17px/1.15 var(--ud-font); letter-spacing: .03em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; }
.ud .ud__wyslij:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 7px 0 #d9a521; filter: brightness(1.05); }
.ud .ud__wyslij:hover svg { animation: ud-odlot .7s ease-in-out infinite alternate; }
.ud .ud__wyslij:active { transform: translateY(5px); box-shadow: 0 0 0 #d9a521; }
@keyframes ud-odlot { from { transform: translate(0, 0); } to { transform: translate(3px, -3px); } }

.ud__link { display: flex; min-width: 0; height: 58px; border-radius: 16px; background: var(--ud-pap); overflow: hidden; box-shadow: 0 5px 0 rgba(15, 23, 42, .35); }
.ud__link input { flex: 1; min-width: 0; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--ud-sz); font-size: 14.5px; font-weight: 600; text-overflow: ellipsis; }
.ud__link button { display: inline-flex; flex: none; align-items: center; gap: 8px; margin: 6px; padding: 0 15px; border: 0; border-radius: 11px; background: #eff6ff; color: #1d4ed8; font: 800 14.5px/1 var(--ud-font); cursor: pointer; white-space: nowrap; transition: background .15s ease; }
body.theme-dark .ud__link button, [theme-mode="dark"] .ud__link button { background: #0f2a52; color: #93c5fd; }
.ud__link button:hover { background: #dbeafe; }
.ud__link button.is-ok, body.theme-dark .ud__link button.is-ok, [theme-mode="dark"] .ud__link button.is-ok { background: #58cc02; color: #fff; }

.ud__kanaly { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.ud__kanaly li { flex: 1 1 calc(50% - 10px); min-width: 0; margin: 0; padding: 0; }
.ud__kanaly li.ud__sam { flex: 0 0 58px; }
.ud__kanaly li::before { content: none; }
.ud .ud__kanaly a { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 14px 0 8px; border-radius: 16px; background: var(--ud-pap); box-shadow: 0 4px 0 rgba(15, 23, 42, .35);
  color: var(--ud-tekst); font: 800 15px/1.1 var(--ud-font); text-decoration: none; transition: transform .14s cubic-bezier(.3, 1.6, .6, 1), box-shadow .14s ease; }
.ud .ud__kanaly li.ud__sam a { justify-content: center; padding: 0; }
.ud .ud__kanaly a:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 8px 0 rgba(15, 23, 42, .3); color: var(--ud-tekst); text-decoration: none; }
.ud .ud__kanaly a:active { transform: translateY(3px); box-shadow: none; }
.ud__ik { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--k); color: #fff; transition: transform .2s cubic-bezier(.3, 1.8, .6, 1); }
.ud .ud__kanaly a:hover .ud__ik { transform: rotate(-9deg) scale(1.08); }
.ud .k-wa { --k: #128c4b; } .ud .k-ms { --k: linear-gradient(135deg, #0a7cff, #2563eb 70%, #ff5280); } .ud .k-fb { --k: #1877f2; }
.ud .k-x { --k: #0f172a; } .ud .k-li { --k: #0a66c2; } .ud .k-ma { --k: #f28c3c; }
body.theme-dark .ud .k-x, [theme-mode="dark"] .ud .k-x { --k: #475569; }
/* Messenger otwiera się tylko z aplikacji na telefonie */
.ud__tel { display: none; }
.ud.ud--tel .ud__tel { display: block; }

.ud__art { position: relative; z-index: 1; display: block; order: -1; width: 168px; height: auto; margin: 0 auto 4px; animation: ud-sowka 3.2s ease-in-out infinite; filter: drop-shadow(0 12px 14px rgba(15, 23, 42, .35)); }
@keyframes ud-sowka { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }

/* konfetti po skopiowaniu i wysłaniu */
.ud__konfetti { position: absolute; z-index: 3; top: 46%; width: 10px; height: 14px; border-radius: 3px; pointer-events: none; animation: ud-konf 1.15s cubic-bezier(.15, .7, .35, 1) forwards; }
@keyframes ud-konf {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; }
}

@media (min-width: 620px) {
  .ud { padding: 30px 32px 32px; }
  .ud__glowne { grid-template-columns: auto minmax(0, 1fr); }
  .ud__kanaly li { flex: 1 1 130px; }
}
@media (min-width: 900px) {
  .ud { grid-template-columns: minmax(0, 1fr) 248px; gap: 18px; padding: 34px 28px 36px 40px; }
  .ud__art { order: 0; width: 100%; margin: 0; }
  .ud__tresc { text-align: left; }
  .ud .ud__opis { margin-left: 0; }
  .ud__kanaly { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ud::before, .ud::after, .ud__art, .ud__lot, .ud .ud__wyslij:hover svg { animation: none; }
  .ud__lot { display: none; }
  .ud *, .ud *::before { transition: none !important; }
}
