/* Calendar styles */
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.calendar-nav .btn-ghost {
  padding: 6px 12px;
  font-size: 12px;
}

.post-calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}
.calendar-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
.calendar-week-header {
  margin-bottom: 4px;
}
.post-calendar-day-header-cell {
  text-align: center;
  padding: 8px 4px;
  background: #f8fafc;
  border-radius: 8px 8px 8px 8px;
  border: 1px solid #e2e8f0;
}
.post-calendar-day-header-cell.is-today {
  background: #eef2ff;
  border-color: #4f46e5;
}
.post-calendar-day {
  min-height: 120px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 8px;
  overflow: hidden;
}
.post-calendar-day.is-today {
  border-color: #4f46e5;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.10), #ffffff);
  box-shadow: inset 0 0 0 2px rgba(79, 70, 229, 0.20);
}
.post-calendar-day-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}
.post-calendar-day-name {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.post-calendar-day-date {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}
.post-calendar-today-badge {
  color: #4338ca;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}
.post-calendar-day-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-calendar-scheduled-item {
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: #eef2ff;
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.13s, transform 0.1s;
}
.post-calendar-scheduled-item:hover {
  border-color: #4f46e5;
  transform: translateY(-1px);
}
.post-calendar-scheduled-title {
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-calendar-scheduled-preview {
  color: #475569;
  font-size: 10px;
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-calendar-scheduled-platform {
  color: #4f46e5;
  font-size: 9px;
  font-weight: 900;
  margin-top: 3px;
}

/* Responsive calendar */
@media (max-width: 1200px) {
  .post-calendar-grid {
    grid-template-columns: repeat(7, minmax(100px, 1fr));
  }
  .post-calendar-day {
    min-height: 140px;
    padding: 8px;
  }
}
@media (max-width: 768px) {
  .post-calendar-grid {
    grid-template-columns: repeat(7, minmax(80px, 1fr));
    gap: 4px;
  }
  .post-calendar-day {
    min-height: 100px;
    padding: 6px;
  }
  .post-calendar-day-name {
    font-size: 10px;
  }
  .post-calendar-day-date {
    font-size: 9px;
  }
}
