/* Old-site rizhao 1:1 visual parity & isolation stylesheet (loaded ONLY on learn.rzxmedu.com) */
#rzx-origin-difficulty-filter {
  display: none !important;
}

.footer__extra-link {
  display: block;
  text-align: -webkit-center;
}
.footer__extra-link-item {
  float: none !important;
  display: inline-block;
}
.footer__extra-left,
.footer__extra-right {
  align-self: center;
  align-items: center;
  float: none !important;
  display: inline-block;
}
.contest-type--ladder .contest-type-tag {
  background: blue;
}
.text-green {
  color: #2ecc40 !important;
}
.text-red {
  color: #ff4136 !important;
}

/* Top nav brand logo matching old site */
.nav__logo {
  height: 32px;
  width: auto;
  vertical-align: middle;
  border-radius: 4px;
}

/* Course progress bar & cards */
.rz-progress-track {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}
.rz-progress-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 3px;
  transition: width 0.25s ease;
}
.rz-badge-unlock {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #16a34a;
  border-radius: 999px;
  vertical-align: middle;
}
.rz-badge-locked {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #9ca3af;
  border-radius: 999px;
  vertical-align: middle;
}

/* Course detail collapsible chapter list */
.rz-chapter-card .rz-chapter-body {
  display: block;
}
.rz-chapter-card.is-collapsed .rz-chapter-body {
  display: none;
}
.rz-chapter-prob {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-top: 1px solid #f1f5f9;
}
.rz-chapter-prob:hover {
  background: #f8fafc;
}
.rz-chapter-status-ac {
  color: #2ecc40;
  font-weight: 600;
  margin-right: 10px;
}
.rz-chapter-status-none {
  color: #94a3b8;
  margin-right: 10px;
}

/* Blue-yellow star sidebar card matching course_p1.png */
.rz-course-banner {
  display: block;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 60%, #93c5fd 100%);
  color: #fff !important;
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
}
.rz-course-banner::after {
  content: "★";
  position: absolute;
  right: 10px;
  top: -12px;
  font-size: 92px;
  color: #facc15;
  opacity: 0.85;
  line-height: 1;
  pointer-events: none;
}
.rz-course-banner h1 {
  color: #fff;
  margin: 0 0 6px;
  font-size: 20px;
  position: relative;
  z-index: 1;
}

/* Floating left download & right search buttons matching all 20 desktop screenshots */
.rz-float-btn {
  position: fixed;
  bottom: 24px;
  z-index: 90;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #fff;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}
.rz-float-btn:hover {
  background: #f8fafc;
  color: #2563eb;
}
.rz-float-btn--left {
  left: 20px;
}
.rz-float-btn--right {
  right: 20px;
}

/* Search modal */
.rz-search-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
}
.rz-search-modal.is-open {
  display: flex;
}
.rz-search-modal__box {
  background: #fff;
  width: 92%;
  max-width: 460px;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .rz-float-btn {
    bottom: 14px;
    width: 34px;
    height: 34px;
  }
  .rz-float-btn--left {
    left: 10px;
  }
  .rz-float-btn--right {
    right: 10px;
  }
}

/* Login page mountain gradient fallback matching login_anon.png */
.layout--immersive {
  background: linear-gradient(155deg, #4b91c2 0%, #6ba1cf 45%, #8b8dc9 100%) !important;
  min-height: 100vh;
}
