/* =====================================================
   FullCalendar – TopMedica (CLEAN VERSION)
   ===================================================== */

/* ---------- Wrapper ---------- */

.calendar-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1rem;
}

/* ---------- Base calendar ---------- */

.fc {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

/* ---------- Toolbar ---------- */

.fc .fc-toolbar {
  margin-bottom: 1rem;
  align-items: center;
}

.fc .fc-toolbar-title {
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: 600;
}

/* Toolbar buttons */

.fc .fc-button {
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.fc .fc-button-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.fc .fc-button-primary:hover {
  background-color: var(--info);
  border-color: var(--info);
}

/* ---------- Calendar grid ---------- */

.fc .fc-daygrid-day {
  border: 1px solid #e9ecef;
}

.fc .fc-daygrid-day:hover {
  background-color: rgba(104, 93, 211, 0.05);
}

.fc .fc-day-today {
  background-color: rgba(104, 93, 211, 0.08);
  font-weight: 600;
}

/* Header (po, út, st...) */

.fc .fc-col-header-cell {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 500;
  border: 1px solid var(--color-primary);
}

/* Other month days */

.fc .fc-day-other {
  background-color: #fafafa;
}

/* ---------- Events (PASSIVE CONTAINER) ---------- */
/* ⚠️ Event je pouze držák – žádný hover ani transform */

.fc .fc-event {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  cursor: default;
}

/* Seznam potřebuje tmavý text, protože událost nemá vlastní barevné pozadí. */
.fc .fc-list-event-title a,
.fc .fc-list-event-time {
  color: #334155;
}

/* Technické eventy zůstávají v klientské cache, ale v seznamu nevytvoří viditelný řádek. */
.fc .calendar-list-hidden {
  display: none !important;
}

.calendar-list-empty-state {
  background: #f8fafc;
  border: 1px solid #d7dde5;
  border-radius: 6px;
  color: #64748b;
  font-size: .9rem;
  margin-bottom: .75rem;
  padding: .75rem 1rem;
  text-align: center;
}

.calendar-list-empty-state[hidden] {
  display: none;
}

/* Plovoucí karta s úplným obsahem krátké rezervace. */
.booking-calendar-tooltip {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .24);
  color: #fff;
  font-family: "Inter", "Segoe UI", sans-serif;
  max-width: min(360px, calc(100vw - 28px));
  min-width: 220px;
  padding: 7px 10px 9px;
  pointer-events: none;
  position: fixed;
  text-align: center;
  width: max-content;
  z-index: 1080;
}

.booking-calendar-tooltip[hidden] {
  display: none;
}

.booking-calendar-tooltip-time {
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.booking-calendar-tooltip-title {
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* ---------- Slot buttons ---------- */

.fc .slot-btn {
  width: 100%;
  margin: 2px 0;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

/* Active slot */

.fc .slot-btn-active {
  background-color: var(--brand-primary);
  color: #fff;
}

/* Disabled slot */

.fc .slot-btn-disabled {
  background-color: #e5e5e5;
  color: #999;
  cursor: not-allowed;
}

/* Hover – pouze pokud není vybraný */

.fc .slot-btn-active:not(.slot-btn-selected):hover {
  background-color: var(--brand-primary);
  transform: scale(1.03);
}

/* Selected slot */

.fc .slot-btn-selected {
  outline: 2px solid var(--brand-accent);
  outline-offset: 1px;
  box-shadow: 0 0 0 2px rgba(0, 194, 209, 0.25);
  transform: none;
}

/* ---------- Mobile ---------- */

@media (max-width: 576px) {

  .fc {
    font-size: 0.85rem;
  }

  .fc .slot-btn {
    padding: 2px 2px;
    font-size: 10px;
    border-radius: 6px;
  }

  .fc .slot-btn-selected {
    outline-width: 1px;
    box-shadow: none;
  }

  .fc-daygrid-event {
    margin: 1px 0 !important;
  }
}

/* ---------- Extra small screens (toolbar) ---------- */

@media (max-width: 420px) {

  .fc-header-toolbar {
    margin-bottom: 6px;
  }

  .fc-toolbar button {
    padding: 4px 6px !important;
    font-size: 11px !important;
    line-height: 1.2;
  }

  .fc-toolbar-title {
    font-size: 14px;
    line-height: 1.2;
  }
}
