/* ============================================================
   calendar.css -- Calendar App Interior Styling
   macOS Desktop Website
   ============================================================ */

/* ── 2-Pane Layout ──────────────────────────────────────────── */
#window-calendar .window-content {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  height: 100%;
}

/* ── Pane 1: Mini Calendar ──────────────────────────────────── */
.cal-mini-pane {
  width: 280px;
  flex-shrink: 0;
  background: var(--surface-inset);
  border-right: 1px solid var(--border-primary);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  overflow-y: auto;
}

/* Month navigation row */
.cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-month-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.cal-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--text-tertiary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s ease, color 0.1s ease;
  padding: 0;
  min-width: 28px;
  min-height: 28px;
}

.cal-nav-btn:hover {
  background: var(--border-secondary);
  color: var(--text-primary);
}

/* Day-of-week header row */
.cal-dow-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.cal-dow-cell {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-align: center;
  padding: 4px 0;
}

/* Day grid */
.cal-day-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day-cell {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-primary);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.1s ease;
  justify-self: center;
}

.cal-day-cell:hover {
  background: var(--border-secondary);
}

.cal-day-cell.other-month {
  color: var(--text-quaternary);
}

.cal-day-cell.today {
  background: var(--color-error);
  color: white;
  font-weight: 600;
}

.cal-day-cell.today:hover {
  background: var(--color-error-hover);
}

.cal-day-cell.selected:not(.today) {
  background: var(--highlight-row);
  color: var(--accent);
}

/* ── Pane 2: Booking Panel ──────────────────────────────────── */
.cal-booking-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface-primary);
}

.cal-booking-header {
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--border-secondary);
  flex-shrink: 0;
}

.cal-booking-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cal-booking-subtitle {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* Calendly iframe wrapper */
.cal-embed-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.cal-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Placeholder shown when no Calendly URL is set */
.cal-embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--text-placeholder);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

.cal-embed-placeholder svg {
  opacity: 0.4;
}

/* macOS-style scrollbar on mini pane */
.cal-mini-pane::-webkit-scrollbar { width: 8px; }
.cal-mini-pane::-webkit-scrollbar-track { background: transparent; }
.cal-mini-pane::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
