/* MtG Match Tracker - Match History Table */

/* Hide unwanted blocks on player pages */
.wp-block-post-date,
.wp-block-post-navigation-link {
  display: none;
}

/* Player Stats */
.mtgmt-player-stats {
  padding: 1.25em;
  background-color: #aae0fa;
}

.mtgmt-stat {
  flex: 1 1 auto;
  min-width: 150px;
}

.mtgmt-stat-label {
  font-weight: 500;
  color: #000000;
}

.mtgmt-stat-value {
  font-size: 1.2em;
  font-weight: 700;
  color: #000000;
}

/* Match History Table */
.mtgmt-match-history-wrapper {
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 1.5em;
  width: 100vw;
}

.mtgmt-match-history {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
}

.mtgmt-match-history thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.mtgmt-match-history th {
  border: 1px solid #000000;
  font-size: 16px;
  padding: 0.5em;
  text-align: center;
}

.mtgmt-match-history td {
  border: 1px solid #000000;
  font-size: 12px;
  padding: 0.5em;
  text-align: center;
}

.mtgmt-match-history thead th {
  background-color: #f5f5f5;
  font-weight: 600;
}


.mtgmt-match-history tbody tr:hover {
  background-color: #f0f0f0;
}

.mtgmt-match-history a {
  text-decoration: none;
  color: #000000;
}

.mtgmt-match-history a:hover {
  text-decoration: underline;
}

.mtgmt-deck-link {
  display: inline-block;
  margin-left: 0.25em;
  vertical-align: middle;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.mtgmt-deck-link:hover {
  opacity: 1;
  text-decoration: none;
}

.mtgmt-deck-link svg {
  display: block;
}

.mtgmt-match-history .mtgmt-winner {
  background-color: #9bd3ae;
  font-weight: 700;
}

.mtgmt-match-history .mtgmt-participant {
  background-color: #f7f4d8;
}

.mtgmt-match-history .mtgmt-no-deck {
  background-color: #cbc1bf;
}

.mtgmt-match-history tbody tr:hover .mtgmt-winner {
  background-color: #8bbd9c;
}

.mtgmt-match-history tbody tr:hover .mtgmt-participant {
  background-color: #dedbc2;
}

.mtgmt-match-history tbody tr:hover .mtgmt-no-deck {
  background-color: #b0a7a5;
}

/* Back Button */
.mtgmt-back-button-wrapper {
  align-items: center;
  display: flex;
  gap: 2em;
  justify-content: center;
  margin: 1.5em 0;
}

.mtgmt-back-button {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: #f5f5f5;
  border: 1px solid #000000;
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

.mtgmt-back-button:hover {
  background-color: #e0e0e0;
  text-decoration: none;
}