/* DiscoClub / GigManager 1.2.0. Scoped to the plugin's public templates.
   Matches BlogMagazine child: #557bb9, #bdd6ff, light blue surfaces.
   No changes to content, date fields, theme CSS or the original GigManager. */

/* Common type and links */
body .gigmanager.gigmanager-list,
body .gigmanager.gigmanager-table,
body .gigmanager.gigmanager-classic {
  color: #283747;
  font-size: 14px;
  line-height: 1.48;
  letter-spacing: normal;
}
body .gigmanager a { color: #215b9d; text-decoration: none; }
body .gigmanager a:hover,
body .gigmanager a:focus-visible { color: #0f427f; text-decoration: underline; }
body .gigmanager a:focus-visible,
body .dc-gm-pagination a:focus-visible {
  outline: 2px solid #0e5aa6;
  outline-offset: 2px;
}
body .gigmanager .gigmanager-show__status { font-size: 12px; border-radius: 3px; padding: 2px 7px; line-height: 1.4; }
body .gigmanager .gigmanager-show__status--cancelled { background: #fff0f0; color: #a12832; border: 1px solid #efc2c5; }
body .gigmanager .gigmanager-show__status--sold_out { background: #fff4d7; color: #865213; border: 1px solid #f3dca2; }

/* Modern compact list: date tag / details / actions; sensible on mobile. */
body .gigmanager.gigmanager-list {
  border: 1px solid #cbd9eb;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  margin: 12px 0 18px;
  box-shadow: 0 1px 3px rgba(38,71,116,.06);
}
body .gigmanager-list .gigmanager-show {
  display: grid;
  grid-template-columns: minmax(105px,125px) minmax(0,1fr) auto;
  gap: 9px 16px;
  align-items: start;
  box-sizing: border-box;
  margin: 0;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid #dce6f4;
  border-left: 3px solid transparent;
  background: #fff;
  transition: background-color .14s ease, border-color .14s ease;
}
body .gigmanager-list .gigmanager-show:first-child { border-top: 0; }
body .gigmanager-list .gigmanager-show:last-child { border-bottom: 0; }
body .gigmanager-list .gigmanager-show:nth-child(even) { background: #f7faff; }
body .gigmanager-list .gigmanager-show:hover {
  background: #edf4ff;
  border-left-color: #557bb9;
}
body .gigmanager-list .gigmanager-show__date {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  padding: 8px 10px;
  border-left: 3px solid #6287c5;
  border-radius: 2px;
  background: #edf3fc;
  color: #234d84;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
}
body .gigmanager-list .gigmanager-show__date time { display: block; }
body .gigmanager-list .gigmanager-show__time {
  display: block;
  margin: 0;
  color: #526983;
  font-weight: 400;
  font-size: 12px;
}
body .gigmanager-list .gigmanager-show__details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}
body .gigmanager-list .gigmanager-show__artist {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
body .gigmanager-list .gigmanager-show__venue { color: #465a70; font-size: 13px; line-height: 1.4; }
body .gigmanager-list .gigmanager-show__tour { color: #60758c; font-size: 12px; line-height: 1.4; }
body .gigmanager-list .gigmanager-show__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  justify-content: flex-start;
  min-width: 112px;
  margin: 1px 0 0;
}

/* Ticket and information buttons, matching DiscoClub navigation blues. */
body .gigmanager .gigmanager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  min-height: 33px;
  padding: 6px 11px;
  margin: 0;
  border: 1px solid #557bb9;
  border-radius: 3px;
  box-shadow: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  text-decoration: none;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
body .gigmanager .gigmanager-btn--ticket,
body .gigmanager a.gigmanager-btn--ticket {
  background: linear-gradient(180deg,#7398cf 0%,#557bb9 100%);
  color: #fff;
}
body .gigmanager .gigmanager-btn--ticket:hover,
body .gigmanager .gigmanager-btn--ticket:focus-visible {
  background: #375f9d;
  border-color: #375f9d;
  color: #fff;
  text-decoration: none;
}
body .gigmanager .gigmanager-btn--external,
body .gigmanager a.gigmanager-btn--external { background: #fff; color: #2c5f9d; }
body .gigmanager .gigmanager-btn--external:hover,
body .gigmanager .gigmanager-btn--external:focus-visible { background: #e6f0ff; color: #1d4d8d; text-decoration: none; }
body .gigmanager-list .gigmanager-show--cancelled { background: #fffafa; }
body .gigmanager-list .gigmanager-show--cancelled .gigmanager-show__date,
body .gigmanager-list .gigmanager-show--cancelled .gigmanager-show__details { opacity: .72; }

/* Tabular and classic: blue header, clean rows, understated borders. */
body table.gigmanager.gigmanager-table,
body table.gigmanager.gigmanager-classic {
  border: 1px solid #cbd9eb;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 4px;
  width: 100%;
  max-width: 100%;
  margin: 12px 0 18px;
  background: #fff;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(38,71,116,.06);
}
body .gigmanager-table thead th,
body .gigmanager-classic thead th {
  background: linear-gradient(180deg,#7295cb 0%,#5279b6 100%);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  text-align: left;
  line-height: 1.4;
  padding: 10px 9px;
  border: 0;
  vertical-align: middle;
  text-transform: none;
}
body .gigmanager-table thead th + th,
body .gigmanager-classic thead th + th { border-left: 1px solid rgba(255,255,255,.14); }
body .gigmanager-table tbody td,
body .gigmanager-classic tbody td {
  padding: 9px;
  border: 0;
  border-bottom: 1px solid #e0e8f4;
  background: transparent;
  color: #34475e;
  vertical-align: top;
  line-height: 1.45;
}
body .gigmanager-table tbody tr:nth-child(even),
body .gigmanager-classic tbody tr.gigmanager-classic__top-row:nth-of-type(even) { background: #f6f9fe; }
body .gigmanager-table tbody tr:hover,
body .gigmanager-classic tbody tr.gigmanager-classic__top-row:hover { background: #eaf2ff; }
body .gigmanager-table tbody tr:last-child td,
body .gigmanager-classic tbody tr:last-child td { border-bottom: 0; }
body .gigmanager-table tbody td:first-child,
body .gigmanager-classic td.gigmanager-classic__date { font-weight: 700; color: #2a568d; white-space: nowrap; }
body .gigmanager-table tbody td time,
body .gigmanager-classic tbody td time { font-variant-numeric: tabular-nums; }
body .gigmanager-table tbody tr.gigmanager-show--cancelled { background: #fff6f7; }
body .gigmanager-classic tr.gigmanager-classic__tour-row td {
  background: #e5effd;
  color: #305b8e;
  font-weight: 700;
  border-top: 1px solid #cbd9eb;
  border-bottom: 1px solid #cbd9eb;
  padding: 8px 10px;
}
body .gigmanager-classic tr.gigmanager-classic__bottom-row td {
  padding-top: 4px;
  padding-bottom: 12px;
  color: #51647b;
  background: #f8fbff;
}
body .gigmanager-classic tr.gigmanager-classic__bottom-row td.gigmanager-classic__notes {
  overflow-wrap: anywhere;
  font-size: 12.5px;
}
body .gigmanager-classic tr.gigmanager-classic__bottom-row .label {
  color: #305b8e;
  font-weight: 700;
}
body .gigmanager-classic tr.gigmanager-classic__bottom-row a:not(.gigmanager-btn) { font-weight: 700; }

/* Quiet secondary elements. */
body .gigmanager-feed-links { margin: 10px 0 13px; color: #60748f; font-size: 12px; text-align: right; }
body .gigmanager-feed-links a { color: #426da6; }
body p.gigmanager-no-shows {
  margin: 12px 0 18px;
  padding: 16px 18px;
  background: #f4f8fe;
  border: 1px solid #d3e0f1;
  border-left: 3px solid #7396ca;
  color: #4e617b;
  font-size: 14px;
  font-style: normal;
}

/* Pagination added by DiscoClub: matches the new listing surfaces. */
body .dc-gm-pagination {
  margin-top: 15px;
  border-color: #cbd9eb;
  padding-top: 12px;
}
body .dc-gm-pagination .dc-gm-page { border-radius: 3px; }
body .dc-gm-pagination .dc-gm-current { background: #557bb9; border-color: #557bb9; color: #fff; }

/* Responsive: a true compact list on phones. Tables are scrolled within
   their own box instead of expanding the WordPress page width. */
@media (max-width: 800px) {
  body .gigmanager-list .gigmanager-show {
    grid-template-columns: minmax(92px,110px) minmax(0,1fr);
    gap: 7px 11px;
    padding: 12px;
  }
  body .gigmanager-list .gigmanager-show__actions {
    grid-column: 2;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    min-width: 0;
  }
  body .gigmanager-list .gigmanager-show__artist { font-size: 15px; }
}
@media (max-width: 560px) {
  body .gigmanager-list .gigmanager-show {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 11px 12px;
  }
  body .gigmanager-list .gigmanager-show__date {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    width: fit-content;
    padding: 5px 10px;
  }
  body .gigmanager-list .gigmanager-show__time { display: inline; }
  body .gigmanager-list .gigmanager-show__details { gap: 3px; }
  body .gigmanager-list .gigmanager-show__artist { font-size: 15px; }
  body .gigmanager-list .gigmanager-show__actions { grid-column: 1; margin-top: 3px; }
  body table.gigmanager.gigmanager-table,
  body table.gigmanager.gigmanager-classic {
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 4px;
  }
  body .gigmanager-table th,
  body .gigmanager-table td,
  body .gigmanager-classic th,
  body .gigmanager-classic td { white-space: nowrap; }
  body .gigmanager-classic td.gigmanager-classic__notes { white-space: normal; min-width: 300px; }
  body .gigmanager-feed-links { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  body .gigmanager-list .gigmanager-show,
  body .gigmanager .gigmanager-btn { transition: none; }
}

/* Artist filter inside the SAME shows page (no per-artist WordPress pages). */
body .dc-gm-paginated .dc-gm-artist-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 11px 14px;
  margin: 9px 0 13px;
  border-left: 3px solid #527bb7;
  border-bottom: 1px solid #d5e1f0;
  background: #f3f7fe;
  color: #294463;
  font-size: 14px;
  line-height: 1.5;
}
body .dc-gm-paginated .dc-gm-artist-reset {
  color: #215b9d;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
body .dc-gm-paginated .dc-gm-artist-reset:hover,
body .dc-gm-paginated .dc-gm-artist-reset:focus-visible { text-decoration: underline; }
body .dc-gm-paginated .gigmanager-show__artist a,
body .dc-gm-paginated .gigmanager-table td a,
body .dc-gm-paginated .gigmanager-classic__artist a { text-underline-offset: 2px; }
