/*


 */

@import "https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css";

table { border-collapse: collapse; empty-cells: show; }

td { position: relative; }

tr.strikeout td:before {
  content: " ";
  position: absolute;
  top: 50%;
  left: 0;
  border-bottom: 1px solid #111;
  width: 100%;
}

tr.strikeout td:after {
  content: "\00B7";
  font-size: 1px;
}

.last-updated {
  width: 40%;
}

@media (max-width: 480px) {
  .last-updated {
    width: 100%;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.photo-caption {
  max-width: 360px;
}

.section--flush-top {
  padding-top: 0;
}

.code-entry {
  font-family: monospace;
  white-space: pre-wrap;
  font-size: .9rem;
}

.button.is-success {
  background-color: #48c774;
  color: white;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Checklist */
.checklist {
  list-style: none;
  padding-left: 0;
}
.checklist li {
  padding: 0.2rem 0 0.2rem 1.8rem;
  position: relative;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border: 2px solid #ccc;
  border-radius: 2px;
}

/* Print styles */
@media print {
  .navbar, .footer, .no-print {
    display: none !important;
  }
  .section {
    padding: 0.5rem;
  }
  .print-columns {
    display: flex !important;
  }
  .print-columns .column {
    break-inside: avoid;
  }
}

/* Championship stepper */
.stepper {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  counter-reset: step;
}
.stepper li {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 0.85rem;
  color: #b5b5b5;
  list-style-type: none !important;
}
.stepper li::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  background: #dbdbdb;
  color: #fff;
  margin: 0 auto 4px;
  font-weight: bold;
  font-size: 0.8rem;
}
.stepper li + li::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(-50% + 14px);
  right: calc(50% + 14px);
  height: 2px;
  background: #dbdbdb;
}
.stepper li.is-completed::before {
  content: "✓";
  background: #48c774;
}
.stepper li.is-completed::after {
  background: #48c774;
}
.stepper li.is-completed {
  color: #363636;
}
.stepper li.is-active::before {
  background: #3273dc;
}
.stepper li.is-active {
  color: #363636;
  font-weight: bold;
}
@media (max-width: 768px) {
  .stepper li span {
    display: none;
  }
  .stepper li.is-active span {
    display: inline;
  }
}

/* Championship match layout */
.match-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.match-card .match-num {
  min-width: 2rem;
  font-weight: bold;
  color: #7a7a7a;
}
.match-captain {
  background: #fffbeb;
  border-left: 3px solid #f0c040;
  padding-left: 0.5rem;
  border-radius: 4px;
}
.match-card .match-vs {
  color: #7a7a7a;
  font-size: 0.85rem;
}
@media (max-width: 768px) {
  .match-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
  }
  .match-card .match-num {
    text-align: center;
  }
  .match-card form {
    width: 100%;
  }
  .match-card form .button {
    width: 100%;
    justify-content: center;
  }
}

/* Championship seating */
.seating-row {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.seating-row .seat {
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.seating-arrow {
  color: #b5b5b5;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* VS Graphic */
.vs-graphic {
  position: relative;
  max-width: 700px;
  margin: 1.5rem auto;
  text-align: center;
}
.vs-graphic .vs-background {
  width: 100%;
  height: auto;
  display: block;
}
.vs-graphic .vs-tokens {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5% 8%;
}
.vs-graphic .vs-token-card {
  width: 30%;
  max-width: 180px;
  border-radius: 8px;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.3);
}
.vs-graphic .vs-token-left {
  transform: rotate(-5deg);
}
.vs-graphic .vs-token-right {
  transform: rotate(5deg);
}
.vs-graphic .vs-team-names {
  display: flex;
  justify-content: space-between;
  padding: 0 8%;
  margin-top: 0.5rem;
  font-weight: bold;
}

/* Photo grid (dashboard + public) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}
.photo-grid-item {
  position: relative;
}
.photo-grid-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.drag-handle {
  cursor: grab;
  font-size: 1.2rem;
  color: #7a7a7a;
  padding: 2px 6px;
  user-select: none;
}
.drag-handle:active {
  cursor: grabbing;
}
.photo-thumb {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.photo-delete {
  position: relative;
}

/* Public gallery */
.gallery-photo {
  width: 100%;
  height: auto;
  border-radius: 4px;
  cursor: pointer;
  display: block;
}
.gallery-photo:hover {
  opacity: 0.85;
}

/* Lightbox modal */
.modal-content.is-lightbox {
  max-width: 90vw;
  width: 90vw;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.modal-content.is-lightbox img {
  max-height: 90vh;
  max-width: 100%;
  border-radius: 4px;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.lightbox-nav-prev { left: 1rem; }
.lightbox-nav-next { right: 1rem; }
@media (max-width: 768px) {
  .lightbox-nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
}

.color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 4px;
}
