/* ProRealAI / ProRealCode Studio promos outside the homepage (website ticket #62).
   Markup: prc-template-parts/app-promo.php. Literal values: the stk tokens are not loaded
   on the feed or the forums. */

/* ── Feed: the homepage hero's app card (homepage-v5.css, .hp5-stage .hp5-app) ── */
/* Doubled class: the feed's root also carries Metronic's .card and .prc-event-card. */
.prc-app.prc-app {
  --prc-app-hue: #10b981;
  --prc-app-ink: #34d399;
  position: relative;
  display: grid;
  gap: 16px;
  margin-bottom: 1.25rem;
  padding: 26px 28px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--prc-app-hue) 9%, #161c2a), #0c111b);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #e8e8e8;
  color-scheme: dark;
  white-space: normal;
  overflow: visible;
}
.prc-app::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--prc-app-hue), transparent);
}
.prc-app.prc-app-st {
  --prc-app-hue: #3d8bff;
  --prc-app-ink: #6ea5ff;
}
.prc-app p,
.prc-app h3 {
  margin: 0;
}
.prc-app .prc-app-kind {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
  font-size: 13px;
  color: #9aa3b8;
}
.prc-app-kind span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--prc-app-ink);
}
.prc-app .prc-app-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}
.prc-app-name img {
  flex: none;
  width: auto;
  height: 30px;
}
.prc-app-chip {
  display: inline-flex;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
}
.prc-app-st .prc-app-chip {
  background: rgba(61, 139, 255, 0.18);
  color: #8db8ff;
}
.prc-app .prc-app-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.prc-app .prc-app-text {
  font-size: 15px;
  line-height: 1.55;
  color: #9aa3b8;
}
.prc-app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  padding-top: 4px;
}
.prc-app .prc-app-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  background: #10b981;
  color: #04130d;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s, filter 0.15s;
}
.prc-app-st .prc-app-cta {
  background: #0d5be1;
  color: #fff;
  box-shadow: 0 10px 30px rgba(13, 91, 225, 0.45);
}
.prc-app .prc-app-cta:hover {
  color: inherit;
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.prc-app-ai .prc-app-cta:hover {
  color: #04130d;
}
.prc-app-st .prc-app-cta:hover {
  color: #fff;
}
.prc-app a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.prc-app-ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.prc-app-cta .pcs-chrome {
  flex: none;
  box-sizing: content-box;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
}
.prc-app .prc-app-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: #8db8ff;
  text-decoration: none;
}
.prc-app .prc-app-more:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* The browser window, cut by the card's bottom edge as on the homepage. */
.prc-app-view {
  position: relative;
  margin-top: 6px;
}
.prc-app-win {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #0b0f17;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.prc-app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 51px 0 12px;
  background: #111722;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.prc-app-bar i {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #394150;
}
.prc-app-bar span {
  margin: 0 auto;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font: 11px/1.5 ui-monospace, Consolas, monospace;
  color: #9aa3b8;
}
.prc-app-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  object-position: left top;
}
.prc-app-body {
  display: grid;
  gap: 16px;
  padding: 18px 18px 26px;
}
.prc-app-turn {
  display: grid;
  gap: 6px;
}
.prc-app-turn-you {
  justify-items: end;
}
.prc-app-who {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9aa3b8;
}
.prc-app .prc-app-prompt {
  position: relative;
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 12px 12px 4px 12px;
  background: #0d5be1;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(13, 91, 225, 0.35);
}
.prc-app-prompt::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 0;
  width: 14px;
  height: 14px;
  background: #0d5be1;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.prc-app .prc-app-code {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  background: #0f0f0f;
  color: #e8e8e8;
  font: 13px/1.7 ui-monospace, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prc-app-code b {
  font-weight: 400;
}
.prc-app-code .kw {
  color: #6ea5ff;
}
.prc-app-code .fn {
  color: #34d399;
}
.prc-app-code .str {
  color: #e0a83e;
}
.prc-app-cursor::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: #34d399;
  animation: prc-app-blink 1s steps(1) infinite;
}
@keyframes prc-app-blink {
  50% {
    opacity: 0;
  }
}

/* The labels floating on the window's edges. */
.prc-app-float {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(17, 24, 36, 0.94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  animation: prc-app-floaty 7s ease-in-out infinite;
}
.prc-app-float > .prc-app-ico {
  color: #34d399;
}
/* Top right of the window: its bottom edge meets the feed footer, unlike the homepage's. */
.prc-app-float-tr {
  right: -12px;
  top: -14px;
  animation-duration: 8.5s;
  animation-delay: -3s;
}
.prc-app-float-run {
  right: -12px;
  bottom: 16%;
  padding: 8px 10px;
  animation-duration: 8.5s;
  animation-delay: -3s;
}
.prc-app-float-run b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 12px;
  background: #fff;
  color: #0b1220;
  font-size: 14px;
}
.prc-app-float-run b svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.prc-app .prc-app-float-run kbd {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  font: 600 12px/1 ui-monospace, Consolas, monospace;
  color: #e8ecf5;
}
@keyframes prc-app-floaty {
  50% {
    transform: translateY(-7px);
  }
}

/* The feed's like/comment footer, inside the card: bleed to its edges. */
.prc-app > .card-footer {
  margin: 0 -28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

@media (max-width: 575.98px) {
  .prc-app {
    padding: 20px 18px 0;
  }
  .prc-app > .card-footer {
    margin: 0 -18px;
  }
  .prc-app-float {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .prc-app *,
  .prc-app *::after {
    animation: none !important;
  }
}

/* ── Forums: the ProRealCode Studio sidebar card, twin of .prc-ai-widget (style_forums.css) ── */
.prc-st-widget {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(61, 139, 255, 0.12) 0%, var(--bs-card-bg) 55%);
  border: 1px solid rgba(61, 139, 255, 0.28);
  white-space: normal;
}
.prc-st-widget__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bs-gray-900);
}
.prc-st-widget__brand img {
  height: 30px;
  width: auto;
}
.prc-st-widget__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3d8bff;
  background: rgba(61, 139, 255, 0.12);
  border: 1px solid rgba(61, 139, 255, 0.28);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
}
.prc-st-widget__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bs-gray-900);
  line-height: 1.3;
}
.prc-st-widget__title em {
  font-style: normal;
  color: #3d8bff;
}
.prc-st-widget__text {
  font-size: 1.05rem;
  color: var(--bs-gray-600);
  line-height: 1.55;
}
.prc-st-widget__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.prc-st-widget__cta .pcs-chrome {
  width: 18px;
  height: 18px;
  flex: none;
}
.prc-st-widget__compat {
  font-size: 0.8rem;
  color: var(--bs-gray-500);
  line-height: 1.45;
  text-align: center;
}
.prc-st-widget__more {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
