/* EX SERVER Item page */

.ex-page-item .ex-boss-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 420px);
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.ex-page-item .ex-boss-search-wrap {
  display: grid;
  gap: 7px;
}

.ex-page-item .ex-boss-label {
  color: var(--ex-muted);
  font-size: 13px;
  font-weight: 850;
}

.ex-page-item .ex-boss-search {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 226, 163, 0.16);
  border-radius: var(--ex-radius-md);
  background: rgba(0, 0, 0, 0.34);
  color: var(--ex-text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.ex-page-item .ex-boss-search::placeholder {
  color: #8f826e;
}

.ex-page-item .ex-boss-search:focus {
  border-color: rgba(255, 226, 163, 0.38);
  box-shadow: 0 0 0 3px rgba(216, 173, 88, 0.12);
}

.ex-item-grid,
.ex-page-item .ex-boss-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.ex-page-item .ex-item-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--ex-line);
  border-radius: var(--ex-radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.016)),
    var(--ex-surface);
  box-shadow: var(--ex-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.ex-page-item .ex-item-card:hover,
.ex-page-item .ex-item-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(255, 226, 163, 0.42);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.46),
    0 0 20px rgba(216, 173, 88, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ex-page-item .ex-item-card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 96px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ex-accent));
  opacity: 0.75;
}

.ex-page-item .ex-item-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ex-page-item .ex-item-title {
  margin: 0;
  color: #fff4dd;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.ex-page-item .ex-item-trade-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 226, 163, 0.18);
  border-radius: 999px;
  background: rgba(216, 173, 88, 0.08);
  color: var(--ex-accent-strong);
  font-size: 13px;
  font-weight: 900;
  line-height: 30px;
  white-space: nowrap;
}

.ex-page-item .ex-item-trade-status {
  flex: 0 0 auto;
}

.ex-page-item .ex-item-source-section {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ex-page-item .ex-item-section-title {
  margin: 0 0 10px;
  margin-bottom: 10px;
  color: #ffe2ad;
  font-size: 15px;
  font-weight: 950;
}

.ex-item-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.ex-item-source-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(216, 173, 88, 0.22);
  border-radius: 10px;
  background: rgba(216, 173, 88, 0.055);
  color: #eadcc5;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.ex-item-source-tag.is-collapsed,
.ex-item-source-tag[hidden] {
  display: none;
}

.ex-item-card.is-expanded .ex-item-source-tag.is-collapsed {
  display: inline-flex;
}

.ex-item-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(216, 173, 88, 0.3);
  border-radius: 10px;
  background: rgba(216, 173, 88, 0.07);
  color: #ffe2ad;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.ex-item-more-button:hover,
.ex-item-more-button:focus-visible {
  border-color: rgba(255, 226, 163, 0.5);
  background: rgba(216, 173, 88, 0.13);
  color: #fff7e5;
  outline: none;
  box-shadow: 0 0 18px rgba(216, 173, 88, 0.2);
}

.ex-page-item .ex-boss-empty {
  grid-column: 1 / -1;
  padding: 46px 18px;
  border: 1px dashed rgba(255, 226, 163, 0.2);
  border-radius: var(--ex-radius-lg);
  background: rgba(0, 0, 0, 0.22);
  color: var(--ex-muted);
  font-size: 16px;
  text-align: center;
}

@media (max-width: 860px) {
  .ex-page-item .ex-boss-toolbar,
  .ex-page-item .ex-boss-grid {
    grid-template-columns: 1fr;
  }
}
