/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.lineup-preview { max-width: 54rem; margin: 3rem auto; padding: 0 1rem; font-family: system-ui, sans-serif; color: #182431; }
.lineup-preview form { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.lineup-preview label { display: block; margin-bottom: .3rem; }
.lineup-preview input { font: inherit; padding: .5rem; }
.lineup-preview details { border-top: 1px solid #d1dae3; padding: .7rem 0; }
.lineup-preview summary { cursor: pointer; }
.lineup-preview table { border-collapse: collapse; width: 100%; margin: .6rem 0; }
.lineup-preview th, .lineup-preview td { padding: .45rem; text-align: left; }
.lineup-preview thead { background: #edf2f7; }

.preview-spinner {
  display: inline-block;
  width: .8em;
  height: .8em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -.08em;
  animation: preview-spin .8s linear infinite;
}

@keyframes preview-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .preview-spinner { animation: none; }
}

.stats-sort { cursor: pointer; font: inherit; text-align: left; padding: 0; border: 0; background: transparent; color: inherit; }
.stats-sort::after { content: " ↕"; }
[aria-sort="ascending"] .stats-sort::after { content: " ▲"; }
[aria-sort="descending"] .stats-sort::after { content: " ▼"; }

.lineup-preview small { display: block; margin-top: .25rem; }

.lineup-exclusions { width: 100%; min-width: 0; margin: 1rem 0; }
.lineup-exclusion-options { max-height: 10rem; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-bottom: .6rem; }

.lineup-exclusions input[type="search"] { margin-bottom: .6rem; }
.lineup-exclusion-options label[hidden] { display: none; }

.exclude-lineup-player {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0 .3rem;
}
.exclude-lineup-player:hover { color: #a32424; }

body { margin: 0; }
.app-navigation {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  border-bottom: 1px solid #d1dae3;
  font-family: system-ui, sans-serif;
}
.app-navigation ul {
  max-width: 54rem;
  margin: 0 auto;
  padding: .5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  list-style: none;
}
.app-navigation a {
  display: block;
  padding: .45rem .7rem;
  border-radius: .3rem;
  color: #182431;
  text-decoration: none;
}
.app-navigation a:hover,
.app-navigation a[aria-current="page"] { background: #edf2f7; }
.app-navigation a[aria-current="page"] { font-weight: 700; }

.lineup-card-artwork {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.3rem, 1.5vw, .8rem);
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.lineup-card-artwork li {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 5 / 7;
  border-radius: .5rem;
  background: #edf2f7;
  text-align: center;
}
.lineup-card-artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.player-result-name { display: inline-flex; align-items: center; gap: .55rem; }
.player-result-name img { border-radius: 50%; object-fit: cover; background: #edf2f7; }

.squad-username { position: relative; }
.squad-username input { box-sizing: border-box; width: 100%; padding-right: 2.3rem; }
.squad-username > button {
  position: absolute; right: 1px; top: 1px; bottom: 1px; width: 2rem;
  background: transparent; border: 0; cursor: pointer;
}
.squad-username [role="group"] {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 2;
  background: #fff; border: 1px solid #d1dae3; border-radius: .25rem;
}
.squad-username [role="group"] button {
  display: block; width: 100%; padding: .4rem .6rem; cursor: pointer;
  text-align: left; font: inherit; background: transparent; border: 0;
}
.squad-username [role="group"] button:is(:hover, :focus-visible) { background: #edf2f7; }
