/* === Woo Variation Calendar — Clean CSS === */

/* Container */
.wcvpd-calendar-wrap {
  margin: 2rem auto;
  max-width: 1100px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 1rem;
}

/* Toolbar */
.wcvpd-calendar-wrap .fc-toolbar { margin-bottom: 1rem; }
.wcvpd-calendar-wrap .fc-toolbar-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

/* Nav buttons */
.wcvpd-calendar-wrap .fc-button {
  background: #0073aa;
  border: none;
  color: #fff;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  transition: background 0.2s ease;
}
.wcvpd-calendar-wrap .fc-button:hover,
.wcvpd-calendar-wrap .fc-button.fc-button-active { background: #00608f; }

/* Grid */
.wcvpd-calendar-wrap .fc-daygrid-day { border: 1px solid #f2f2f2; }
.wcvpd-calendar-wrap .fc-daygrid-day-number {
  color: #666;
  font-weight: 500;
  padding: 4px;
}

/* Events — square corners, ~25% taller, subtle border */
.fc .fc-event,
.fc .fc-daygrid-event,
.fc .fc-timegrid-event,
.fc .fc-list-event {
  border-radius: 0 !important;
}
.fc .fc-daygrid-event {
  padding: calc(0.25em * 1.25) 0.5em !important;
  line-height: 1.25;
  border: 1px solid #ccc !important;         /* 1px light gray border */
  background-clip: padding-box !important;    /* keep color crisp to the edge */
}
.fc .fc-daygrid-block-event .fc-event-main {
  padding: 0 !important; /* use the padding on .fc-daygrid-event */
  border-radius: 0 !important;
}
/* Time-grid + list views (if used) */
.fc .fc-timegrid-event {
  padding-top: calc(0.25em * 1.25) !important;
  padding-bottom: calc(0.25em * 1.25) !important;
  border: 1px solid #ccc !important;
}
.fc .fc-list-event {
  border-radius: 0 !important;
  border: 1px solid #ccc !important;
}

/* Hover affordance */
.wcvpd-calendar-wrap .fc-event {
  font-size: 13px;
  padding: 2px 6px; /* minor horizontal breathing room */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wcvpd-calendar-wrap .fc-event:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Tooltip (your hover card) */
.wcvpd-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
  background: #111;
  color: #fff;
  padding: 10px;
  border-radius: 0;                  /* square edges to match events */
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  display: none;
  max-width: 340px;
  font-size: 14px;
  border: 1px solid #ccc;            /* subtle border to match events */
}
.wcvpd-pop { display: flex; gap: 12px; align-items: flex-start; }
.wcvpd-pop-img {
  width: 120px; height: 120px; flex: 0 0 120px;
  overflow: hidden; background: #222;
}
.wcvpd-pop-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wcvpd-pop-meta { flex: 1; min-width: 0; }
.wcvpd-pop-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; line-height: 1.3; }
.wcvpd-pop-meta div { margin: 2px 0; color: #ccc; }
.wcvpd-pop-meta strong { color: #fff; }
.wcvpd-tooltip.is-above { transform-origin: 50% 100%; }
.wcvpd-tooltip.is-below { transform-origin: 50% 0%; }

/* Responsive */
@media (max-width: 768px) {
  .wcvpd-pop { flex-direction: column; align-items: center; }
  .wcvpd-pop-img { width: 100%; height: 200px; }
  .wcvpd-pop-meta { text-align: center; }
}

/* Hide view buttons you don’t use */
.wcvpd-calendar-wrap .fc-dayGridWeek-button,
.wcvpd-calendar-wrap .fc-dayGridDay-button,
.wcvpd-calendar-wrap .fc-dayGridMonth-button {
  display: none !important;
}

/* Optional: remove rounding from toolbar buttons to match square design */
.fc .fc-toolbar-chunk .fc-button { border-radius: 0 !important; }
