/**
 * Case popup + inner preview panel (from Layout/style.css).
 */

/* ----- Modal chrome (for front-page / future JS popup) ----- */

.case-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.case-popup.active {
  display: block;
}

.case-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(6px);
}

.case-popup__wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px;
}

.case-popup__close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

/* ----- Inner panel (popup card OR single-case preview) ----- */

.case-popup__content {
  width: 680px;
  max-width: 100%;
  background: #f4eee8;
  border-radius: 28px;
  padding: 40px;
  box-sizing: border-box;
}

.case-popup__content--static {
  margin-left: auto;
  margin-right: auto;
}

/* META */

.case-popup-meta span {
  font-size: 12px;
  color: #8c8c8c;
}

.case-popup-meta p {
  font-size: 14px;
  margin: 4px 0 0;
}

.case-popup-title {
  font-size: 28px;
  font-weight: 600;
  margin: 16px 0 12px;
  color: #1e1d1b;
}

/* BLOCK */

.case-popup-desc {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.case-popup-block span {
  font-size: 12px;
  color: #8c8c8c;
}

.case-popup-block p {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 6px;
  color: #1e1d1b;
}

/* LIST */

.case-popup-list {
  padding-left: 18px;
  margin: 6px 0 0;
}

.case-popup-list li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.45;
  color: #1e1d1b;
}

.case-popup-list__warn {
  margin-left: 4px;
  display: inline;
}

/* TAG */

.case-popup-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 16px;
  padding: 6px 10px;
  margin: 20px 0;
  text-decoration: none;
  color: inherit;
}

.case-popup-tag img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.case-popup-tag span {
  font-size: 15px;
  color: #1e1d1b;
}

.case-popup-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin-top: 8px;
}

.case-popup-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.case-popup-footer strong {
  display: block;
  font-size: 20px;
  color: #1e1d1b;
}

.case-popup-footer span {
  font-size: 15px;
  opacity: 0.5;
}
