/* ==========================================================
   HUTFLOOR STUDIO - CLEAN BUFFER CALENDAR VIEW
   Light, organized, distraction-free monthly & weekly schedule
   ========================================================== */

.calendar-top-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  background: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.calendar-nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cal-nav {
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-cal-nav:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.calendar-heading-month {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  min-width: 140px;
  text-align: center;
}

.calendar-grid-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.calendar-week-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
}

.week-header-day {
  padding: 0.65rem 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.calendar-month-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-light);
}

.cal-day-cell {
  background: #ffffff;
  min-height: 110px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
}

.cal-day-cell:hover {
  background: #f8fafc;
}

.cal-day-cell.other-month {
  background: #fafafa;
  color: #cbd5e1;
}

.cal-day-cell.today {
  background: #eff6ff;
}

.cal-cell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.cal-date-number {
  font-size: 0.8rem;
  font-weight: 600;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cal-day-cell.today .cal-date-number {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.cal-cell-plus-icon {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0;
  transition: var(--transition);
}

.cal-day-cell:hover .cal-cell-plus-icon {
  opacity: 1;
}

.cal-cell-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  overflow-y: auto;
}

/* Post Badge */
.clean-cal-pill {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #1e293b;
  border-left: 2px solid var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition);
}

.clean-cal-pill:hover {
  background: #e2e8f0;
}

.clean-cal-pill.pill-twitter { border-left-color: var(--color-twitter); }
.clean-cal-pill.pill-linkedin { border-left-color: var(--color-linkedin); }
.clean-cal-pill.pill-instagram { border-left-color: var(--color-instagram); }
.clean-cal-pill.pill-threads { border-left-color: var(--color-threads); }
