/* /ranking/ page. Markup: mu-plugins/vortex-ranking-page.php. Navy in both themes, like the homepage rankings. */

body.vx-ranking #sidebar,
body.vx-ranking .entry-title,
body.vx-ranking .main_title { display: none; }
body.vx-ranking #main-content { background: #2a2e45; }
body.vx-ranking #main-content .container { width: 100%; max-width: none; padding: 0; }
body.vx-ranking #main-content .container:before { display: none; }
body.vx-ranking #left-area { float: none; width: 100%; padding: 0; }
body.vx-ranking .entry-content { padding: 0; }

.vx-rk { min-height: 560px; padding: 44px 0 72px; background: #2a2e45; color: #d5d8e5; font-size: 15px; line-height: 1.4; font-variant-numeric: lining-nums; }
.vx-rk-in { max-width: 1080px; margin: 0 auto; padding: 0 32px; box-sizing: content-box; }
.vx-rk p { padding: 0; }
#main-content .vx-rk h1 { margin: 0 0 22px; padding: 0; color: #fff; font-size: 48px; font-weight: 800; line-height: 1.1; }

/* Tabs + search */
.vx-rk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.vx-rk-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #1c1f31; }
#main-content .vx-rk-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 44px;
  padding: 0 18px;
  border-radius: 7px;
  color: #d5d8e5;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
#main-content .vx-rk-tab:hover { background: rgba(255, 255, 255, .08); color: #fff; }
#main-content .vx-rk-tab[aria-selected="true"] { background: linear-gradient(100deg, #852b89, #bd4030); color: #fff; }
#main-content .vx-rk-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.vx-rk-search { position: relative; display: flex; align-items: center; flex: 0 1 280px; margin: 0; color: #b4b8cc; }
.vx-rk-search svg { position: absolute; left: 14px; pointer-events: none; }
html body #main-content .vx-rk-search input[type="search"] {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #1c1f31;
  color: #fff;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
html body #main-content .vx-rk-search input[type="search"]::placeholder { color: #b4b8cc; opacity: 1; }
html body #main-content .vx-rk-search input[type="search"]:focus { outline: none; border-color: #f0897a; box-shadow: 0 0 0 3px rgba(240, 137, 122, .2); }

/* Podium: second, first, third on wide screens, stepped like a real one. Each place lights its card with its own metal. */
#main-content .vx-rk-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; margin: 0 0 24px; padding: 56px 0 0; list-style: none; }
#main-content .vx-rk-place {
  --m: 229, 161, 115;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0 16px 16px;
  border: 1px solid rgba(var(--m), .34);
  border-radius: 14px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(var(--m), .17), rgba(var(--m), 0) 68%), #1c1f31;
  box-shadow: 0 16px 32px -20px rgba(var(--m), .55);
  list-style: none;
  text-align: center;
  animation: vx-rk-rise .6s cubic-bezier(.16, 1, .3, 1) both;
}
#main-content .vx-rk-place-1 {
  --m: 245, 200, 76;
  order: 2;
  min-height: 288px;
  border-color: rgba(var(--m), .6);
  background: radial-gradient(130% 85% at 50% 0%, rgba(var(--m), .28), rgba(var(--m), 0) 72%), #1c1f31;
  box-shadow: 0 22px 44px -18px rgba(var(--m), .6);
  animation-delay: .16s;
}
#main-content .vx-rk-place-2 {
  --m: 207, 214, 226;
  order: 1;
  min-height: 244px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(var(--m), .1), rgba(var(--m), 0) 68%), #1c1f31;
  animation-delay: .08s;
}
#main-content .vx-rk-place-3 { order: 3; min-height: 224px; }
@keyframes vx-rk-rise {
  from { opacity: 0; transform: translateY(22px); }
}
@media (prefers-reduced-motion: reduce) {
  #main-content .vx-rk-place { animation: none; }
}

.vx-rk-medal {
  display: block;
  flex: none;
  width: 124px;
  height: auto;
  margin: -44px 0 6px;
  overflow: visible;
  filter: drop-shadow(0 6px 10px rgba(var(--m), .4));
}
.vx-rk-place-1 .vx-rk-medal { width: 164px; margin-top: -54px; }
.vx-rk-medal text { font-family: 'Open Sans', Arial, sans-serif; font-weight: 800; }

#main-content .vx-rk-name { max-width: 100%; overflow: hidden; color: #fff; font-size: 21px; font-weight: 800; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
#main-content .vx-rk-place-1 .vx-rk-name { font-size: 28px; }
.vx-rk-faction { margin-top: 8px; padding: 3px 12px; border-radius: 999px; background: color-mix(in srgb, currentColor 15%, transparent); font-size: 13px; font-weight: 600; line-height: 1.5; }
.vx-rk-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(var(--m), .2);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.vx-rk-place-1 .vx-rk-value { font-size: 24px; }
.vx-rk-value small { color: #b4b8cc; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
/* Keeps the value plate off the faction on the shortest step. */
.vx-rk-faction { margin-bottom: 14px; }

/* List */
.vx-rk-wrap { overflow-x: auto; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: #1c1f31; }
#main-content .vx-rk-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; color: #d5d8e5; font-size: 15px; }
#main-content .vx-rk-table th {
  padding: 12px 16px;
  border: 0;
  background: #14162a;
  color: #b4b8cc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-align: center;
  text-transform: uppercase;
}
#main-content .vx-rk-table td { padding: 10px 16px; border: 0; border-top: 1px solid rgba(255, 255, 255, .07); background: transparent; text-align: center; }
#main-content .vx-rk-table tbody tr:first-child td { border-top: 0; }
#main-content .vx-rk-table tbody tr:hover td { background: rgba(255, 255, 255, .05); }
#main-content .vx-rk-table td:first-child { width: 70px; color: #b4b8cc; font-weight: 700; }
#main-content .vx-rk-table td:last-child { font-variant-numeric: tabular-nums; }
#main-content .vx-rk-table td.vx-rk-cell-name { color: #fff; font-weight: 700; }
/* The podium already shows the top three; they come back in the list while searching. */
.vx-rk-table .vx-rk-top { display: none; }
.vx-rk.is-searching .vx-rk-table .vx-rk-top { display: table-row; }
#main-content .vx-rk.is-searching .vx-rk-podium { display: none; }
/* Divi's reset sets section/table display, which overrides the browser's handling of the hidden attribute. */
#main-content .vx-rk [hidden] { display: none !important; }
#main-content .vx-rk-table .vx-rk-top-1 td:first-child { color: #f5c84c; }
#main-content .vx-rk-table .vx-rk-top-2 td:first-child { color: #dfe4ec; }
#main-content .vx-rk-table .vx-rk-top-3 td:first-child { color: #e5a173; }
.vx-rk-table tr[hidden] { display: none !important; }

/* Faction colours (same as the homepage) */
#main-content .vx-rk .vx-f-guanyin { color: #8ee6a8; font-weight: 600; }
#main-content .vx-rk .vx-f-fujin { color: #7cc8ff; font-weight: 600; }
#main-content .vx-rk .vx-f-jinong { color: #ffa94d; font-weight: 600; }
#main-content .vx-rk .vx-f-nagin { color: #ff9ad5; font-weight: 600; }

.vx-rk .vx-rk-none { margin: 0; padding: 28px 16px; color: #b4b8cc; text-align: center; }
#main-content .vx-rk .vx-rk-empty { margin: 0; padding: 48px 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: #1c1f31; color: #b4b8cc; text-align: center; }
.vx-rk .vx-rk-updated { margin: 12px 0 0; color: #b4b8cc; font-size: 13px; text-align: right; }

@media (max-width: 700px) {
  .vx-rk { padding: 28px 0 48px; }
  .vx-rk-in { padding: 0 16px; }
  #main-content .vx-rk h1 { font-size: 38px; }
  .vx-rk-tabs { flex: 1 1 100%; }
  #main-content .vx-rk-tab { flex: 1 1 0; min-width: 0; padding: 0 8px; }
  .vx-rk-search { flex: 1 1 100%; }
  #main-content .vx-rk-podium { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 14px; padding-top: 0; }
  /* Compact rows, so the list starts on the first screen. */
  #main-content .vx-rk-place,
  #main-content .vx-rk-place-1,
  #main-content .vx-rk-place-2,
  #main-content .vx-rk-place-3 {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: center;
    min-height: 0;
    padding: 8px 14px 8px 8px;
    background: linear-gradient(90deg, rgba(var(--m), .2), rgba(var(--m), 0) 62%), #1c1f31;
    box-shadow: none;
    text-align: left;
  }
  #main-content .vx-rk-place-1 { order: 1; }
  #main-content .vx-rk-place-2 { order: 2; }
  #main-content .vx-rk-place-3 { order: 3; }
  .vx-rk-medal,
  .vx-rk-place-1 .vx-rk-medal { grid-row: 1 / span 2; align-self: center; width: 58px; margin: 0; }
  #main-content .vx-rk-name,
  #main-content .vx-rk-place-1 .vx-rk-name { grid-column: 2; font-size: 17px; }
  .vx-rk-faction { grid-column: 2; justify-self: start; margin: 3px 0 0; padding: 1px 9px; font-size: 12px; }
  .vx-rk-value,
  .vx-rk-place-1 .vx-rk-value { grid-column: 3; grid-row: 1 / span 2; width: auto; margin: 0; padding: 0; border: 0; font-size: 17px; white-space: nowrap; }
  .vx-rk-value small { display: none; }
  #main-content .vx-rk-table { font-size: 14px; }
  #main-content .vx-rk-table th { padding: 10px 6px; letter-spacing: .02em; }
  #main-content .vx-rk-table td { padding: 9px 6px; }
  #main-content .vx-rk-table td:first-child { width: 40px; }
}
html[data-theme="dark"] #main-content .vx-rk-name { color: #fff; }
