/* list.css */
/* Styles specific to the Explore markets listing page. */

.explore-body {
  font-family: "Space Grotesk", "Noto Sans", sans-serif;
  margin: 0;
  background: #0A1014;
  color: #E5E7EB;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 120px auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.grid input,
.grid select {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  font-size: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: #E2E8F0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

.grid select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A5B4FC' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.grid input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.grid input:focus,
.grid select:focus {
  outline: none;
  border-color: rgba(13, 166, 242, 0.85);
  box-shadow: 0 0 0 2px rgba(13, 166, 242, 0.25);
}

.grid label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.8);
}

.table-wrapper {
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(8, 15, 25, 0.45);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  color: #E5E7EB;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.94rem;
  vertical-align: middle;
  color: rgba(226, 232, 240, 0.9);
}

.table tr:last-child td {
  border-bottom: none;
}

.table th {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.16) 0%, rgba(15, 23, 42, 0.8) 100%);
  font-weight: 600;
  text-align: left;
  color: #F8FAFC;
}

.muted {
  color: rgba(148, 163, 184, 0.75);
}

.pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.72rem;
  background: rgba(148, 163, 184, 0.16);
  color: #E2E8F0;
}

.pager {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn {
  padding: 8px 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  text-decoration: none;
  color: #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.65);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  background: rgba(13, 166, 242, 0.15);
  border-color: rgba(13, 166, 242, 0.4);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: none;
  border-color: rgba(13, 166, 242, 0.55);
  box-shadow: 0 0 0 3px rgba(13, 166, 242, 0.25);
}

.btn[aria-current="true"] {
  font-weight: 700;
  border-color: rgba(13, 166, 242, 0.6);
  background: rgba(13, 166, 242, 0.2);
}

.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.nowrap {
  white-space: nowrap;
}

.hdr small {
  color: rgba(148, 163, 184, 0.75);
}

.hdr small a {
  margin-left: 6px;
  text-decoration: none;
  color: #38bdf8;
}

code {
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: 'SF Mono', Consolas, monospace;
  color: #F8FAFC;
}

.form-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .wrap {
    padding: 24px 16px 40px;
  }

  .explore-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .pager {
    justify-content: flex-start;
  }
}

.explore-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding-bottom: 12px;
}

.explore-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #F8FAFC;
}

.category-subtext {
  font-size: 11px;
}

.market-title {
  font-weight: 500;
  color: #F8FAFC;
}

.market-subtitle {
  font-size: 12px;
  margin-top: 2px;
  color: rgba(148, 163, 184, 0.85);
}

.market-status {
  margin-top: 6px;
}

.market-cell {
  max-width: 300px;
}

.numeric-cell {
  text-align: right;
}

.close-primary {
  font-weight: 500;
  color: #E2E8F0;
}

.close-secondary {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.7);
}

.chart-link {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 166, 242, 0.12);
  border: 1px solid rgba(13, 166, 242, 0.35);
  color: #38bdf8;
  text-decoration: none;
}

.chart-link:hover {
  background: rgba(13, 166, 242, 0.2);
  border-color: rgba(13, 166, 242, 0.55);
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: rgba(148, 163, 184, 0.7);
}

.pager-status {
  margin: 0 12px;
  color: rgba(148, 163, 184, 0.75);
}

.table tbody tr:hover {
  background: rgba(13, 148, 210, 0.12);
}

.table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.5);
}

a {
  color: #38bdf8;
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .grid > div {
    display: flex;
    flex-direction: column;
  }

  .form-actions {
    margin-top: 12px;
  }
}
