/* ==========================================================================
   C2CAD-Bench — 3D showcase table
   ========================================================================== */

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.showcase-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.showcase-table thead th {
  padding: 12px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.showcase-table thead th.task-info {
  text-align: left;
}

.showcase-table thead th.is-gold {
  color: var(--good);
}

.showcase-table thead th .model-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.showcase-table tbody td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.showcase-table tbody tr:last-child td {
  border-bottom: 0;
}

.showcase-table tbody tr:hover td {
  background: var(--bg-soft);
}

.showcase-table .task-info {
  min-width: 210px;
  max-width: 260px;
  padding: 14px 18px;
  text-align: left;
  border-right: 1px solid var(--border);
}

.task-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.task-level,
.task-parts {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
}

.rank-medal {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.showcase-table thead th .rank-medal.rank-1 {
  background: var(--bg-deep);
  color: var(--ink-soft);
}

.showcase-table thead th .rank-medal.rank-2 {
  background: var(--bg-deep);
  color: var(--ink-soft);
}

.showcase-table thead th .rank-medal.rank-3 {
  background: var(--bg-deep);
  color: var(--ink-soft);
}

.showcase-table thead th .rank-medal.rank-4 {
  background: var(--bg-deep);
  color: var(--ink-soft);
}

.home-vp {
  position: relative;
  width: 136px;
  height: 116px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  cursor: grab;
  touch-action: none;
  transition: transform var(--transition), border-color var(--transition),
    box-shadow var(--transition);
}

.home-vp::after {
  content: "drag";
  position: absolute;
  right: 7px;
  bottom: 5px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--transition);
}

.home-vp:hover::after {
  opacity: 0.7;
}

.home-vp:active {
  cursor: grabbing;
}

.home-vp:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.home-vp.is-empty {
  cursor: default;
  opacity: 0.55;
}

.home-vp.is-empty::after {
  content: "no data";
}

#home-showcase-container {
  min-height: 260px;
}

.showcase-loading {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 70px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 13.5px;
}

@media (max-width: 1200px) {
  .home-vp {
    width: 118px;
    height: 100px;
  }

  .showcase-table .task-info {
    min-width: 180px;
  }
}

@media (max-width: 760px) {
  .showcase-table {
    min-width: 900px;
  }

  .home-vp {
    width: 104px;
    height: 90px;
  }
}
