/* ROXPDV — novidades / changelog */
:root {
  --rx-orange: #ff6e41;
  --rx-orange-dark: #e85a2f;
  --rx-navy: #052336;
  --rx-ink: #1e293b;
  --rx-muted: #64748b;
  --rx-border: #e2e8f0;
  --rx-surface: #ffffff;
  --rx-bg: #f1f5f9;
  --rx-peach: #fff7f3;
  --rx-font: "Poppins", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.rx-updates-page {
  margin: 0;
  min-height: 100%;
  font-family: var(--rx-font);
  color: var(--rx-ink);
  background: var(--rx-bg);
  -webkit-font-smoothing: antialiased;
}

.rx-updates-header {
  position: relative;
  color: #fff;
  padding: 32px 20px 72px;
  background: var(--rx-navy);
  overflow: hidden;
}

.rx-updates-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 110, 65, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
    linear-gradient(160deg, #052336 0%, #0c4a6e 100%);
  pointer-events: none;
}

.rx-updates-header-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.rx-updates-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  opacity: 0.92;
  transition: opacity 0.15s;
}

.rx-updates-logo:hover {
  opacity: 1;
}

.rx-updates-logo .rx-brand-mark,
.rx-updates-logo img {
  height: 40px;
  width: auto;
  max-width: min(260px, 72vw);
}

.rx-updates-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.rx-updates-header h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.rx-updates-header p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
}

.rx-updates-main {
  max-width: 680px;
  margin: -48px auto 56px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.rx-updates-empty {
  background: var(--rx-surface);
  border: 1px solid var(--rx-border);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  color: var(--rx-muted);
  font-size: 15px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.rx-release {
  background: var(--rx-surface);
  border: 1px solid var(--rx-border);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.rx-release--featured {
  border-color: rgba(255, 110, 65, 0.25);
  box-shadow: 0 12px 40px rgba(255, 110, 65, 0.1);
}

.rx-release--featured::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--rx-orange) 0%, #fb923c 100%);
}

.rx-release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 22px 24px 18px;
}

.rx-release-version {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rx-navy);
  letter-spacing: -0.03em;
  line-height: 1;
}

.rx-release-version::before {
  content: "v";
  font-weight: 600;
  color: #94a3b8;
  margin-right: 1px;
}

.rx-release-date {
  font-size: 14px;
  color: var(--rx-muted);
}

.rx-release-date::before {
  content: "·";
  margin-right: 10px;
  color: #cbd5e1;
}

.rx-release-latest {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--rx-orange-dark);
  background: var(--rx-peach);
  padding: 5px 10px;
  border-radius: 999px;
}

.rx-release-body {
  padding: 4px 24px 24px;
}

.rx-section + .rx-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #f1f5f9;
}

.rx-section-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--rx-ink);
  letter-spacing: -0.01em;
}

.rx-section-title::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  vertical-align: middle;
  content: "";
}

.rx-section.added .rx-section-title::before {
  background: #22c55e;
}

.rx-section.fixed .rx-section-title::before {
  background: #3b82f6;
}

.rx-section.changed .rx-section-title::before {
  background: #f59e0b;
}

.rx-section.removed .rx-section-title::before {
  background: #94a3b8;
}

.rx-section.security .rx-section-title::before {
  background: #ef4444;
}

.rx-section-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rx-section-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
  border-bottom: 1px solid #f8fafc;
}

.rx-section-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rx-section-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e2e8f0;
}

.rx-section.added .rx-section-list li::before {
  background: #86efac;
}

.rx-section.fixed .rx-section-list li::before {
  background: #93c5fd;
}

.rx-section-list li strong {
  font-weight: 600;
  color: var(--rx-navy);
}

.rx-section-list li code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}

.rx-updates-footer {
  max-width: 680px;
  margin: 0 auto 40px;
  padding: 0 20px;
  font-size: 14px;
  color: var(--rx-muted);
  text-align: center;
}

.rx-updates-footer a {
  color: var(--rx-orange-dark);
  text-decoration: none;
  font-weight: 500;
}

.rx-updates-footer a:hover {
  text-decoration: underline;
}

.rx-updates-footer-sep {
  margin: 0 8px;
  color: #cbd5e1;
}

@media (max-width: 520px) {
  .rx-release-head {
    padding: 18px 18px 14px;
  }

  .rx-release-body {
    padding: 4px 18px 18px;
  }

  .rx-release-latest {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .rx-release-date::before {
    display: none;
  }

  .rx-release-date {
    width: 100%;
    margin-top: -4px;
  }
}
