/* ═══════════════════════════════════════════════════
   UPDATE — strona (lbn-cmd) + CTA na home
   ═══════════════════════════════════════════════════ */

/* ── Homepage CTA — wood / parchment OTServ ── */

.upd-home-cta {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 14px;
  padding: 13px 14px 12px;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(ellipse 60% 80% at 8% 50%, rgba(216, 163, 90, 0.16), transparent 50%),
    linear-gradient(180deg, #4a210d 0%, #2b140a 50%, #1a0d07 100%);
  border: 1px solid #1a0d07;
  box-shadow:
    0 0 0 1px #8a4b1f,
    0 0 0 2px #1a0d07,
    0 3px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(243, 214, 162, 0.2),
    inset 0 -2px 8px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.upd-home-cta::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(216, 163, 90, 0.28);
  border-radius: 2px;
  pointer-events: none;
}

.upd-home-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 35%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(243, 214, 162, 0.08),
    transparent
  );
  transform: skewX(-16deg);
  animation: updCtaShimmer 5.5s ease-in-out infinite;
  pointer-events: none;
}

.upd-home-cta:hover {
  text-decoration: none;
  color: inherit;
}

@media (hover: hover) and (pointer: fine) {
  .upd-home-cta:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow:
      0 0 0 1px #d8a35a,
      0 0 0 2px #1a0d07,
      0 8px 20px rgba(0, 0, 0, 0.55),
      0 0 14px rgba(216, 163, 90, 0.2),
      inset 0 1px 0 rgba(243, 214, 162, 0.25),
      inset 0 -2px 8px rgba(0, 0, 0, 0.4);
  }

  .upd-home-cta:hover .upd-home-cta__arrow {
    transform: translateX(3px);
  }
}

.upd-home-cta:focus-visible {
  outline: 2px solid #d8a35a;
  outline-offset: 2px;
}

.upd-home-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.upd-home-cta__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a0d07;
  background: linear-gradient(180deg, #f7ebcf 0%, #d8a35a 55%, #8a4b1f 100%);
  border: 1px solid #4a210d;
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.4);
  animation: updCtaPulse 2.4s ease-in-out infinite;
}

.upd-home-cta__body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.upd-home-cta__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: #f3d6a2;
  text-shadow:
    0 1px 0 #1a0d07,
    0 0 12px rgba(216, 163, 90, 0.35);
}

.upd-home-cta__sub {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #e0c090;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.upd-home-cta__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 3px;
  color: #1a0d07;
  font-size: 13px;
  background: linear-gradient(180deg, #f3d6a2 0%, #d8a35a 100%);
  border: 1px solid #4a210d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s ease;
}

@keyframes updCtaShimmer {
  0%, 100% { left: -40%; opacity: 0; }
  15%      { opacity: 1; }
  45%      { left: 110%; opacity: 0; }
  100%     { left: 110%; opacity: 0; }
}

@keyframes updCtaPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 6px rgba(216, 163, 90, 0.25); }
  50%      { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 12px rgba(216, 163, 90, 0.5); }
}

@media (max-width: 480px) {
  .upd-home-cta {
    padding: 11px 11px 10px;
  }

  .upd-home-cta__inner {
    gap: 8px;
  }

  .upd-home-cta__title {
    font-size: 18px;
    letter-spacing: 0.08em;
  }

  .upd-home-cta__sub {
    font-size: 11px;
  }

  .upd-home-cta__arrow {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .upd-home-cta::after,
  .upd-home-cta__badge {
    animation: none;
  }

  .upd-home-cta:hover {
    transform: none;
  }
}

/* ── Update page — rozszerzenie lbn-cmd ── */

.lbn-upd .upd-status {
  gap: 7px;
}

.lbn-upd .upd-status__led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.lbn-upd .upd-status--on .upd-status__led {
  background: #6fbf73;
  box-shadow: 0 0 7px rgba(111, 191, 115, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.lbn-upd .upd-status--off .upd-status__led {
  background: #c05040;
  box-shadow: 0 0 6px rgba(192, 80, 64, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.lbn-upd .upd-status--cache {
  opacity: 0.7;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lbn-upd .upd-row--featured {
  border-color: rgba(224, 112, 128, 0.45);
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(180, 60, 70, 0.18), transparent 55%),
    rgba(28, 22, 16, 0.95);
}

.lbn-upd .upd-row--featured:hover {
  border-color: rgba(224, 112, 128, 0.7);
}

.lbn-upd .upd-online {
  color: #6fbf73;
  font-weight: 700;
}

.lbn-upd .upd-offline {
  color: #e07080;
  font-weight: 700;
}

.lbn-upd .upd-warn {
  margin: 8px 0 0;
  padding: 6px 8px;
  font-size: 12px;
  color: #e8dcc0;
  background: rgba(155, 45, 60, 0.18);
  border: 1px solid rgba(180, 60, 70, 0.45);
  border-left: 3px solid #c05040;
}

.lbn-upd .upd-more-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.lbn-upd .cmd-row__ex .cmd-icon {
  margin: 0 5px 0 3px;
  vertical-align: -6px;
}

/* Override Bootstrap code (białe/różowe tło) */
.lbn-upd code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-bright);
  background: #000;
  background-color: #000;
  padding: 1px 5px;
  border: 1px solid rgba(138, 106, 26, 0.45);
  border-radius: 0;
}
