/**
 * Gig Portal public embed (calendar + list). Brand defaults; override with ?primary=...&secondary=... (accent= aliases secondary)
 */
:root {
  --gp-primary: #0b09c4;
  --gp-accent: #821f69;
  --gp-bg: #f6f7fb;
  --gp-card: #ffffff;
  --gp-text: #1a1a2e;
  --gp-muted: #5c6178;
  --gp-radius: 12px;
  --gp-shadow: 0 8px 30px rgba(11, 9, 196, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--gp-text);
  background: var(--gp-bg);
  overflow-x: hidden;
}

.gp-embed-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.gp-embed-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--gp-primary);
  box-shadow: 0 1px 0 var(--gp-accent);
}

.gp-embed-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(110deg, var(--gp-primary), var(--gp-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gp-embed-header--with-tabs .gp-embed-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.gp-embed-tabs {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px;
  background: rgba(11, 9, 196, 0.08);
  border: 1px solid rgba(130, 31, 105, 0.2);
}

.gp-embed-tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--gp-muted);
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease;
}

.gp-embed-tab:hover {
  color: var(--gp-primary);
}

.gp-embed-tab.is-active {
  color: #fff;
  background: linear-gradient(110deg, var(--gp-primary), var(--gp-accent));
  box-shadow: 0 2px 8px rgba(11, 9, 196, 0.25);
}

@media (max-width: 520px) {
  .gp-embed-header--with-tabs .gp-embed-header-row {
    flex-direction: column;
    align-items: stretch;
  }
  .gp-embed-tabs {
    width: 100%;
    justify-content: stretch;
  }
  .gp-embed-tab {
    flex: 1;
    text-align: center;
  }
}

/* FullCalendar overrides */
.fc-toolbar {
  border-radius: var(--gp-radius) var(--gp-radius) 0 0;
  padding: 10px 12px 6px;
  background: var(--gp-card);
  box-shadow: var(--gp-shadow);
}

.fc-toolbar h2 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--gp-primary) !important;
}

.fc-button {
  background: var(--gp-primary) !important;
  border-color: var(--gp-primary) !important;
  color: #fff !important;
  text-shadow: none !important;
  border-radius: 8px !important;
}

.fc-button:hover {
  background: var(--gp-accent) !important;
  border-color: var(--gp-accent) !important;
}

.fc-state-active,
.fc-state-active:hover {
  background: var(--gp-accent) !important;
  border-color: var(--gp-accent) !important;
}

.fc-day-header {
  font-weight: 600 !important;
  color: var(--gp-accent) !important;
  padding: 10px 4px !important;
  background: #fafbff !important;
}

.fc-widget-header,
.fc-widget-content {
  border-color: #e2e6f0 !important;
}

.fc-day-grid-event {
  border-radius: 6px !important;
  border: none !important;
  padding: 2px 6px !important;
  font-weight: 600 !important;
}

.fc-today {
  background: rgba(11, 9, 196, 0.06) !important;
}

/* Month grid: beat FC default .fc-basic-view .fc-body .fc-row { min-height: 4em } so the grid is not artificially tall */
#calendar .fc-basic-view .fc-body .fc-row {
  min-height: 2.6em !important;
}

/* Let FullCalendar height: auto / contentHeight: auto define height — fixed mins made short iframes/columns look too tall */
#calendar .fc-view-container {
  min-height: 0;
}

#calendar {
  background: var(--gp-card);
  border-radius: 0 0 var(--gp-radius) var(--gp-radius);
  padding: 0 8px 20px;
  box-shadow: var(--gp-shadow);
  min-height: 0;
}

/* List embed */
.gp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gp-list-thumb {
  margin: -6px -6px 12px -6px;
  border-radius: var(--gp-radius) var(--gp-radius) 0 0;
  overflow: hidden;
  max-height: 220px;
}

.gp-list-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  vertical-align: middle;
}

.gp-list-item {
  background: var(--gp-card);
  border-radius: var(--gp-radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--gp-shadow);
  border-left: 4px solid var(--gp-primary);
  position: relative;
}

.gp-list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--gp-radius) 0 0 var(--gp-radius);
  background: linear-gradient(180deg, var(--gp-primary), var(--gp-accent));
}

.gp-list-date {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gp-accent);
  margin-bottom: 4px;
}

.gp-list-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gp-primary);
  margin: 0 0 6px;
}

.gp-list-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--gp-accent), var(--gp-primary));
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.gp-list-desc {
  color: var(--gp-muted);
  font-size: 0.92rem;
  margin: 0 0 10px;
}

.gp-list-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px;
  background: linear-gradient(110deg, var(--gp-primary), var(--gp-accent));
}

.gp-list-btn:hover {
  opacity: 0.92;
}

.gp-list-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gp-muted);
  background: var(--gp-card);
  border-radius: var(--gp-radius);
  box-shadow: var(--gp-shadow);
}

.popover-title {
  font-weight: 700;
  color: var(--gp-primary);
}

.fc-event .fc-content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
