/* ============================================================
   GLOBAL
============================================================ */
.batman-guide-wrapper {
  background: #0b0c10;
  color: #eaeaea;
  padding: 6px;
  border-radius: 6px;
}

.batman-guide-wrapper * {
  box-sizing: border-box;
}

/* ============================================================
   HEADERS & LABELS
============================================================ */
h4 {
  font-size: 16px;
}

label {
  display: block;
  margin: 4px 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #bbb;
}

.batman-note {
  display: block;
  font-size: 11px; 
  color: #aaa;
  margin-top: -8px;
  margin-bottom: 12px;
}

/* ============================================================
   FILTERS ROW
============================================================ */
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.filter-box {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  max-width: 260px;
  flex: 1 1 180px;
}

select,
input[type="search"],
input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #444;
  background: #181924;
  color: #eee;
  font-size: 13px;
}

/* ============================================================
   PATH BUTTONS (ŚCIEŻKI)
============================================================ */
.paths-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.path-button {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #444;
  background: #181924;
  color: #eee;
  cursor: pointer;
  font-size: 13px;
}

.path-button:hover {
  border-color: #ffd400;
  color: #ffd400;
}

.path-button.active {
  border-color: #ffd400;
  background: #2a2430;
  color: #ffd400;
}

/* ============================================================
   TABLE
============================================================ */
table,
.batman-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}

thead {
  position: sticky;
  top: 0;
  background: #14151f;
  z-index: 2;
}

th,
td {
  padding: 6px 4px;
  border-bottom: 1px solid #333;
  vertical-align: top;
}

th.sortable {
  cursor: pointer;
  user-select: none;
}

/* Parzyste wiersze */
tbody tr:nth-child(even):not(.details-row) td {
  background: #151621;
}

/* Highlight */
tbody tr.highlight td {
  background: #1c2330;
}

/* Wyrównanie kolumn */
table td:nth-child(2),
table td:nth-child(4),
table td:nth-child(5),
table td:nth-child(6),
table td:nth-child(7),
table td:nth-child(8) {
  text-align: center;
}

/* ============================================================
   BADGES
============================================================ */
.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  margin-right: 4px;
}

.badge-type {
  background: #333;
  color: #eee;
}

.badge-path {
  background: #ffd400;
  color: #000;
}

.badge-cat {
  display: block;
}

/* ============================================================
   COVER THUMBNAILS
============================================================ */
.cover-thumb {
  height: 60px;
  border-radius: 4px;
  cursor: zoom-in;
}

/* ============================================================
   COVER MODAL
============================================================ */
.cover-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.cover-modal img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

/* ============================================================
   DETAILS ROW
============================================================ */
.details-row .details-cell {
  background: #1b1c27;
  padding: 10px;
  font-size: 13px;
  color: #ddd;
  white-space: normal;
  text-align: left !important;

}


/* ============================================================
   SORT INFO
============================================================ */
.sort-info {
  margin: 10px 0;
  padding: 10px;
  background: #222;
  border-radius: 6px;
  color: #ccc;

}

/* ============================================================
   DESC BOXES
============================================================ */
.desc-box {
  margin: 10px 0;
  padding: 10px;
  background: #222;
  border-radius: 6px;
  display: none;
  color: #ddd;
  font-size: 14px;
  border-left: 4px solid #4da3ff;
}

/* ============================================================
   MINIMALNE SZEROKOŚCI KOLUMN (DESKTOP)
============================================================ */
.batman-table th:nth-child(1),
.batman-table td:nth-child(1) {
  width: 45px;
  max-width: 45px;
}

.batman-table th:nth-child(2),
.batman-table td:nth-child(2) {
  width: 80px;
  max-width: 80px;
}

.batman-table th:nth-child(4),
.batman-table td:nth-child(4) {
  width: 50px;
  max-width: 50px;
}

.batman-table th:nth-child(5),
.batman-table td:nth-child(5) {
  width: 85px;
  max-width: 85px;
}

.batman-table th:nth-child(6),
.batman-table td:nth-child(6) {
  width: 90px;
  max-width: 90px;
}

.batman-table th:nth-child(7),
.batman-table td:nth-child(7) {
  width: 90px;
  max-width: 90px;
}

.batman-table th:nth-child(8),
.batman-table td:nth-child(8) {
  width: 105px;
  max-width: 105px;
}

/* ============================================================
   MOBILE – FILTRY
============================================================ */
@media (max-width: 700px) {

  .filters-row {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
  }

  .filter-box {
    min-width: 100%;
    max-width: 100%;
    flex: unset;
    margin: 0;
  }

  .filter-box label {
    margin: 2px 0 2px;
    font-size: 11px;
  }

  .filter-box select,
  .filter-box input[type="search"],
  .filter-box input[type="text"] {
    padding: 5px 6px;
    font-size: 12px;
  }
}

/* ============================================================
   MOBILE – paths-row
============================================================ */
@media (max-width: 700px) {

  .batman-guide-wrapper .paths-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }

  .batman-guide-wrapper .paths-row .badge,
  .batman-guide-wrapper .paths-row .path-button {
    font-size: 12px !important;
    padding: 3px 6px !important;
    white-space: nowrap;
  }
}

/* ============================================================
   MOBILE – reset szerokości + ukrycie kolumn 2 i 6–8
============================================================ */
@media (max-width: 700px) {

  .batman-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
  }

  .batman-table th,
  .batman-table td {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    white-space: normal !important;
  }

  /* Ukrycie kolumn */
  .batman-table th:nth-child(2),
  .batman-table td:nth-child(2),
  .batman-table th:nth-child(6),
  .batman-table td:nth-child(6),
  .batman-table th:nth-child(7),
  .batman-table td:nth-child(7),
  .batman-table th:nth-child(8),
  .batman-table td:nth-child(8) {
    display: none !important;
  }
}
